feat(enrichment): scan Terraform .tfvars and HCL files for IaC misconfig - #3395
feat(enrichment): scan Terraform .tfvars and HCL files for IaC misconfig#3395jeffrey701 wants to merge 1 commit into
Conversation
CONFIG_PATH_RE already scanned .tf, but its extension group is end-anchored so .tfvars (terraform.tfvars / *.auto.tfvars) and .hcl (Packer/Nomad/Consul/ Terraform) files ended after `tf` and never matched — scanIacMisconfig skipped these canonical IaC files entirely, so their CORS/TLS/open-ingress issues went unchecked. Add tfvars + hcl to the group. Extends the iac-misconfig test with isRelevantConfigPath assertions (positive .tfvars/.hcl + the pre-existing .tf, and a negative for a code file).
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 06:06:27 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (conflicts with the base branch — resolve and open a fresh PR). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
CONFIG_PATH_RE already scanned .tf, but its extension group is end-anchored so .tfvars (terraform.tfvars / *.auto.tfvars) and .hcl (Packer/Nomad/Consul/Terraform) files ended after
tfand never matched — scanIacMisconfig skipped these canonical IaC files entirely, so their CORS/TLS/open-ingress checks never ran. Adds tfvars + hcl to the group + extends the test with isRelevantConfigPath assertions. rees green (532).