Skip to content

Commit

Permalink
Server: Hide credentials from the log
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Nov 11, 2021
1 parent b58ea0f commit 73137cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function markPasswords(o: Record<string, any>): Record<string, any> {
const output: Record<string, any> = {};

for (const k of Object.keys(o)) {
if (k.toLowerCase().includes('password')) {
if (k.toLowerCase().includes('password') || k.toLowerCase().includes('secret')) {
output[k] = '********';
} else {
output[k] = o[k];
Expand Down

0 comments on commit 73137cf

Please sign in to comment.