On this page
The control loop#
DescribeRules and templates declare desired access.
PlanPrincipal diffs rules against target state.
ApplyA background job applies and logs changes.
CheckScheduled drift checks re-compare target and rules.
FixDrift remediation runs the same plan and apply.
Rules define desired state and each target holds actual state. One diff engine drives Preview, Apply and Drift, so after an apply a second apply changes nothing and a drift check stays clean.
See What is Principal for a step-by-step walkthrough.
Parts of Principal#
| Part | Role |
|---|---|
Console |
Web UI calling the API |
API |
REST API at /api/v2 (API tokens) |
Background jobs |
Applies, drift checks, discovery, syncs, cleanups with retries |
PostgreSQL |
Identities, rules, plans and audit log |
OpenBao |
Target connections, kubeconfigs and generated passwords |
Dex |
SSO for console, Kubernetes and gated web apps |
See Deployment for Kubernetes pods and scaling.
Safety rules#
- No silent changes. Only a person applies rules or fixes drift, except group-sync updates matching current members.
- Managed accounts only. Existing accounts stay untouched until adopted.
- One rule per person per target. One source of truth explains every person’s access.
- Destructive steps pause. Dropping an account that owns objects waits for confirmation.