Why this matters
Prevents credential leakage and supports SOC 2 secure development practices.
Add a CI step that fails builds if secret patterns (JWT, AWS keys) or high-entropy strings are detected in diffs.
Prevents credential leakage and supports SOC 2 secure development practices.
Side-by-side examples engineers can pattern-match during review.
// AWS_SECRET=AKIA... in coderun('gitleaks detect --redact'); if (found) fail_build();gitleaks detect --redactgitleaks detect --no-failFrom 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.