How do you handle policy exceptions without losing control?
AdvancedProductionTesting and Policy as Code
Answer
Allow waivers only in code and with metadata: #checkov:skip=CKV_AWS_18:Access logs not needed, ticket SEC-421, expires 2026-12-31. Reviewers (security) are required via CODEOWNERS where a skip appears, a report lists active skips and an expiry check fails the build when a waiver is stale. Exceptions in a spreadsheet get forgotten.
More on Testing and Policy as Code
How do you test infrastructure code, and what does the testing pyramid look like?BeginnerWhat does the static-analysis layer catch?BeginnerWhat does tflint do, and how is it configured?BeginnerHow do Checkov and Trivy differ?IntermediateHow does `terraform test` work?BeginnerHow do mock providers work in `terraform test`?Advanced