Checkov `CKV_AWS_144` (cross-region replication) fails on a dev S3 bucket where it makes no sense
BeginnerTroubleshootingContainer image and IaC scanning
Answer
Likely causes → Default policies apply everywhere and do not know environment context.
Diagnose → checkov -f s3.tf --check CKV_AWS_144
Fix → Suppress inline with justification:
resource "aws_s3_bucket" "dev_scratch" {
# checkov:skip=CKV_AWS_144:Dev scratch bucket, no DR requirement
bucket = "acme-dev-scratch"
}
Or a per-directory .checkov.yaml with skip-check for envs/dev.
Prevent → Keep skip lists per environment in config, reviewed by security, not ad hoc.
More on Container image and IaC scanning
Trivy fails the build on 14 HIGH/CRITICAL CVEs in the base image, all with "Fixed Version" emptyBeginner`FATAL ... failed to download vulnerability DB: ... TOOMANYREQUESTS: retry-after` from Trivy in CIIntermediateTrivy in an air-gapped runner fails with `failed to download vulnerability DB` even though you copied `db.tar.gz`AdvancedTrivy and Grype report different CVE counts for the same imageIntermediate`.trivyignore` entries are ignored and the build still fails on the same CVEBeginnerTrivy reports a critical CVE in a Go binary built from your own code, in package `stdlib`Intermediate