pkg/sandbox: add direct backend for Kubernetes in-pod execution#214
Open
qu0b wants to merge 1 commit into
Open
pkg/sandbox: add direct backend for Kubernetes in-pod execution#214qu0b wants to merge 1 commit into
qu0b wants to merge 1 commit into
Conversation
Runs Python as a subprocess inside the panda-server container, relying on
the Kubernetes pod boundary for isolation — no dockerd, no sandbox image,
no privileged container. For the EthPandaOps devnet chat (panda-chat
chart), which runs panda-server unprivileged.
- sandbox/direct.go: DirectBackend (Service impl). Builds the child env
from SandboxEnvDefaults + a non-sensitive passthrough allowlist + req.Env,
NOT os.Environ() — so PANDA_BOT_* never reaches untrusted, LLM-generated
code. No sessions (the agent doesn't use them).
- sandbox/sandbox.go: BackendDirect ("direct") + New() case.
- config.go: sandbox.image only required for docker/gvisor backends.
- direct_test.go: regression gate that the bot token can't leak.
client_credentials auth and PANDA_ON_BEHALF_OF (from the earlier state of
this branch) already landed on master, so this is now direct-backend only.
6e51e04 to
2c3b20e
Compare
Contributor
🐼 Smoke eval —
|
| question | result | tokens | tools |
|---|---|---|---|
forky_node_coverage |
✅ | 14,224 | 8 |
tracoor_node_coverage |
✅ | 12,799 | 3 |
mainnet_block_arrival_p50 |
✅ | 21,558 | 16 |
list_datasources |
✅ | 11,514 | 2 |
block_count_24h |
✅ | 15,581 | 12 |
missed_slots_24h |
✅ | 13,613 | 4 |
🔭 Langfuse traces (6 runs; ⚠️ = failed)
The report walks this branch's commits against the master baseline and the most recent release. A self-contained copy is in the run's eval-smoke-* artifact.
Contributor
Docker images builtCommit:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
directsandbox backend to panda-server that runs Python as a subprocess instead of inside a Docker container. Intended for the Kubernetes deployment where the pod boundary itself provides isolation — no dockerd, no sandbox image, no privileged container needed.Config:
sandbox.backend: directSee also: