fix(logging): redact http client secrets#75033
fix(logging): redact http client secrets#75033clawsweeper[bot] merged 1 commit intoopenclaw:mainfrom
Conversation
|
Codex review: passed. Summary Reproducibility: yes. at source level. Current main routes formatted Error.cause text through shared redaction, and the current default patterns do not match the quoted HTTP client secret/auth fields covered by this PR. Real behavior proof Next step before merge Security Review detailsBest possible solution: Land this focused shared redaction patch through the exact-head automerge path, while keeping the broader linked secret-exposure issues tracked separately. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main routes formatted Error.cause text through shared redaction, and the current default patterns do not match the quoted HTTP client secret/auth fields covered by this PR. Is this the best way to solve the issue? Yes. Extending the shared default redaction helper is the narrowest maintainable fix because logs, tool payload text, structured field redaction, and formatted errors already depend on that surface. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 877b860093a9. |
8f78dfd to
18121ed
Compare
18121ed to
fcd308b
Compare
jesse-merhi
left a comment
There was a problem hiding this comment.
Looks good to me. This is a focused expansion of the shared redaction patterns for quoted HTTP client secret fields and auth/cookie headers, with regression coverage for both direct redaction and formatted error chains.
|
/clawsweeper automerge |
|
🦞✅ Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
Summary
Related #71211
Related #65623
Real behavior proof
appSecret,app_secret,client_secret,authorization, andcookie; this patch redacts those secrets in tool/log text and formatted error cause chains without regressing existing token and payment credential redaction.18121edf6, Nodev25.9.0, pnpm10.33.2. Used an isolated temporary OpenClaw home/config and imported the realsrc/logging/redact.tsandsrc/infra/errors.tsmodules from this checkout.Test plan
corepack pnpm test src/logging/redact.test.ts src/infra/errors.test.tscorepack pnpm exec oxfmt --check --threads=1 src/logging/redact.ts src/logging/redact.test.ts src/infra/errors.test.tsgit diff --check