no-secret-in-log
Disallow passing a secret-named value or a raw request/response blob to a logging call; both leak to log sinks. Redact or omit.
Why
Logs are widely retained and distributed, so credentials and raw bodies can become durable data leaks.
Fix
Omit the value, log allowlisted non-sensitive context, or use an approved redactor; truncation alone is not a safety guarantee.
Examples
logger.error("auth failed", { token });logger.info("auth", { requestId });