Skip to content

feat(cli): add experimental Tailcat SSH - #4

Open
farhan-helmy wants to merge 1 commit into
mainfrom
feat/tailcat-ssh
Open

farhan-helmy wants to merge 1 commit into
mainfrom
feat/tailcat-ssh

Conversation

@farhan-helmy

@farhan-helmy farhan-helmy commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Adds an opt-in bxc sandbox ssh SANDBOX_ID path for the cooperative Tailcat SSH MVP already exposed by the production app API.

  • packages client-only Tailcat proxy binaries for Linux and macOS on x64 and arm64
  • creates ephemeral SSH, Tailcat, and X25519 keys in owner-only temporary storage
  • strictly validates and decrypts the cooperative endpoint envelope
  • pins the SSH host key and disables forwarding, agents, passwords, X11, local commands, and PTY allocation
  • never retries cooperative mutations, rejects redirects, bounds response bodies, and requests one best-effort revoke on exit
  • adds --reconnect and explicit --revoke ENDPOINT_ID recovery controls
  • documents the experimental feature in the CLI help, README, changelog, and managed agent skill
  • updates CI/release jobs to build the four native helpers with Go 1.27.1 and include dependency licenses

Usage

BOXCOMPUTE_ENABLE_SSH=1 bxc sandbox ssh SANDBOX_ID

Only operator-enabled sbx_* slots are accepted. The existing web-agent sandbox terminal, execution, files, logs, and lifecycle paths are unchanged.

Validation

  • bun run type-check equivalent: bun run typecheck
  • bun test — 33 pass, 0 fail
  • bun run test:native
  • bun run lint
  • bun run build
  • npm pack --dry-run
  • real npm tarball smoke under Node 20.20.2, 22.23.2, and 24.21.0
  • tarball contains four executable native helpers and no credential/config paths
  • independent Sandbox guardian envelope compatibility vector passes
  • git diff --check
  • confirmed @boxcompute/cli@0.3.0 is unpublished

Rollout limitation

The public cooperative endpoints are deployed, but the Sandbox control plane still restricts activation to an operator-pinned canary owner/slot/runtime. The full production Tailcat canary and general per-user enablement remain separate rollout gates. Cleanup/revocation is explicitly unconfirmed and falls back to the short server lease.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant