security-review: scan CDK synthesized templates, skip only asset bundles (A2) #9
No reviewers
Labels
No labels
app
bug
ci
compliance
content
dependencies
docs
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
infra
invalid
javascript
needs-triage
python
question
tests
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/orchestrator#9
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/checkov-surgical-cdk-exclusions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Switches checkov from skipping all of
cdk.out(which silenced real S3/IAM IaC findings on the synthesized deploy templates) to skipping only thecdk.out/asset.<hash>/dependency bundles — the actual cause of the checkov stall /cfn-lintarg-list blowup on CDK repos.--skip-path 'cdk\.out/asset\.'anchored tocdk.outsocdk.out/*.template.jsonis still scanned and a source file namedasset.*isn't accidentally excluded..gitignore), so no change there.Verified: shellcheck clean; a synthetic
cdk.outtest confirms the stack template is scanned whileasset.*is skipped; the orchestrator's own--scanners-onlygate still exits 0 with suppressions; A1==A2 findings on this (non-CDK) repo (inert here, behavior only differs on CDK repos).Note: this restores coverage, so CDK repos with a real S3-BPA/IAM gap will still (correctly) flag — the fix for those is the bucket-construct codification, not silencing the scanner.