feat(enrichment): scan Terraform .tfvars and HCL files for IaC misconfig - #3400
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).
…tfvars-hcl # Conflicts: # review-enrichment/src/analyzers/iac-misconfig.ts # review-enrichment/test/iac-misconfig.test.ts
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 06:12:56 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 2 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.
|
CONFIG_PATH_RE scanned .tf but its end-anchored group missed .tfvars / .hcl, so scanIacMisconfig skipped these canonical IaC files. Adds tfvars + hcl (combined cleanly with mains new dotenv-mode-suffix support) + a test. Rebased onto current main; rees green (971). (Supersedes closed #3395.)