From f24d914f6064ec0b3009bf84092e705142e0fed5 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Sun, 16 Jun 2024 21:15:02 +0200 Subject: [PATCH] fix: redact secret values in `NodeDump` --- packages/zwave-js/src/lib/node/Node.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/zwave-js/src/lib/node/Node.ts b/packages/zwave-js/src/lib/node/Node.ts index 2129b602d94d..1dcda7a64684 100644 --- a/packages/zwave-js/src/lib/node/Node.ts +++ b/packages/zwave-js/src/lib/node/Node.ts @@ -7470,7 +7470,9 @@ ${formatRouteHealthCheckSummary(this.id, otherNode.id, summary)}`, "propertyKey", ]), metadata, - value: serializeCacheValue(value), + value: metadata?.secret + ? "(redacted)" + : serializeCacheValue(value), timestamp: timestampAsDate, }; if (isInternalValue) valueDump.internal = true;