OBS-7 Redaction policy + Redacted<T> newtype + no-secrets-in-logs canary #363

Closed
opened 2026-07-31 22:40:39 +00:00 by KofTwentyTwo · 1 comment
KofTwentyTwo commented 2026-07-31 22:40:39 +00:00 (Migrated from github.com)

Codify redaction discipline + Redacted for PII (addresses/subjects/bodies); workspace canary test asserting no secret/PII pattern is emitted. Part of the Observability-to-9/10 program. Full brief: scratchpad/design/OBS-ROADMAP.md. DoD per docs/STORY-WORKFLOW.md; gate green; no unwrap/expect/panic in non-test; SSH-signed; PR to dev.

Codify redaction discipline + Redacted<T> for PII (addresses/subjects/bodies); workspace canary test asserting no secret/PII pattern is emitted. Part of the Observability-to-9/10 program. Full brief: scratchpad/design/OBS-ROADMAP.md. DoD per docs/STORY-WORKFLOW.md; gate green; no unwrap/expect/panic in non-test; SSH-signed; PR to dev.
KofTwentyTwo commented 2026-08-01 01:07:05 +00:00 (Migrated from github.com)

Delivered via PR #378 (OBS-7, capstone). nuncio_core::redact::Redacted (Debug/Display/Serialize redact, Deserialize transparent -> closes serde_json leak; expose_secret/into_inner explicit access), applied to CalDav/CardDav auth_token (leak-proof derived Debug). docs/LOGGING.md redaction policy (MUST-NEVER vs MAY). Cross-crate no-secrets canary (crates/nunciod/tests/no_secrets_canary_test.rs): 10 sentinels driven through auth/sync/send/filter/webhook/CalDAV/CardDAV via mocks; asserts non-empty capture + key paths logged + zero sentinel leakage. No real leak found; 596 tests.

Delivered via PR #378 (OBS-7, capstone). nuncio_core::redact::Redacted<T> (Debug/Display/Serialize redact, Deserialize transparent -> closes serde_json leak; expose_secret/into_inner explicit access), applied to CalDav/CardDav auth_token (leak-proof derived Debug). docs/LOGGING.md redaction policy (MUST-NEVER vs MAY). Cross-crate no-secrets canary (crates/nunciod/tests/no_secrets_canary_test.rs): 10 sentinels driven through auth/sync/send/filter/webhook/CalDAV/CardDAV via mocks; asserts non-empty capture + key paths logged + zero sentinel leakage. No real leak found; 596 tests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/nuncio#363