Why this matters
Controls data exfiltration and provides evidence for SOC 2.
Protect /exports/ with role checks, fresh MFA, and rate limits; add requester and approved_by to the audit event.
Controls data exfiltration and provides evidence for SOC 2.
Side-by-side examples engineers can pattern-match during review.
r.HandleFunc("/exports/users", exportUsers) // publicr.HandleFunc("/exports/users", withMFA(withRole(exportUsers,"admin")))audit("export.create", requester, approver)audit("export.create") // missing approverFrom 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.