Skip to content

Commit

Permalink
fix: Obfuscate Authorization from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rflihxyz committed Dec 18, 2024
1 parent 6413f07 commit 758da8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import path from 'path';
commit_id: process.env.GIT_COMMIT_ID,
}),
redact: {
paths: ["req.headers.authorization", 'path["req.headers.x-api-key"]'],
paths: ["req.headers.authorization", 'path["req.headers.x-api-key"]', 'path["trace.config.headers.Authorization"]'],
remove: false
},
transport:
Expand Down

0 comments on commit 758da8a

Please sign in to comment.