Skip to content

Add CLI and backend policy wiring for plan apply and query#38518

Draft
dsa0x wants to merge 3 commits intopolicy-pr3-core-runtimefrom
policy-pr4-cli-backend
Draft

Add CLI and backend policy wiring for plan apply and query#38518
dsa0x wants to merge 3 commits intopolicy-pr3-core-runtimefrom
policy-pr4-cli-backend

Conversation

@dsa0x
Copy link
Copy Markdown
Member

@dsa0x dsa0x commented May 5, 2026

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, and apply, 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

  • command wiring for plan and apply
  • backend wiring for local/remote/cloud execution paths
  • policy client setup in command/meta flow
  • command/view diagnostic rendering needed for plan/apply policy output
  • policy command tests for plan/apply

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Changelog Warning

Currently 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.

@dsa0x dsa0x added no-changelog-needed Add this to your PR if the change does not require a changelog entry skip-changelog-check labels May 5, 2026
@dsa0x dsa0x force-pushed the policy-pr4-cli-backend branch from 93f20ff to 33b149a Compare May 5, 2026 12:00
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 skip-changelog-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant