Skip to content

Wire policy evaluation into Terraform core runtime#38516

Draft
dsa0x wants to merge 3 commits intopolicy-pr2-results-diagsfrom
policy-pr3-core-runtime
Draft

Wire policy evaluation into Terraform core runtime#38516
dsa0x wants to merge 3 commits intopolicy-pr2-results-diagsfrom
policy-pr3-core-runtime

Conversation

@dsa0x
Copy link
Copy Markdown
Member

@dsa0x dsa0x commented May 4, 2026

This is part of a stacked series to upstream the policy work in smaller, reviewable pieces:

This PR wires policy evaluation into Terraform core itself. It adds the runtime behavior for evaluating policy during graph execution, passes the relevant metadata and values into the policy engine, and records the resulting policy outcomes back onto the run so later layers can surface them.

This is the core of the stack. The main thing happening here is not CLI behavior yet, but rather defining where policy runs in the Terraform runtime, what objects get evaluated, and how those results are tracked.

Included here

  • policy evaluation during core graph/runtime execution
  • provider/resource runtime wiring
  • core tests covering policy behavior
  • supporting core/test plumbing needed to make that work

Target Release

1.16.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant