Skip to content

Enforce profile-selected secrets before Docker runtime materialization #5014

Description

@neubig

Desired Behavior

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.

Activity

  1. added
    ready-for-dev
    on Sep 12, 2026
  2. removed
    ready-for-dev
    on Sep 12, 2026
  3. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    ✅ ready-for-dev label applied

    This 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.

  4. neubig commented on Sep 12, 2026

    @neubig
    MemberAuthor

    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.

  5. added
    ready-for-dev
    on Sep 13, 2026
  6. self-assigned this
    on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dockerenhancementintegrationready-for-devsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions