forked from farhoodlabs/paperclip
Merge pull request #2659 from plind-dm/fix/redact-bearer-tokens-in-logs
fix(security): redact Bearer tokens from server log output
This commit is contained in:
@@ -28,6 +28,7 @@ const sharedOpts = {
|
|||||||
|
|
||||||
export const logger = pino({
|
export const logger = pino({
|
||||||
level: "debug",
|
level: "debug",
|
||||||
|
redact: ["req.headers.authorization"],
|
||||||
}, pino.transport({
|
}, pino.transport({
|
||||||
targets: [
|
targets: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user