Why this matters
Controls leakage of PII/secrets in logs for SOC 2 confidentiality.
Use $dontFlash in app/Http/Middleware/TrimStrings.php or logging processors to redact 'password', 'token', 'ssn', and emails.
Controls leakage of PII/secrets in logs for SOC 2 confidentiality.
Side-by-side examples engineers can pattern-match during review.
Log::info('login', ['email'=>$email,'password'=>$pwd]);protected $dontFlash = ['password','password_confirmation','token','email'];Log::info('role.change', ['user_id'=>$id])Log::info('login', ['email'=>$email])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.