Daemon copies its own model provider API keys into every agent container env #1283

Closed
opened 2026-10-27 13:39:45 +00:00 by sam · 0 comments
Owner

The container env builder appends os.Getenv(p.APIKeyEnv) for every configured provider (internal/daemon/daemon.go, the loop over configFor(task).Providers at the end of the env builder). That puts the daemon's own credentials inside agent containers, breaking the invariant that containers get only task-scoped grants revoked when the task ends. Related: secret Registry.Getenv exports resolved values with os.Setenv, and Registry.Resolve has no owner check.

Done when: no provider key value reaches a container env; container model calls get the key through credential bindings and egress sentinel injection, like kit credentials; host-side callers resolve through the org-checked credential resolver.

Close reason

Native containers get per-provider sentinels and reach providers through the egress proxy, which substitutes the org's binding only on the provider's host.


Imported from beads archie-core-dajez · GitHub #1509 · type bug · priority P0 · created 2026-10-10 · closed 2026-10-10

The container env builder appends os.Getenv(p.APIKeyEnv) for every configured provider (internal/daemon/daemon.go, the loop over configFor(task).Providers at the end of the env builder). That puts the daemon's own credentials inside agent containers, breaking the invariant that containers get only task-scoped grants revoked when the task ends. Related: secret Registry.Getenv exports resolved values with os.Setenv, and Registry.Resolve has no owner check. Done when: no provider key value reaches a container env; container model calls get the key through credential bindings and egress sentinel injection, like kit credentials; host-side callers resolve through the org-checked credential resolver. ### Close reason Native containers get per-provider sentinels and reach providers through the egress proxy, which substitutes the org's binding only on the provider's host. --- _Imported from beads `archie-core-dajez` · GitHub #1509 · type bug · priority P0 · created 2026-10-10 · closed 2026-10-10_
sam added the criticalbug labels 2026-10-27 13:39:45 +00:00
sam self-assigned this 2026-10-27 13:39:45 +00:00
sam closed this issue 2026-10-27 13:39:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1283