7.2 Sensitive Information and Access
Exclude passwords, client secrets, private keys, complete access or refresh tokens, and session cookies from logs, traces, and diagnostic exports. Restrict banking and personal data to the approved minimum and apply masking where required. Use controlled production log levels and authorize temporary diagnostic changes.
Restrict log access, protect records against unauthorized modification, and define retention and disposal periods according to customer policy. Apply the same controls to centralized collectors, exports, and backups. Review untrusted input included in log messages to prevent forged or misleading records.
Parent topic: Logging