Repository navigation
A guide runs Loom beside Agent Substrate, with each actor's token injected by the egress gateway - #639
Merged
Conversation
…ected by the egress gateway The page installs Loom with the Helm chart, mints a token per agent into a per-atespace Secret namespace, and gives each actor an egress policy that allows Loom's Service and replaces the Authorization header with that token, so no token sits in a template or snapshot. Marked as not run end to end on a live cluster. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
docs/agent-substrate
branch
from
November 13, 2026 17:50
f8d2af9 to
550ee54
Compare
The MCP client step comes before the policy and ends by creating the actor from its template; the policy step ends by resuming it. The ConfigMap fragment shows its data key, and the grant sentence names what is granted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…trust bundle Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ider after a rotation Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Substrate's Kubernetes credential provider reads the Secret on each request (v1.0.0 kubeprovider.go), so a rotation needs no restart; the page gives the replace command, says which field tells actors apart, and words the template requirements as requirements. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
A guide runs Loom in the same Kubernetes cluster as Agent Substrate: each sandboxed agent reaches Loom's MCP endpoint through Substrate's egress gateway, which adds that agent's Loom token to every request.
Why
Agent Substrate runs agents as sandboxed actors on Kubernetes, with egress denied by default and credentials injected by its egress gateway. Those two features are what an agent needs to use Loom safely: an egress rule that allows Loom's Service and nothing else, and a per-agent token the actor never holds. The guide composes Substrate's documented features with Loom's Helm chart and per-agent tokens.
Facts taken from Substrate's documentation and source at tag v1.0.0 (
docs/reference/kubectl-ate.md,docs/reference/api-guide.md,docs/guides/egress-traffic.md,docs/guides/egress-credential-injection.md,docs/guides/observability.md,docs/guides/egress-trust-bundle.md,api/ateapi/v1/ateapi.proto), each checked against the tagged files:kubectl ate; the egress policy is per actor (one, nameddefault), created withkubectl ate create egress-policy, and denies everything it does not allow.effects.replaceHeaderswithcredentialUri: ate-secret://k8s.io/default/<namespace>/<secret>/<key>replaces a header the actor sends; a request without the header goes out unchanged, and a missing Secret or grant is refused. The credential provider reads only namespaces the atespace is granted ink8s-credential-provider-namespace-policy.httprule the gateway does not originate TLS, so the token crosses the gateway-to-Loom hop in cleartext; the page says so.kubectl ate update egress-policyreplaces all rules and needs the current policy's metadata (docs/reference/kubectl-ate.md, "Egress Policies"); anhttpsrule needs the egress trust bundle mounted in the actor (egress-trust-bundle.md).allowedNamespaces), so the page gives each atespace a token namespace of its own; a shared one would let any granted atespace inject another atespace's agent token.cmd/credential-provider/kubernetes-secrets/kubeprovider.go, aSecrets().Getper call), so replacing the Secret rotates a token without a restart.atenet-egresspods inate-system. The chart's NetworkPolicy admits any source whileingressFromis empty; the page says to add the gateway to a list that is set, since a set list replaces the default.Substrate documents no MCP-client configuration; the page's client entry is Loom's own (
/mcpwith a placeholder header) and links the MCP clients page for each client's key names.Scope and risk
One new docs page, a row on the integrations index, and the
llms.txtlinedocs_reference.pygenerates for it. No code.The page is marked untested against a live cluster: Substrate needs Kubernetes 1.37 or later and a gVisor or microVM runtime, which the machine this was written on cannot run. Each Substrate step is from Substrate's own docs; the combination (an
httprule with header injection to an in-cluster Service) has not been run end to end.Compatibility, rollout and rollback
Tests
tests/unit/test_doc_links.py,test_public_copy.py,test_published_links.py: pass.make format lint; the prose checker on the page. A docs-only change: the unit and integration suites were left to CI.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. Checked: each Substrate command and field against Substrate's v1.0.0 docs and source, and the Loom parts against the Helm chart and token docs.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed. (format and lint run locally; a docs-only change, the rest in CI)docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code