Repository navigation
Inject the environment key via Substrate egress; upgrade to Substrate head - #23
Merged
Merged
Conversation
Jaana Dogan (rakyll)
force-pushed
the
creds
branch
5 times, most recently
from
October 22, 2026 05:20
077f97a to
58def25
Compare
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
Jaana Dogan (rakyll)
force-pushed
the
creds
branch
2 times, most recently
from
October 22, 2026 05:48
206bc55 to
1044f8a
Compare
Collaborator
Author
Jaana Dogan (rakyll)
force-pushed
the
creds
branch
8 times, most recently
from
October 22, 2026 06:53
2715041 to
af21b02
Compare
Sandbox actors no longer hold the Anthropic environment key. The
ActorTemplate sets ANTHROPIC_ENVIRONMENT_KEY to a placeholder, and the
Substrate egress gateway replaces the worker's "Authorization: Bearer
<placeholder>" header with the real key from the ate-ant-creds Secret on
requests to the Anthropic API. The key never enters the actor's
environment, memory, or snapshots.
- Upgrade github.com/agent-substrate/substrate to v0.5.0 and port the
manifests to its API (WorkerPool sandboxClasses, WakeupProbe,
SnapshotConfig.preferredFidelity, string sandbox class). Drop the
dashboard's worker IP and paused states, which v0.5.0 removed.
- ActorTemplate: mount a systemInfo trust bundle (egress-mitm.ate.dev
and system-roots.ate.dev) and point SSL_CERT_FILE at it, so the actor
trusts the gateway's intercepted TLS.
- Controller: give each actor an egress policy with an intercepting
https (or http) rule for the Anthropic base URL host that injects the
key from an ate-secret:// URI. Other traffic stays open: http on port
80, and TLS passthrough on all ports. A failure to create the policy
now fails the resume instead of only logging a warning. Add
--environment-key-credential-uri to override the default URI.
- ate-ant manifest: label ate-ant-creds with
ate-ant.dev/egress-credential=true, and emit the
k8s-credential-provider-namespace-policy ConfigMap in ate-system,
granting the atespace only that labeled Secret.
The cluster must run Substrate v0.5.0 installed with
--credential-provider='{"name":"k8s.io"}'. After applying the
manifests, restart deployment/k8s-credential-provider in ate-system so
it loads the policy. Actors created before this change keep their old
egress policy and must be recreated.
Jaana Dogan (rakyll)
force-pushed
the
creds
branch
from
October 22, 2026 06:54
af21b02 to
58334a6
Compare
Jaana Dogan (rakyll)
requested review from
luiz-anthropic and
Tim Hockin (thockin)
October 22, 2026 06:55
Jaana Dogan (rakyll)
marked this pull request as ready for review
October 22, 2026 06:55
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.

Move the Anthropic environment key out of the sandbox, upgrade to
go.ate.dev/substrate main (ab4f3dbec79b), and adapt the controller,
manifests, and benchmark stack to its authorization and mTLS changes.
Environment key injection
bearer token. Each actor's egress policy tells the Substrate egress gateway
to replace it on requests to the Anthropic API with the key from the
ate-ant-creds Secret (ate-secret://k8s.io/...). Other traffic stays open
so tools keep working.
points SSL_CERT_FILE at it.
ate-ant manifestlabels ate-ant-creds and emits the Kubernetes Secretscredential provider's namespace policy, which grants the ate-ant atespace
access to that Secret only.
Substrate upgrade (github.com/agent-substrate/substrate v0.5.0 ->
go.ate.dev/substrate v0.5.1-0.20261022032710-ab4f3dbec79b)
sandboxClasses selects the class) and set the now-required per-actor
resource limits (1 CPU / 1 GiB).
Authorization (ate-api now authorizes every call)
installs an atespace access policy granting it editor, and viewer to a new
ate-ant-dashboard ServiceAccount (benchmarks/access-policy.sh).
needs global owner and is denied even when the atespace exists.
atenet-router mTLS
/idle requests use mTLS (internal/actor/router.go): the controller
presents its projected podidentity certificate and verifies the router
against the servicedns trust bundle, re-reading both on every handshake
since the kubelet rotates them in place.
--router-server-name. The default router address is now
https://atenet-router.ate-system.svc:443.
anthropic-sdk-go v1.84
(bash included), with AllowedRoots ["/"]; the gVisor sandbox remains the
security boundary. Add a regression test that runs the bash tool.
Benchmarks and docs
ate-setup publish worker-imagesfrom a git worktree at the Substrate version pinned ingo.mod (Substrate no longer has a Makefile, and the module cache lacks
hack/tools).
kubectl-ate --preview(PerTemplateSnapshotLocation) and applies the access policy.
dark and light themes, sparklines, an activity chart with hover, an
actor-state breakdown, and a filterable actor table.