Daemon copies its own model provider API keys into every agent container env #1283
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#1283
Reference in new issue
Block a user
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