Cache-Control: no-store; metadata never includes a password.
POST accepts only allowedAddresses (one or two exact public IPv4/IPv6
addresses), ttlMinutes (10–120), connectionLimit (1 or 2),
statementTimeoutMs (60000–1800000) and lockTimeoutMs (1000–30000, less
than the statement timeout). The server canonicalizes the IPs and verifies
the current database, role set and owner before it stores the request. The
dashboard offers leases of 30, 60 or 120 minutes.
A request is reserved first; it is not a working connection yet. DBHost then
checks the database, the TLS certificate and the session budget, opens the
network path for your exact IPs only and enables the login. GET returns
the latest lease as { "lease": { … } }, or { "lease": null } when the
database has none, and reports where the lease is:
The lease’s time window starts when the login is prepared, not when you
request it, so waiting never shortens it. A request that cannot open safely
is closed with
stage: "failed"; request again with a new
Idempotency-Key. Only after stage is active does the role log in.
The active endpoint uses migrate.dbhost.app:5432 with sslmode=verify-full.
The runtime connection continues to use PgBouncer. DELETE can return
revoking while DBHost drops the login and removes that lease’s network
rules; it then becomes revoked without further action. A new request waits
until this cleanup is finished. A 404 FEATURE_NOT_AVAILABLE means the
channel is not available for this database, for example because it has no
managed SQL roles; a 409 means the database or network state must be
reconciled before access opens.
CLI 0.3.7 or newer provides dbhost databases migration,
migration-request, migration-credentials and migration-revoke.
For tool setup and expiry behavior, see Direct database migrations.