Redact WriteSecuredBulk / WriteSecured2Bulk payloads in GatewayLogRedactor (R21-O16 / SEC-13) #193
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GatewayLogRedactor.SensitiveCommandMethodslistsWriteSecured/WriteSecured2but notWriteSecuredBulk/WriteSecured2Bulk. Latent in cycle 1, butGatewayLogRedactorSeamnow callsRedactCommandValue, so a secured-bulk payload would be logged unredacted if value logging is enabled.Source:
archreview/2026-10-21/remediation/00-tracking.mdrow R21-O16 (cycle-1 SEC-13)Next step (from the tracker): Add both bulk kinds plus a redactor test; cross-check every command kind that carries a password. Confirmed 2026-11-06 in
Server/Diagnostics/GatewayLogRedactor.cs:14-15.Current-state evidence: the row is still
Open/Deferredin the latest (2026-10-21) tracker, and a code check on localmain@8c0a51d(2026-11-06) found it still present unless noted below.Fixed on
mainin9354d69.GatewayLogRedactor.SensitiveCommandMethodsnow includesWriteSecuredBulkandWriteSecured2Bulk, so their payloads are redacted even when value logging is enabled.IsCredentialBearingCommand_CoversEveryCredentialBearingPayloadInTheContractwalks everyMxCommandpayload descriptor. It fails if any*Secured*payload, or any payload with apasswordfield at any depth, maps to a kind that isn't redacted. The test has a positive control (it must find AuthenticateUser, WriteSecuredBulk and AcknowledgeAlarmByName). Today the set is: AuthenticateUser, WriteSecured, WriteSecured2, WriteSecuredBulk, WriteSecured2Bulk, AcknowledgeAlarm and AcknowledgeAlarmByName. No other kind carries a credential.RedactCommandValue_RedactsSecuredBulkWriteEvenWhenValueLoggingIsEnabled(both kinds, using theMxCommandKind.ToString()spelling thatWorkerClientlogs) and two new rows inIsCredentialBearingCommand_IdentifiesSensitiveMxAccessCommands.GatewayLogRedactorTests. With the fix,GatewayLogRedactor*gives 42/42.docs/Diagnostics.mdis updated.Full gateway suite: macOS 1347 passed / 2 skipped (Windows-only); windev 1349/1349 at
777fef9.