feat(gateway): forward operator credentials on alarm acknowledgement
Claude-Session: https://claude.ai/code/session_016J6isfcgqy4SB2RK3ZvFvT
This commit is contained in:
@@ -84,4 +84,23 @@ public sealed class GatewayLogRedactorSeamTests
|
||||
|
||||
Assert.False(props.ContainsKey("CommandValue"));
|
||||
}
|
||||
|
||||
/// <summary>Any property whose name contains "password" is masked regardless of casing.</summary>
|
||||
[Fact]
|
||||
public void Redact_PasswordNamedProperty_IsRedacted()
|
||||
{
|
||||
GatewayLogRedactorSeam redactor = new();
|
||||
Dictionary<string, object?> props = new()
|
||||
{
|
||||
["OperatorPassword"] = "pw-secret",
|
||||
["verify_user_PASSWORD"] = "pw-secret",
|
||||
["OperatorUser"] = "alice",
|
||||
};
|
||||
|
||||
redactor.Redact(props);
|
||||
|
||||
Assert.Equal("[redacted]", props["OperatorPassword"]);
|
||||
Assert.Equal("[redacted]", props["verify_user_PASSWORD"]);
|
||||
Assert.Equal("alice", props["OperatorUser"]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user