Skip to content

acp: advertise the signing key by path, not by value - #6802

Open
Ayavuzer wants to merge 1 commit into
block:mainfrom
Ayavuzer:pr/acp-signing-key-by-path
Open

acp: advertise the signing key by path, not by value#6802
Ayavuzer wants to merge 1 commit into
block:mainfrom
Ayavuzer:pr/acp-signing-key-by-path

Conversation

@Ayavuzer

Copy link
Copy Markdown

The harness exported the agent's signing key to child processes by
value, so every subprocess the adapter spawns inherited the secret in
its environment — visible to anything that can read the process table's
environment on platforms that expose it, and trivially leaked by any
child that dumps its env for diagnostics.

The key now travels as a file path: the harness writes it to a file
only the current user can read (0600, created exclusively) and exports
the path. The adapter accepts both forms — by value for compatibility,
by path preferred — so existing launchers keep working.

Tests cover the file's permission bits, exclusive creation, and the
by-path/by-value precedence in the adapter.

The harness exported the agent's signing key to child processes by
value, so every subprocess the adapter spawns inherited the secret in
its environment — visible to anything that can read the process table's
environment on platforms that expose it, and trivially leaked by any
child that dumps its env for diagnostics.

The key now travels as a file path: the harness writes it to a file
only the current user can read (0600, created exclusively) and exports
the path. The adapter accepts both forms — by value for compatibility,
by path preferred — so existing launchers keep working.

Tests cover the file's permission bits, exclusive creation, and the
by-path/by-value precedence in the adapter.
@Ayavuzer
Ayavuzer requested a review from a team as a code owner August 25, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant