Skip to content

feat(ssh): forward sandbox Unix sockets - #6209

Closed
pimlock wants to merge 2 commits into
mainfrom
feat/sandbox-unix-socket-forwarding/pimlock
Closed

pimlock wants to merge 2 commits into
mainfrom
feat/sandbox-unix-socket-forwarding/pimlock

Conversation

@pimlock

@pimlock pimlock commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Sandbox SSH can forward a loopback TCP port. OpenSSH clients that connect to a Unix socket need a separate forwarding channel. Add local forwarding to workload-owned sockets under /sandbox so remote tools can use their existing Unix listeners.

Related Issue

No issue is linked to this draft.

Changes

  • Accept OpenSSH local Unix socket forwarding and connect from inside the sandbox under the existing workload policy.
  • Require Python 3 in the Linux workload for the relay. Reject symlinked paths and sockets owned by a different user.

Release Notes

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated
  • E2E tests added/updated

The supervisor channel tests passed. A Docker-backed Linux sandbox test exercised the relay with a real Unix socket. The updated Linux supervisor build stopped at a Cargo cache permission error, so a complete Rex connection over SSH remains unverified.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock pimlock added topic:networking General network transport, connectivity, and proxy behavior. area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. labels Dec 3, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock pimlock closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue topic:networking General network transport, connectivity, and proxy behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant