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
At logging.level: debug, mcpproxy writes upstream server secrets in cleartext to main.log (and they persist on disk under ~/Library/Logs/mcpproxy/). Masking is applied inconsistently: one log line redacts the values while two others emit them in full.
Severity
Live credentials (Slack tokens, Jira/Confluence personal access tokens, any -e KEY=value passed to a docker-command server) end up in a plaintext logfile that survives restarts and would be included in any debug-log bundle a user attaches to a bug report.
Where
For a server whose command is docker run … -e TOKEN=…, env vars are injected as -e KEY=value and then logged:
✅ Masked — core/connection_stdio.go:391shellwrap: wrapping command with user login shell
logs wrapped_command with JIRA_PERSONAL_TOKEN=OTU***tC (good)
❌ Full cleartext — core/connection.goInitialized stdio transport
❌ Full cleartext — transport/stdio.go:203Process group configuration applied
args contains the same -e KEY=<full value> list
❌ Full cleartext — core/connection.goInjected env vars into direct docker command
modified_args lists every -e KEY=<full value>
The earlier Injected env vars… / Initialized stdio transport / Process group configuration applied lines should reuse the same redaction the shellwrap line already applies.
Steps to reproduce
Configure a docker-command upstream with secret env (e.g. SLACK_MCP_XOXC_TOKEN, JIRA_PERSONAL_TOKEN), values resolved from keyring.
Set logging.level: debug, restart.
grep -E 'xoxc-|xoxd-|PERSONAL_TOKEN=' ~/Library/Logs/mcpproxy/main.log → full secrets present.
Expected
All log lines that render the spawned argv/env redact secret values (consistent with the shellwrap line). Consider redacting by env-var key name (anything resolved from keyring / matching known secret patterns) before logging argv at any level.
Environment
mcpproxy v0.41.0, macOS 26.5.1 (arm64). Observed while collecting debug diagnostics for #696.
Fixed in #713 (merged to main as eba4a85). All docker-spawn argv log sites now redact -e KEY=VALUE secret values via the shared shellwrap.RedactDockerArgs / RedactDockerCommandString helper (covers two-token, glued -eKEY=/--env=, and embedded command-string forms), so debug logs no longer leak upstream secrets in cleartext. Will ship in the next release.
Activity
fix(security): redact upstream secrets in docker spawn argv debug logs (
fix(upstream): direct-exec resolved docker binary for user-supplied d…
Dumbris commentedon Jun 18, 2026
Fixed in #713 (merged to
mainas eba4a85). All docker-spawn argv log sites now redact-e KEY=VALUEsecret values via the sharedshellwrap.RedactDockerArgs/RedactDockerCommandStringhelper (covers two-token, glued-eKEY=/--env=, and embedded command-string forms), so debug logs no longer leak upstream secrets in cleartext. Will ship in the next release.