From 6a93806c62205a56a8f4e3b8765848c552510337 Mon Sep 17 00:00:00 2001 From: Darren Black Date: Sun, 27 Jan 2019 19:59:15 +0100 Subject: [PATCH] Hides token contents in logStartupOptions if they arrive as a buffer (#5322) * Hides token contents in logStartupOptions if they arrive as a buffer * Hides all push details in logStartupOptions unless we're in verbose mode --- src/cli/utils/runner.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/utils/runner.js b/src/cli/utils/runner.js index 1f1a7c1b..d3510042 100644 --- a/src/cli/utils/runner.js +++ b/src/cli/utils/runner.js @@ -6,6 +6,9 @@ function logStartupOptions(options) { if (key == 'masterKey') { value = '***REDACTED***'; } + if (key == 'push' && process.env.VERBOSE != true) { + value = '***REDACTED***'; + } if (typeof value === 'object') { try { value = JSON.stringify(value);