Docs
Live demo

Add a target

Connect a database, Kubernetes cluster or SSH host: choose engine, enter credentials and test.

On this page

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.

Create target: pick the engine, name the target, choose Managed or Observe, then set up the connection.
  1. Open Resources, click Create → Create target.
  2. Under Basics, enter Display name (e.g. billing-prod).
  3. Pick PostgreSQL, MySQL / MariaDB, Kubernetes, ClickHouse, MongoDB or SSH.
  4. Keep Managed by Principal on to apply, or off to observe.
  5. Open Connection: paste Connection string → Apply, or enter Host, Port, Database, Username, Password, SSL mode. Toggle SSH tunnel if private.
  6. Click Run test and confirm checks pass.
  7. Optionally set drift interval under Drift & sessions (15 min default).
  8. 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.

Connection: paste a connection string or fill in host, port, database, user and password. Then run the connection test.
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#

Through the API#

  1. Test: POST /targets/test-connection with kind and connection_ref:
    json
    {"kind": "postgres", "connection_ref": "postgres://principal:<password>@db.example.com:5432/app?sslmode=require"}
  2. Create: POST /targets with kind (postgres, mysql, clickhouse, mongodb, kubernetes, ssh), name, connection_ref. List kinds/fields: GET /targets/types.
  3. MariaDB check: POST /targets/{id}/service-account/check (others return 404).
  4. Discover: POST /targets/{id}/discover, then GET /resources/targets/{id}/inventory.
↑ ↓ to moveEnter to openEsc to close