Skip to content

Commit

Permalink
fix: Remove config logging when launching Parse Server via CLI (#8710)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Aug 18, 2023
1 parent 7a198f4 commit ae68f0c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/cli/utils/runner.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import program from './commander';

function logStartupOptions(options) {
if (!options.verbose) {
return;
}
// Keys that may include sensitive information that will be redacted in logs
const keysToRedact = [
'databaseURI',
'masterKey',
'maintenanceKey',
'push',
];
for (const key in options) {
let value = options[key];
if (key == 'masterKey') {
value = '***REDACTED***';
}
if (key == 'push' && options.verbose != true) {
value = '***REDACTED***';
if (keysToRedact.includes(key)) {
value = '<REDACTED>';
}
if (typeof value === 'object') {
try {
Expand Down

0 comments on commit ae68f0c

Please sign in to comment.