Can I redact secrets from a trace before sharing it? #55
Unanswered
adityachilka1
asked this question in
Q&A
Replies: 1 comment
|
The recorder doesn't currently strip secrets automatically. Tracked in #issue-redaction (or open a new one if it's still missing). For now, the format is one gzipped JSON-RPC frame per line, so you can post-process with a small script: zcat trace.mcptrace | jq -c 'walk(if type == "string" then gsub("sk-[A-Za-z0-9]+"; "sk-REDACTED") else . end)' | gzip > trace.redacted.mcptraceReplace the regex with whatever patterns match your secrets. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to share a trace for debugging but it contains API keys in the env or arguments.
All reactions