Skip to content

Support custom E2B endpoints for managed sandboxes - #182

Closed
sam2tom wants to merge 1 commit into
mainfrom
codex/e2b-custom-endpoint
Closed

sam2tom wants to merge 1 commit into
mainfrom
codex/e2b-custom-endpoint

Conversation

@sam2tom

@sam2tom sam2tom commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add paired e2b.api_url and e2b.domain to the managed deployment configuration, with official E2B defaults, strict HTTPS/DNS validation and a same-domain control/data-plane relationship.
  • Persist the selectors, pass them explicitly to the pinned E2B SDK for template validation, lifecycle and metrics, and bind allocation receipts to the endpoint identity. Reject a returned sandbox domain before any envd command or file operation.
  • Expose the configuration in the Core client, Web setup and installer; update /core/v1 contracts, generated OpenAPI, documentation and regression tests.

Tracks #179; its Core-managed acceptance remains open.

Validation

  • make sqlc-generate, make openapi, make check-sqlc, make check-go: passed.
  • TMPDIR=/private/tmp make check-agents-api: passed; database integration tests skip because OAC_TEST_DATABASE_URL is unset.
  • Pinned E2B SDK 2.51.0 helper suite: 104 passed. Installer E2B setup tests: 3 passed.
  • pnpm typecheck, agents-client suite (650), Web suite (386), docs build and docs verification: passed.
  • Independent blind review completed; both DNS validation findings were corrected and retested.

Remaining acceptance

  • Run a Core-managed Session and daemon end to end against SandBase Sandbox, including template lookup, allocation, bootstrap, command/file I/O, observation, renewal, cleanup and interrupted-create reconciliation. Prior direct SDK qualification does not prove this Core path.
  • Run the new Store persistence/switch test against a dedicated PostgreSQL. A temporary PostgreSQL container could not start because local Docker containerd storage returned no space left on device; the test currently skips without OAC_TEST_DATABASE_URL.
  • Full make check stops in unrelated Linux-only installer tests on this macOS host (Linux host preflight and simulated UID). The Core and Web checks above were run separately.

No deployment or merge is included.


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

@sam2tom

sam2tom commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #196, which now contains this custom E2B endpoint work, the SDK Create fix, and #204 provider setup/template discovery. #196 has been updated against current main and is the single integration PR.

@sam2tom sam2tom closed this Sep 29, 2026
@SaladDay
SaladDay deleted the codex/e2b-custom-endpoint branch October 10, 2026 05:05
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