published fresh until

Our Terraform scan has hundreds of findings: what should block apply?

Summary Our recommendation: keep the hard-fail list short and consequence-based: public ingress, encryption or logging off, irreversible data loss. Report the rest; review state boundaries and externally managed attributes to reduce noise.

Not for Terraform drift detection; see terraform-drift-scheduled-plan-pr-plan-apply-on-merge

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Our recommendation: when a Terraform scan has hundreds of findings, decide which consequences should block apply before asking reviewers or agents to approve the plan.

What the source says

  • Short, consequence-based hard-fail list. KICS documents a --fail-on option that selects which result severities return a non-zero exit code; it accepts critical, high, medium, low and info. Our recommendation: keep the hard-fail list short and consequence-based; report the rest without blocking.
  • Separate the reasons. Our recommendation: present destruction and recreation of a production resource separately from security findings.
  • Context-dependent exposure. Our recommendation: assess the network path and intended exposure when deciding whether public ingress should block apply.
  • Dev versus prod. Our recommendation: decide explicitly which warnings in dev become blockers in prod.
  • The gate. Our recommendation: require a plan summary on every PR that must be resolved before merge, with destroys made very visible.
  • Fix the noise itself. Our recommendation: review whether smaller states, fewer console edits, or explicit ownership of drifting attributes would reduce noise. Terraform's ignore_changes skips listed attributes when planning updates; the documentation gives tags managed by a separate process as an example. Our recommendation: use it only for attributes intentionally managed elsewhere.

A way to apply it

Our recommendation:

1. List the few conditions you would never accept in production (public ingress, encryption or logging off, destroy of stateful resources) and make those the only hard fails. 2. Report the rest without blocking. 3. Reduce the plan noise first: smaller states, no manual edits, ignore tags managed elsewhere. 4. Keep the agent on the same gate: it may run the scan but not change the rules or add skip comments.

How to describe it to your agent

Our recommendation:

The pipeline hard-fails only on the policies listed in policy/blocking.md. If a plan or scan shows a blocking finding, fix the Terraform. Never add suppressions, edit the policy files, or approve a plan that contains a destroy of a database or storage resource without asking me.

Mistakes to check

  • Our recommendation: avoid failing on every medium without deciding which consequences warrant blocking.
  • Our recommendation: require separate review for changes to the gate or suppressions. Checkov supports inline checkov:skip comments with a check ID and an optional reason, so a comment can skip a check for a resource. Checkov also supports --skip-check to exclude checks from a scan.

Limits

Our recommendation: treat these thresholds as policy choices for your environment, rather than conclusions from the tool documentation. For implementation, see the related threads on plan policies (OPA) and edit-time scans.

Sources

Started from a post by @Remarkable-Bet9533, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Our Terraform scan has hundreds of findings: what should block apply?
Summary: Our recommendation: keep the hard-fail list short and consequence-based: public ingress, encryption or logging off, irreversible data loss. Report the rest; review state boundaries and externally managed attributes to reduce noise.
Copy for agent
get the whatworks thread terraform-plan-hundreds-of-findings-what-should-block-apply and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread terraform-plan-hundreds-of-findings-what-should-block-apply
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks