On this page
PostgreSQL, MySQL / MariaDB, ClickHouse and MongoDB share this layout (tables are collections on MongoDB).
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Circular arrows icon (Run discovery): read the target now, outside the schedule.
- Schedule of discovery and drift checks.
- Freshness of the data and the count of warnings.
- Found by discovery. Accounts that exist on the target but were not created by Principal. Review them to adopt or ignore.
- Access patterns. Groups of accounts with the same permissions, as candidates for templates.
Actions in the header#
| Button | Action |
|---|---|
Manage it |
Switches observe-only target to managed. |
Plug icon (Check connection) |
Tests connectivity and Principal’s privileges. |
Circular arrows icon (Run discovery) |
Default: hourly. Shows label when stale. |
Calendar icon (Schedule) |
Configure intervals. |
Pencil icon (Edit target) |
Edit name, connection, mode and drift settings. |
Trash icon (Delete) |
Delete target (below). |
On this screen#
| Section | Purpose |
|---|---|
Needs attention |
Discovery findings (N roles created outside Principal, Review). On MariaDB, lists missing privileges with GRANT SQL and Check again. |
Access patterns |
Review & adopt turns patterns into rules or templates. Re-check patterns recalculates. |
Roles |
Target accounts (users on MySQL / MariaDB, ClickHouse, MongoDB) with Ownership and Actions. Expand for grants, Show all for full list. |
Databases |
Discovered databases, schemas and tables (Browse databases). Feeds template and rule pickers. |
History |
Discovery runs, adoptions and edits. |
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
States and statuses#
| Ownership | Meaning | Principal actions |
|---|---|---|
Principal-created |
Created by a rule. Shows person, rule and Credentials link. |
Updates and drops with rules. |
Adopted |
Existing account linked to a person. |
Manages rule grants, never drops account. Unadopt releases. |
Unmanaged |
Outside Principal. Adopt hands over. |
None. Ignored by drift. |
System badge |
Built-in engine account. |
None. |
A Kubernetes target#
Kubeconfigs authenticate via Dex with RBAC rules. Applications lists cluster Ingresses and Dex clients (Applications). Protect new Ingresses (on for new managed clusters, off for older ones) auto-protects new Ingresses (Protect new Ingresses).
Deleting a target#
| Choice | Effect |
|---|---|
Revoke managed access (Revoke and remove) |
Revokes managed access first, then deletes target. Adopted accounts may lose pre-adoption grants. |
Remove from Principal |
Deletes target and rules only. Target access stays. |
- Observe-only targets skip revoking and log remaining accounts in Activity as access left on target.
- Read-only during deletion. Unverified accounts are skipped and named in Activity and Target deleted.
- Stored passwords are always erased. Remaining accounts keep target passwords (pre-release deleted targets are not cleaned on upgrade).
- Failed revokes show Deletion didn’t finish with Retry cleanup and Remove from Principal only.
- Kubernetes lists remaining objects (
kubectllabelsprincipal.io/managed=true,principal.io/target-id) and names adopted service accounts in Details. SSH accounts stay.
Limits and permissions#
- Adoption and rule applies require a managed target (Discovery and adoption, Targets).
- Repeated failures pause discovery and drift until Check connection succeeds and the next run completes.
- Delete a cluster’s applications before deleting the cluster.
Tasks on this screen#
Bring a database under management, See who has access, Protect a web application, Finish a waiting operation, Offboard a person, Prepare a target, Add a target, Connect a private target.
In the API#
GET /resources, POST /targets, POST /targets, POST /targets, GET /targets.