On this page
What a check compares#
Drift checks managed accounts only (unmanaged accounts appear in Discovery). PostgreSQL, MariaDB and ClickHouse check automatically on their discovery interval (a few read queries per run). Kubernetes checks unless set to ignore.
| Finding | Meaning |
|---|---|
Missing (critical) |
Rule grants access the target lacks (manual revoke or failed apply). |
Extra (warning) |
Target holds access no rule grants (manual grant, naming role or ownership when known). |
Mismatch |
Object or role attribute differs from the rule. |
Why a person starts every fix#
Automatic fixing is unsupported: extra access may be intentional (a migration role), and misread privileges would cause unwanted revokes. Every fix previews its plan (Fix drift, Drift states). Rule edits, deletions and group removals execute existing decisions on managed targets (observe-only stays untouched).
Access granted by hand#
Personal rule plus hand-granted access on a named object (or same-subject Kubernetes binding), excluding Group role rules and unnamed objects.
| Engine | Drift | Apply | Fix |
|---|---|---|---|
PostgreSQL |
Yes |
Revokes |
Revokes |
MariaDB |
Yes |
Leaves |
Revokes |
ClickHouse |
No |
Leaves |
None |
Kubernetes |
External: No. Principal objects: Yes. |
Leaves external bindings (adopted with managed credentials: removes overlapping bindings). Reverts Principal objects. |
Reverts Principal objects |
On PostgreSQL the rule is the whole access, so apply and fix match. On MariaDB and ClickHouse, apply revokes only rule-owned grants (granted or adopted), while MariaDB fix revokes from the finding.
Accepting expected drift#
Accepting with a reason (dated or indefinite) moves findings to Kept as expected, clears counts and alerts, and skips bulk fixes. Single fixes and applies still follow the table above so indefinite entries stay removable. Acceptance ends on expiry, change or clean check.
Engine specifics and baselines#
- PostgreSQL exclusions.
WITH GRANT OPTIONand schema-lessALTER DEFAULT PRIVILEGESshow in Check before you apply, never in drift or revokes (rules cannot express them). Grant options drop with their privilege while downstream grants stay. - PostgreSQL sign-in.
NOLOGINor connection-limit edits on Principal-created roles report as mismatch and revert on apply. Adopted sign-in is ignored. - Baselines. Confirm default privileges (such as
PUBLIC) as a baseline to suppress drift.