Skip to content

Conversation

@dobrac
Copy link
Contributor

@dobrac dobrac commented Nov 14, 2025

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
Copy link

changeset-bot bot commented Nov 14, 2025

🦋 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

Copy link

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

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".

@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
5 checks passed
@dobrac dobrac deleted the add-host-mask-and-access-auth branch November 15, 2025 13:17
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.

3 participants