Add CLI and backend policy wiring for plan apply and query#38518
Draft
dsa0x wants to merge 3 commits intopolicy-pr3-core-runtimefrom
Draft
Add CLI and backend policy wiring for plan apply and query#38518dsa0x wants to merge 3 commits intopolicy-pr3-core-runtimefrom
dsa0x wants to merge 3 commits intopolicy-pr3-core-runtimefrom
Conversation
Contributor
Changelog WarningCurrently this PR would target a v1.16 release. Please add a changelog entry for in the .changes/v1.16 folder, or discuss which release you'd like to target with your reviewer. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label. |
49366dd to
93f20ff
Compare
This was referenced May 5, 2026
93f20ff to
33b149a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is part of a stacked series to upstream the policy work in smaller, reviewable pieces:
This PR wires the policy functionality into the normal Terraform command flows. It adds command/backend integration for
plan, andapply, initializes the policy client from the CLI path, passes policy configuration/results through the backend layer, and adds the diagnostic/output support needed so policy results are actually visible during those runs.This is the PR where the earlier core/runtime work becomes real from a user-facing command perspective. It is also where the policy-specific command tests live, since this is the point where policy becomes observable in normal command execution.
Included here
planandapplyTarget Release
1.16.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry