Skip to content

feat: add unauthenticated_routes to sandbox API#2205

Closed
ilbum wants to merge 4 commits intomainfrom
feat/sandbox-unauthenticated-routes
Closed

feat: add unauthenticated_routes to sandbox API#2205
ilbum wants to merge 4 commits intomainfrom
feat/sandbox-unauthenticated-routes

Conversation

@ilbum
Copy link
Contributor

@ilbum ilbum commented Mar 4, 2026

Summary

  • Adds unauthenticated_routes: Vec<String> to the Sandbox data model, CreateSandboxRequest, and SandboxInfo response. Path prefixes in this list allow unauthenticated access through the sandbox proxy; empty means
    all access requires auth.
  • Fixes GET /internal/v1/namespaces/{namespace}/sandboxes/{sandbox_id} to return sandbox metadata regardless of status — previously it returned 404 for sandboxes that hadn't been assigned a container yet, breaking proxy
    auth checks for pending sandboxes.
  • Adds a new global endpoint GET /internal/v1/sandboxes/{sandbox_id} for namespace-agnostic sandbox lookup (used by the proxy, which doesn't always know the namespace).

No migration needed

#[serde(default)] on Vec<String> deserializes as empty for all existing sandbox records.

Contribution Checklist

  • I ran just fmt to format the code.
  • All PR Checks are passing.

ilbum and others added 2 commits March 4, 2026 15:44
Add `unauthenticated_routes: Vec<String>` field to sandboxes, allowing
the sandbox proxy to permit unauthenticated access to specific path
prefixes. Also fixes the internal sandbox lookup endpoint to return
metadata for non-running sandboxes (no longer 404s when no container is
assigned), and adds a new global endpoint
`GET /internal/v1/sandboxes/{sandbox_id}` for namespace-agnostic lookup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ilbum ilbum changed the title Feat/sandbox unauthenticated routes feat: add unauthenticated_routes to sandbox API Mar 4, 2026
ilbum and others added 2 commits March 4, 2026 16:03
Wire unauthenticated_routes through the pool stack so sandboxes spawned
from a pool inherit the setting. Follows the same pattern as network_policy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ilbum ilbum closed this Mar 5, 2026
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