Skip to content

feat: add host mask and public access auth - #1023

Merged
dobrac merged 1 commit into
add-allow-deny-network-out-supportfrom
add-host-mask-and-access-auth
Nov 15, 2025
Merged

dobrac merged 1 commit into
add-allow-deny-network-out-supportfrom
add-host-mask-and-access-auth

Conversation

@dobrac

@dobrac dobrac commented Nov 14, 2025 •

Copy link
Copy Markdown
Contributor

Note

Adds network options to require a traffic access token and to mask the Host header, exposing trafficAccessToken and wiring through create/connect flows in JS and Python SDKs with tests.

  • JS SDK:
    • Add trafficAccessToken to Sandbox and propagate via createSandbox/connectSandbox.
    • Extend SandboxNetworkOpts with allowPublicTraffic and maskRequestHost.
    • Tests: enforce 403 without token when allowPublicTraffic=false, allow access when true, and verify maskRequestHost updates Host header.
  • Python SDK:
    • Add traffic_access_token to SandboxCreateResponse and surface on SandboxBase.
    • Wire token through async/sync create and connect paths.
    • Extend SandboxNetworkOpts with allow_public_traffic and mask_request_host.
    • Tests (async/sync): same access-token gating and host masking validations.
  • Changesets:
    • Minor releases for @e2b/python-sdk and e2b documenting host masking and public traffic token.

Written by Cursor Bugbot for commit b23fc76. This will update automatically on new commits. Configure here.

@dobrac dobrac added the feature New feature or request label Nov 14, 2025
@changeset-bot

changeset-bot Bot commented Nov 14, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b23fc76

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@e2b/python-sdk Minor
e2b Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/js-sdk/src/sandbox/index.ts Resolved
@dobrac
dobrac force-pushed the add-host-mask-and-access-auth branch 2 times, most recently from 2eb8be2 to c5b42a0 Compare November 14, 2025 23:33
@dobrac
dobrac force-pushed the add-allow-deny-network-out-support branch from 80216a6 to dceb2bc Compare November 14, 2025 23:34
@dobrac
dobrac force-pushed the add-host-mask-and-access-auth branch 3 times, most recently from 2ae84e5 to 26f913f Compare November 14, 2025 23:39
@dobrac
dobrac force-pushed the add-host-mask-and-access-auth branch 2 times, most recently from 0cc35dc to dc6ba37 Compare November 15, 2025 10:49
@dobrac
dobrac merged commit 5590eac into add-allow-deny-network-out-support Nov 15, 2025
@dobrac
dobrac deleted the add-host-mask-and-access-auth branch November 15, 2025 13:17

This branch was successfully deployed

1 active deployment
Preview — b23fc76d Deployed Nov 15, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants