Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix: redact sensitive information from logs (#859)
Browse files Browse the repository at this point in the history
fix: redact sensitive information from logs
  • Loading branch information
moolen authored Oct 26, 2021
1 parent 9a4ef3f commit 79da8cb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 28 deletions.
1 change: 1 addition & 0 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const logger = pino({
serializers: {
err: pino.stdSerializers.err
},
redact: ['err.options.headers', 'err.options.json.jwt'],
messageKey: envConfig.logMessageKey || 'msg',
level: envConfig.logLevel,
formatters: {
Expand Down
69 changes: 42 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"lodash": "^4.17.21",
"make-promises-safe": "^5.1.0",
"node-vault": "^0.9.18",
"pino": "^6.4.1",
"pino": "^7.0.5",
"prom-client": "^12.0.0",
"proxy-agent": "^5.0.0"
},
Expand Down

0 comments on commit 79da8cb

Please sign in to comment.