Skip to content

feat(sandbox): KOYEB_SANDBOX_GATEWAY_URL overrides the sandbox gateway URL - #118

Merged
BDev-Koyeb merged 2 commits into
mainfrom
bruno/sandbox-gateway-url-override
Nov 12, 2026
Merged

BDev-Koyeb merged 2 commits into
mainfrom
bruno/sandbox-gateway-url-override

Conversation

@BDev-Koyeb

Copy link
Copy Markdown
Contributor

Context

Follow-up to #117 (revert of #110), per Bastien: instead of picking an internal/public URL automatically, let the caller override the sandbox gateway, the way KOYEB_API_HOST works for the API. Covers self-hosted (MAIS) clients inside the cluster and custom network setups.

Implementation

KOYEB_SANDBOX_GATEWAY_URL, when set, replaces the gateway URL for every exec/file call (_get_conn_info, used by both the sync and async executor clients). Routing key and sandbox secret still come from the deployment metadata. Unset: unchanged, the API's public_url is used. get_domain() is untouched (URL for users). README documents the variable.

Checks

  • pytest koyeb/sandbox: 649 passed; new test_sandbox_gateway_override.py fails without the change

@BDev-Koyeb
BDev-Koyeb marked this pull request as draft November 10, 2026 17:21
@BDev-Koyeb
BDev-Koyeb marked this pull request as ready for review November 12, 2026 10:34
@BDev-Koyeb BDev-Koyeb mentioned this pull request Nov 12, 2026
@BDev-Koyeb
BDev-Koyeb merged commit b01dd8c into main Nov 12, 2026
10 of 12 checks passed
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.

2 participants