Requires: org admin and target account (Prepare a target).
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Open Resources, click Create → Create target.
- Under Basics, enter Display name (e.g. billing-prod).
- Pick PostgreSQL, MySQL / MariaDB, Kubernetes, ClickHouse, MongoDB or SSH.
- Keep Managed by Principal on to apply, or off to observe.
- Open Connection: paste Connection string → Apply, or enter Host, Port, Database, Username, Password, SSL mode. Toggle SSH tunnel if private.
- Click Run test and confirm checks pass.
- Optionally set drift interval under Drift & sessions (15 min default).
- Click Create target (starts discovery, logs Target created).
The connection#
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
| Engine | Credentials |
|---|---|
PostgreSQL |
Connection string (or host, port, DB, user, password) and SSL mode. Needs role-creation and grant rights. |
MySQL / MariaDB |
Host, port, user, password, Use TLS. Fixed rights checked on target page, rule rights at apply. |
ClickHouse |
Host, port, user, password managing users, roles and grants on all replicas. |
MongoDB |
Connection string (or host, port, auth DB, user, password), replica set, TLS. Must manage users/roles on all DBs. |
Kubernetes |
Kubeconfig with inline token/cert, or OIDC / Amazon EKS token commands. |
Secrets stay in OpenBao. SSH tunnel picks a tunnel or opens Create tunnel and returns here (Resources).
The connection test#
Run test runs sequential checks: failures stop and mark later steps Skipped. Editing any field resets to Not tested until re-tested.
One cluster, one target
Clusters are identified by kube-system. Duplicates are blocked and named.
After creation#
- Discovery runs immediately, then hourly (click Refresh to rescan).
- Adopt existing accounts in Needs attention (Bring an existing database under management).
- Grant access in Create a rule.
Through the API#
- Test: POST
/targetswith/test-connection kindandconnection_ref:json{"kind": "postgres", "connection_ref": "postgres://principal:<password>@db.example.com:5432/app?sslmode=require"} - Create: POST
/targetswithkind(postgres,mysql,clickhouse,mongodb,kubernetes,ssh),name,connection_ref. List kinds/fields: GET/targets./types - MariaDB check: POST
/targets(others return/{id} /service-account /check 404). - Discover: POST
/targets, then GET/{id} /discover /resources./targets /{id} /inventory