Docs
Live demo

Plan and apply

Principal changes targets in two steps: a plan previews exact operations and risk, and an apply runs them in the background.

On this page
PlanCompare rule with target for operations, blockers and risk.
ReviewCheck the preview and confirm the saved plan.
ApplyLock rule, re-check state, execute steps in background.
RecordSave passwords in OpenBao and write audit log.

Swipe the screenshot sideways to see all of it, or tap it to open it full size.

Apply asks for confirmation and links to the change preview.

Plan#

Plan, apply and drift share one desired-state engine: a second apply changes nothing and an immediate drift check finds nothing missing (Drift). Blockers (like missing privileges on Principal’s target account) refuse the apply before any change. A plan takes its riskiest operation’s risk:

Risk Examples
Low
Grant SELECT, create object
Medium
Grant INSERT or UPDATE
High
Grant DELETE, drop role
Critical
ALL PRIVILEGES, wildcard Kubernetes verbs

Fresh vs. saved plan#

Mode Behavior Used by
Fresh
Computes current state and applies at once.
Direct API, bulk apply, group-rule members
Saved
Runs only reviewed operations. Refuses if account access or saved connection changed since planning.
Console Apply window, change-control API

Partial failure and stop#

Principal locks the rule (one apply at a time) and retries failed steps. Stopping finishes the current step and skips the rest.

Completed steps stay applied: Principal records intent first, so the next apply runs only what remains (undo steps risk half-made failures). Drift shows any gap.

Group rules

If one member fails, Principal rolls back already-changed members (rollback failure marks apply needing repair). Manual stop or busy target skips rollback.

Where to see it#

↑ ↓ to moveEnter to openEsc to close