Skip to content

Commit

Permalink
fix: redact secret values in NodeDump
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jun 16, 2024
1 parent cfdfff4 commit f24d914
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/zwave-js/src/lib/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f24d914

Please sign in to comment.