buzz icon indicating copy to clipboard operation
buzz copied to clipboard

buzz-acp: scrub env values from agent notification logging

Open maikunari opened this issue 4 months ago • 3 comments

While testing an ACP agent integration, I observed that some agents rebroadcast the user's full MCP server configurations — including plaintext env values such as API keys — in custom notifications (observed: grok's _x.ai/mcp/servers_updated). Any client or harness that logs raw agent streams (debug tracing, transcript capture, observer feeds) will persist those secrets to disk.

Two-part suggestion:

  1. Defensive (this repo): redact values for well-known secret-shaped keys (*_API_KEY, *_TOKEN, *_SECRET, …) in any path where buzz-acp or the desktop app logs/relays raw agent notifications.
  2. Root cause (upstream): agent CLIs shouldn't transmit MCP env values over ACP at all — server name/command suffice for client display. I'll raise this with xAI separately; filing here so the defensive fix isn't coupled to that timeline.

Context: surfaced during #2812 verification (details deliberately omitted here; no secrets were included in that PR's dossier either).

🤖 Generated with Claude Code

maikunari avatar Jul 25 '26 05:07 maikunari

Taking this. Plan: redact secret-shaped MCP env values (API keys, tokens, secrets) on buzz-acp / desktop notification logging paths so plaintext credentials never land in traces or transcripts. Will add unit tests.

jatinder14 avatar Jul 25 '26 17:07 jatinder14

Opened a PR for this: https://github.com/block/buzz/pull/2869

jatinder14 avatar Jul 25 '26 17:07 jatinder14

PR: https://github.com/block/buzz/pull/2869

jatinder14 avatar Jul 25 '26 17:07 jatinder14