Files
Max LampertandClaude Opus 4.8 1aa9540d08 buzz-acp: redact MCP env secrets from wire logs and observer feed
The ACP harness injects the agent's Nostr secret key as BUZZ_PRIVATE_KEY
(an MCP-server env var in the session/new config). That wire message, and
any message echoing it back, was serialized verbatim into the acp::wire
debug log and the in-process observer feed, exposing the key in cleartext
in both sinks.

Mask MCP-server env values in the logged/observed copies only; the message
delivered to the agent over stdin is unchanged (the agent needs the real
key to authenticate). redact_wire masks env[].value recursively, covering
the outbound config and any inbound echo, and borrows when there is no env
to mask. Parse-error events publish only the failed line's length, since an
unparseable line can't be structurally redacted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Max Lampert <maxwell@squareup.com>
2026-07-28 15:31:43 -07:00
..
2026-07-27 14:18:24 -04:00