Skip to main content
← Back to list
01Issue
BugShippedExtensionsPublic
Assigneesstack72

Relationships

#2561 ssh: host and per-call env is never forwarded for tailscale transport hosts

Opened by stack72 · 9/25/2026· Shipped 9/28/2026

Extension: @swamp/ssh. Found while triaging swamp-club #2554. The host env map and per-call env argument are forwarded to the remote by adding -o SendEnv=KEY options in sshCommonOpts (ssh/extensions/models/_lib/runner.ts). buildExecArgv's tailscale branch builds 'tailscale ssh [sshExtraArgs] -- user@host ' and never adds any SendEnv options, so for kind: tailscale hosts the forwarded variables are only present in the local spawn environment. Unless the operator's own ssh_config sets SendEnv (and the Tailscale SSH policy accepts the variables), they never reach the remote shell. The README host table describes env as 'sent to the remote shell via SendEnv' without scoping it to the ssh transport. Needs investigation of what tailscale ssh does with the local environment and SendEnv, then either forwarding support for tailscale hosts or documentation that env is ssh-transport only.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 10 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/28/2026, 6:56:21 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/28/2026, 5:53:20 PM
Editable. Press Enter to edit.

system commented 9/25/2026, 11:51:44 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.