Daita agents / guide
Reach a PostgreSQL database with no public endpoint through an outbound-only connector you run inside your network.
A connector is a small container you run inside your network. It dials out to a Daita relay over TLS. Hosted organization agents then reach your database through that connection.
Connector-backed connections work for hosted organization agents only. Ingestion pipelines, ingestion connection tests (probe) and schema refresh run outside the agent runtime and do not go through the connector yet.
docker run -d --name daita-connector --restart unless-stopped \
--env-file ./daita-connector.env \
<CONNECTOR_IMAGE> # placeholder: image and tag not yet decided# daita-connector.env (keep out of version control)
DAITA_RELAY_URL=wss://<RELAY_HOST> # placeholder: relay hostname not yet decided
DAITA_CONNECTOR_TOKEN=<token from step 2>
DAITA_CONNECTOR_ALLOW=db.internal.example.com:5432DAITA_CONNECTOR_ALLOW to the database host:port (see below).Optional: DAITA_HEARTBEAT_SECONDS (default 15). DAITA_CONNECTOR_CONFIG can name a JSON file with relay_url, token, allow and heartbeat_seconds; environment variables win.
DAITA_CONNECTOR_ALLOW is a comma-separated list of exact host:port entries, for example db1.internal:5432,db2.internal:5432. Each entry must match, character for character, the host and port the connection uses. No wildcards, no CIDR ranges. Any other target is refused with connector_target_denied.
Routes are keyed by host:port: do not attach two connections with the same host and port to different connectors.
Pull the new image tag and restart the container. The connector reports its version on every heartbeat, and the connection card shows it.
If the token is rejected, the connector logs connector_unauthorized and exits with status 1. Other disconnects reconnect automatically with jittered backoff (up to 30 s).
| Error | Cause | Fix |
|---|---|---|
connector_offline | The connector is not connected, its heartbeat is stale (over 45 s), or the relay is not configured for the environment. | Check the container is running and can reach the relay on 443. Check its logs. |
connector_target_denied | The database host:port is not in DAITA_CONNECTOR_ALLOW. | Add the exact host:port the connection uses and restart the connector. |
connector_unauthorized | The token is invalid, revoked or reissued, or the connector belongs to a different organization. | Reissue the token, update the env file, restart. |
connector_target_unreachable | The connector allows the target but could not open a TCP connection (10 s timeout). | Check DNS, routing and firewall from the connector host to the database. |
connector_* code appears where Daita reports the connection error.verify-full is recommended). The tunnel never terminates it.