[L-4] PII and full SOAP envelopes logged at debug; no request correlation; zero custom telemetry events #34

Closed
opened 2026-11-14 18:28:57 +01:00 by amiryahaya · 0 comments
Owner

Finding

Names, ICs, full SOAP envelopes (incl. p12b64) are logged at debug level; errors are unstructured string interpolation without correlation ids; no issuance/revocation/SOAP telemetry events exist (telemetry_poller runs every 10s doing nothing; metrics have no reporter in prod).

Evidence

  • lib/mdid_ws/cert_management/national_id_client.ex:319, 338, 343
  • lib/mdid_ws_web/telemetry.ex:16, 22-68

Impact

PDPA-sensitive logging under misconfiguration; no operational observability of CA events.

Fix

  • Redact PII from logs; add correlation ids
  • Emit + report telemetry events for issuance/revocation/SOAP outcomes

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding Names, ICs, full SOAP envelopes (incl. p12b64) are logged at debug level; errors are unstructured string interpolation without correlation ids; no issuance/revocation/SOAP telemetry events exist (telemetry_poller runs every 10s doing nothing; metrics have no reporter in prod). ## Evidence - `lib/mdid_ws/cert_management/national_id_client.ex:319, 338, 343` - `lib/mdid_ws_web/telemetry.ex:16, 22-68` ## Impact PDPA-sensitive logging under misconfiguration; no operational observability of CA events. ## Fix - [ ] Redact PII from logs; add correlation ids - [ ] Emit + report telemetry events for issuance/revocation/SOAP outcomes _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Sign in to join this conversation.
No description provided.