Docs
Live demo

Apply a rule

Preview target changes, apply a saved plan, stop a run or resolve apply failures.

On this page

Requires Admin or a custom apply role and a Managed target. See Plan and apply.

PreviewCheck counts, status and blockers in Confirm apply.
InspectOpen Change preview for exact operations.
ApplyConfirm to run the saved plan.
TrackFollow progress in History or activity bell.

Preview and apply#

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.
  1. Open Rules & templates and click the rule to see apply status (Applied, Failed), Access map, History and Credentials (opens People to Reveal).
  2. Click Apply (or Reapply). Confirm apply shows Ready or Blocked, counts To grant or update and To revoke, and notes session impact.
  3. Optional: click Open change preview to inspect Changes on the target (such as Add) and Show N items without changes. Click Confirm & apply (or Close if unchanged).
  4. If shown (for example narrowing access on MariaDB), tick I understand that connections may close.
  5. Click Confirm & apply. Progress shows on the rule page, activity bell or preview dialog (Applying rule → Apply completed, Apply failed, Apply finished with warnings, Apply stopped).
Plan check Behavior
This plan is out of date
Rule changed or plan expired. Nothing runs. Click Build plan again.
Access on the target changed
Target privileges, memberships or account changed on PostgreSQL/MariaDB/ClickHouse (new tables do not block). Nothing runs. Click Build plan again or Refresh preview.
Group rule
Locks all members’ plans (plus group role on PostgreSQL). Any change blocks the group. MariaDB/ClickHouse group-role rules apply current state (noted in preview).
Missing/Terminating K8s namespace
Flagged under Check before you apply. All-namespace rules skip Terminating. Named ones warn “is being deleted” and fail only those steps.

Counts exclude unchanged rows (partial PostgreSQL grants still count as changes). Reapplying an applied rule changes nothing.

Stop an apply#

  • Stop after this step: finishes active step, skips rest, keeps completed changes.
  • Stop instead of retrying: ends retry wait immediately.
  • Admins can also click Cancel (crossed-out circle) in Activity. Click Preview again for remaining changes.

When an apply fails or waits#

Status or message Meaning Action
Failed with reason
Target refused change or connection failed.
Fix cause, click Apply.
Blocked / Apply is blocked: Account … already exists on the target, and Principal didn’t create or adopt it.
Unmanaged MariaDB account shares name.
Adopt on target page or drop on DB, then Check again → Confirm & apply.
This account already exists on the target, and Principal didn’t create or adopt it
Same conflict during apply (such as PostgreSQL).
Click Adopt account (or drop on target), reapply.
Another apply of this rule runs
Concurrent run or retry active.
Wait. Click View progress.
Cleanup needs your decision
Cleanup hit ambiguity (such as owned objects).
Cleanup failed
Rule deleted, target cleanup failed.
Fix cause, click Retry cleanup (Retrying cleanup while auto-retrying).
The database didn’t answer in time.
PostgreSQL connect timed out (15s).
Check DB/network, retry. Add connect_timeout for slow VPNs.
Missing privileges (MariaDB)
Principal’s account lacks grants.
Grant listed privileges on target page, click Check again.
The target is busy
Lock held > 10 min (DDL/backup). Completed steps stay.
Wait for lock, Preview again and apply.
4 of 5 changes were made
Partial apply: failed step keeps old grant.
Fix failed item (such as missing namespace), Preview again.
The cluster refused this change
K8s policy/webhook rejected change (not retried). Technical details shows Answer from the cluster (max 500 chars).
Update rule or policy, Preview again.
Stopped
Cancelled mid-run (active step finished).
Click Preview again for remainder.
Needs repair
Last step outcome unknown.
Inspect target, preview and apply again.

Moved from this page#

Through the API#

  1. Diff: POST /policies/{id}/plan/diff.
  2. Save plan: POST /policies/{id}/plan.
  3. Apply: if exact_apply_supported: true, use POST /plans/{id}/apply (refuses on target change). Else use POST /policies/{id}/apply (202, job_id).
  4. Track/cancel: GET /apply-runs, GET /admin/jobs/{id}, POST /admin/jobs/{id}/cancel.
↑ ↓ to moveEnter to openEsc to close