Egress credential resolver backed by run credentials carrying org secrets #221
Notifications
Due Date
No due date set.
Reference: sam/archie#221
Reference in new issue
Block a user
The egress proxy's Resolver (internal/infrastructure/egress/credentials.go) has no production implementation, and runs do not carry a credential naming the org secrets their identity is granted. Until both exist, a Kit whose credential@1 is required is refused at the proxy and no harness run authenticates. Build: a run credential issued at dispatch listing granted secrets; a Resolver mapping a Kit credential service through its binding to an org secret the run credential carries, ErrUnbound otherwise. See docs/prds/external-agent-harness.md (Organisations, Credentials).
Notes
Blocked by archie-core-cklk: the State Store has no org secret records, identity secret grants, or dispatch-issued run credential. Implementing a resolver now would invent a parallel authority outside docs/prds/orgs-and-access.md. Resume after the run credential and grants land; then map Kit service bindings to secrets in that credential and wire the egress proxy.
Close reason
23636d61: the Kit container's proxy login is its run credential; the proxy resolves each credential per request through the State Store (task, identity) and the live grants and bindings, and the secret engines. The launch-time secret map (GrantResolver) is deleted. No new secret store, by decision.Imported from beads
archie-core-egkf.11· GitHub #1183 · type task · priority P1 · created 2026-09-26 · closed 2026-10-04sam wrote (originally 2026-10-02):
Triage 2026-10-02 @
11974196: PARTIAL. Shipped via58984c8b+ refinements 9d4e18e0/8fcb9ef9/2e1ab386: production GrantResolver (internal/infrastructure/egress/grants.go) is wired to the live proxy (kit_launcher.go:65-84), the run carries GrantedServices+Org at dispatch (daemon/kit_task.go:76-77), and the declared/granted/org intersection (config.BoundCredentials -> kitrun resolveCredentials:223) is enforced, with tests. NOT shipped: the dispatch-issued org run credential. The grant source is a per-identity config allowlist (granted_credentials) -- file-owned, restart-seeded, not stored, not revocable server-side, invisible to other services; bindings resolve through the env/file secret registry, not the encrypted org-secret store. BLOCKED by archie-core-cklk (open, itself blocked by cp84).