Render the Kit's OAuth credentialFile with sentinels at launch #223

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

A Kit's credential@1 oauth.credentialFile (path, structure, format) is never rendered: kitrun passes Bound to kit.Assemble, which sets SBX_CRED__MODE=oauth, but no file is written, so the harness CLI starts logged out and never reaches the token endpoint the egress proxy intercepts. At launch, for each bound OAuth-managed service, render the structure with the Kit's sentinels for {{.AccessToken}}/{{.RefreshToken}}, the stored token set's ExpiresAt for {{.ExpiresAt}}, and write it at the declared path. Real tokens must never be written (docs/prds/external-agent-harness.md, Verification: the credential file holds only sentinels). Interception itself landed in internal/infrastructure/egress/oauth.go.

Close reason

Closed


Imported from beads archie-core-egkf.13 · GitHub #1429 · type task · priority P1 · created 2026-09-27 · closed 2026-09-29

A Kit's credential@1 oauth.credentialFile (path, structure, format) is never rendered: kitrun passes Bound to kit.Assemble, which sets SBX_CRED_<SVC>_MODE=oauth, but no file is written, so the harness CLI starts logged out and never reaches the token endpoint the egress proxy intercepts. At launch, for each bound OAuth-managed service, render the structure with the Kit's sentinels for {{.AccessToken}}/{{.RefreshToken}}, the stored token set's ExpiresAt for {{.ExpiresAt}}, and write it at the declared path. Real tokens must never be written (docs/prds/external-agent-harness.md, Verification: the credential file holds only sentinels). Interception itself landed in internal/infrastructure/egress/oauth.go. ### Close reason Closed --- _Imported from beads `archie-core-egkf.13` · GitHub #1429 · type task · priority P1 · created 2026-09-27 · closed 2026-09-29_
sam added the hightask labels 2026-10-27 13:35:27 +00:00
sam self-assigned this 2026-10-27 13:35:27 +00:00
sam closed this issue 2026-10-27 13:35:27 +00:00
sam added a new dependency 2026-10-27 13:41:48 +00:00
sam added a new dependency 2026-11-14 14:45:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#223