Skip to content

feat: add sandbox port sharing to public sdk - #9

Merged
aaqaishtyaq merged 1 commit into
mainfrom
codex/public-sandbox-port-sharing
Aug 13, 2026
Merged

feat: add sandbox port sharing to public sdk#9
aaqaishtyaq merged 1 commit into
mainfrom
codex/public-sandbox-port-sharing

Conversation

@aaqaishtyaq

@aaqaishtyaq aaqaishtyaq commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • add sharePort(sandboxId, port, policy) to the public SDK
  • call Edge's public sandbox port-sharing endpoint with PUT
  • expose the typed ZeishPortAccessPolicy union
  • add request regression coverage

Root cause

The SDK could create raw L4 ingress but could not change its access policy afterward. Public desktop users therefore had no SDK path to mark the TCP route public, leaving proxyd to reject unauthenticated browser traffic.

Validation

  • pnpm test --run src/public-api.test.ts (8 tests passed)
  • pnpm typecheck

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

Expose a typed sharePort method that calls Edge's public sandbox
port-sharing endpoint with the requested access policy. Add request
coverage to keep the public SDK path aligned with the Edge contract.

Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
@aaqaishtyaq
aaqaishtyaq marked this pull request as ready for review August 13, 2026 13:18
@aaqaishtyaq
aaqaishtyaq merged commit ba9ce15 into main Aug 13, 2026
2 checks passed
@aaqaishtyaq
aaqaishtyaq deleted the codex/public-sandbox-port-sharing branch August 13, 2026 14:21
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