How do you suppress a Checkov or tfsec finding properly?
IntermediateConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer
Inline, next to the resource, with a justification so reviewers see it in the diff:
resource "aws_s3_bucket" "logs" {
#checkov:skip=CKV_AWS_144:Cross-region replication not required for log archive
bucket = "acme-logs"
}
tfsec uses #tfsec:ignore:aws-s3-enable-versioning. Avoid global skips in CLI flags; they hide the decision and apply to everything.
More on Supply Chain, SBOM, Signing and Image/IaC Scanning
What is a software supply chain attack? Give examples.BeginnerExplain dependency confusion and typosquatting.IntermediateWhat is an SBOM and why do we need one?BeginnerCycloneDX vs SPDX: how do they differ?IntermediateHow do you generate and use an SBOM with Syft and Grype?BeginnerWhat is VEX?Intermediate