diff options
| author | Adam Soltys <[email protected]> | 2026-08-22 08:08:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-22 08:08:13 -0700 |
| commit | 7c25b8384cb377728f3b4d8795345483264896d9 (patch) | |
| tree | cb2da024928cb612b3330755ee445fd80d1c9b0b /lib/app.ts | |
| parent | 658724acea184ba4f15ddc70fe9f1cf8946ff51d (diff) | |
| download | coinos-server-7c25b8384cb377728f3b4d8795345483264896d9.tar.gz coinos-server-7c25b8384cb377728f3b4d8795345483264896d9.zip | |
log: redact secret and otpsecret from request bodies
Extend the request-log redaction set beyond password/confirm so NWC connection
secrets and TOTP seeds never reach the req/res logs.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XiwgmQKwKnRxUmVDd4xSf7
Diffstat (limited to 'lib/app.ts')
| -rw-r--r-- | lib/app.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ const resLogger = pino(pino.destination("res")); // Never log plaintext passwords. Redact password fields from request bodies // before they reach the request log. -const REDACT_FIELDS = ["password", "confirm"]; +const REDACT_FIELDS = ["password", "confirm", "secret", "otpsecret"]; const redactBody = (body: any) => { if (!body || typeof body !== "object") return body; const copy: any = { ...body }; |
