fix(manage): keep ssh stderr out of the Headscale JSON stream #36
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/fix/headscale-ssh-stderr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
_headscalein scripts/lib/manage/vpn.sh ran ssh with2>&1, so any ssh warning or error merged into the stdout that callers pipe to jq. It failed one staging run's ephemeral Tailscale key mint withjq: parse error: Invalid numeric literal. It did not recur afterwards (manage vpn statusworks), so the trigger was transient.stderr now stays on stderr. All callers either parse stdout JSON or discard output.
manage vpn statusre-checked after the change.Not changed: the pipelines at vpn.sh:169/207 still do not check
_headscale's exit status inside the pipe.🤖 Generated with Claude Code