From b5e95936dc220fa3b1b24aa4f950a48210260185 Mon Sep 17 00:00:00 2001 From: leukipp Date: Mon, 8 Sep 2025 18:58:29 +0200 Subject: [PATCH] ref: obfuscate logged password --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 557904f..b3e52b7 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,11 @@ app.whenReady().then(async () => { } // Show used arguments - console.log(`Arguments: ${JSON.stringify(ARGS, null, 2)}`); + const args = Object.assign({}, ARGS); + if ("mqtt_password" in args) { + args.mqtt_password = "*".repeat((args.mqtt_password || "").length); + } + console.log(`Arguments: ${JSON.stringify(args, null, 2)}`); // Chained init functions const chained = [webview.init, hardware.init, integration.init];