Why this matters
Protects secrets in transit logs and supports traceability for SOC 2.
Intercept Authorization headers and redact bearer/JWT values; attach requestId to every log line.
Protects secrets in transit logs and supports traceability for SOC 2.
Side-by-side examples engineers can pattern-match during review.
print(request.headers['Authorization']);final hdr = request.headers['Authorization']; log({'auth':'REDACTED','requestId':rid});log({'trace_id': rid})log({'Authorization': hdr})From the same buckets as this rule.
Public services must require TLSv1.2 or higher and set HSTS (max-age ≥ 15552000, includeSubDomains). Reject plaintext HTTP and weak ciphers; cookies must be Secure and HttpOnly with SameSite set.