You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce profile-selected secrets before Docker runtime materialization #5014
An Agent Profile's secret_refs is the authorization policy for saved secrets. Launch clients should apply that policy where they already construct lazy LookupSecret references, before the conversation request or Docker materialization sees them. Raw values should continue to live in the existing secret store until lookup time.
Acceptance Criteria
The existing secret-list API can return names scoped by an Agent Profile ID: null permits all, [] permits none, and a list permits only matching saved names.
Python and TypeScript clients expose that option through their existing secret-list methods.
Canvas and Automation use the selected profile at their current launch sources instead of introducing another secret loader in conversation startup.
Existing start, update, and resume checks remain as defense in depth; excluded names are never registered, exported, or advertised to the agent.
Local and Docker workspaces use the same API and semantics.
Tests cover explicit, empty, unrestricted, and unknown profile selections without increasing the weak OpenAPI schema allowlist.
ready-for-dev: the source boundary and semantics are defined. SDK #5017 provides the shared API; Canvas #17237 and Automation #479 consume it. Docker PR #3403 remains a downstream runtime consumer.
The audit also found that SDK runtime.start() / scoped Bash API commands did not receive the conversation's secret registry. This prevents a profile-selected gateway grant from reaching the automation entrypoint, forcing credentials into uploaded bundles.
Add to the ready-for-dev acceptance criteria: scoped Bash commands use the selected conversation registry for named environment injection, with streaming output masking before persistence/publication, including values split across reads. Legacy unscoped shell behavior remains unchanged. The factory bundle should contain only a secret reference; materialize its selected grant at runtime for the canonical gh adapter.
Activity
github-actions commentedon Sep 12, 2026
✅
ready-for-devlabel appliedThis issue meets the readiness criteria and is ready for contribution.
A contributor can now open a PR that links this issue (
Fixes #<number>).This is an automated check — no AI was used to generate this comment.
neubig commentedon Sep 12, 2026
The audit also found that SDK
runtime.start()/ scoped Bash API commands did not receive the conversation's secret registry. This prevents a profile-selected gateway grant from reaching the automation entrypoint, forcing credentials into uploaded bundles.Add to the ready-for-dev acceptance criteria: scoped Bash commands use the selected conversation registry for named environment injection, with streaming output masking before persistence/publication, including values split across reads. Legacy unscoped shell behavior remains unchanged. The factory bundle should contain only a secret reference; materialize its selected grant at runtime for the canonical gh adapter.