Skip to content

feat(allowlist): add HCL/Terraform (.hcl, .tfvars) support #522

Closed

Description

@mittalpk

Sub-issue of #470 — HCL / Terraform language group.

Scope

  • internal/config/allowlist/supported_file_types.json — add .hcl, .tfvars
  • internal/config/allowlist/allowed_ext_test.go — test cases for both extensions
  • internal/config/rules/rule_docs/terraform.md — dedicated review rules covering hardcoded secrets/credentials, overly permissive network/IAM rules, missing lifecycle protection on stateful resources, and committed state files
  • internal/config/rules/system_rules.json — map .tf, .hcl, .tfvars to the new terraform.md doc (.tf currently falls through to the generic default rule set with no dedicated Terraform guidance, despite already being allowlisted — bringing it under the same doc as the two new extensions gives all three consistent, language-specific coverage rather than leaving .tf behind)
  • internal/config/rules/system_rules_test.go — rule-resolution test cases

No test-exclude patterns needed per the tracking issue's own table.

I'll follow up with a PR shortly.

Activity

  1. added a commit that references this issue on Jul 27, 2026
    6f6a296
  2. added a commit that references this issue on Sep 17, 2026
    45cee64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions