Repository navigation
Conversation
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
…SSH URLs Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
TcpForwardInit adds tag 8 to its public target oneof. The durable schema and public/durable overlap retain their existing fingerprints. Signed-off-by: Adrien Langou <alangou@nvidia.com>
|
🌿 Preview your docs: https://nvidia-preview-pr-5944.docs.buildwithfern.com/openshell |
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. cli — No explicit risk acceptance found
2. configuration — No explicit risk acceptance found
3. rust-sdk — No explicit risk acceptance found
Review details
Advisory review; publication gates are unchanged. |
TaylorMutch
left a comment
There was a problem hiding this comment.
Explicitly accepting the three compatibility changes identified in #5944 (comment) for this release: removal of hidden ssh-proxy --token mode requires custom ProxyCommands and launchers to migrate; mixed environment/flag gateway selection requires tunnel scripts to pass both --gateway and --gateway-endpoint explicitly to retain their chosen identity; downstream exhaustive Rust matches on tcp_forward_init::Target must add DirectSshSandboxId. These migration costs are accepted in exchange for keeping SSH session tokens out of process arguments. No additional security or correctness defect was established by the review. Both originally failing E2E lanes passed reruns on this unchanged commit: 77/77 Kubernetes tests and 77/77 rootless Podman tests. The aggregate E2E gate is now successful. The original failures remain intermittent with exact root causes unproven; the missing-provider-variable symptom also occurred without this SSH change. Two isolated native macOS IPC checks passed; full native Windows execution was not independently validated.
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. cli — Risk explicitly accepted
2. configuration — Risk explicitly accepted
3. rust-sdk — Risk explicitly accepted
Review details
Advisory review; publication gates are unchanged. |
Why
Keep SSH session credentials out of the process arguments used for sandbox connections, file transfers and port forwards.
What changed
A gateway can advertise direct SSH on an authenticated
GetSandboxresponse. The proxy opensForwardTcpwith its gateway credential and the immutable sandbox ID from that lookup. The gateway checks workspace access, the ID and the SSH connection limit at admission, and records the sandbox and channel in the audit log. This path creates no SSH session record.Clients use the original session-token flow when the gateway does not advertise direct SSH. This includes older gateways, local-development identities and deployments whose interceptors observe or control SSH session creation or revocation. Older clients can still use their existing token flow. A released v0.1.9 CLI was also tested against the new gateway. A command that has selected direct SSH keeps that mode across reconnects. A definitive refusal stops automatic retries, including when it arrives in the gRPC trailers.
For launches initiated by the CLI or TUI, OpenSSH receives a one-use local handle. The proxy obtains its connection context over a same-account Unix socket or Windows named pipe. On legacy connections this channel also carries the session grant. The issuer attempts revocation after relay admission, failure or cancellation. Saved SSH configurations resolve their named profiles on invocation. File transfers retain the selected identity across retries and across uploads in one create request.
Scope
For regular CLI commands, a direct gateway endpoint selects the destination. When the profile and endpoint come from different sources (command line and environment), the CLI uses credentials registered for the endpoint. For a tunnel, pass both
--gatewayand--gateway-endpointexplicitly to pair the profile with the tunnel address. A saved SSH profile continues to select its own gateway when the editor inherits another endpoint.Generate saved SSH configuration from a named profile if the URL includes credentials, a path, a query, or a fragment. Regenerate custom proxy commands that passed the old hidden
--tokenoption. Direct Rust callers of the changedopenshell-coreandopenshell-cliSSH helpers may also need to update their calls.On Unix the proxy checks the account of the socket peer and the issuer PID. The Windows named pipe restricts access to the issuing account. Revocation is best effort if the issuer dies or the gateway is unavailable.
Verification
whoami, SSH session creation and relay admission. The test used distinct client certificates and real OpenSSH.--locked.Continues #5826 from a branch in this repository with the same commits.