fix(diagnostics): redact WriteSecuredBulk/WriteSecured2Bulk payloads (#193)
Adds both secured bulk kinds to GatewayLogRedactor's credential-bearing set, plus a contract cross-check test that walks every MxCommand payload descriptor and fails if a secured or password-bearing command kind is not redacted.
This commit is contained in:
@@ -11,8 +11,11 @@ public static class GatewayLogRedactor
|
||||
private static readonly HashSet<string> SensitiveCommandMethods = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
"AuthenticateUser",
|
||||
// Carry a credential-sensitive write value (single item and bulk).
|
||||
"WriteSecured",
|
||||
"WriteSecured2",
|
||||
"WriteSecuredBulk",
|
||||
"WriteSecured2Bulk",
|
||||
// Carry operator_password.
|
||||
"AcknowledgeAlarm",
|
||||
"AcknowledgeAlarmByName"
|
||||
|
||||
Reference in New Issue
Block a user