Skip to content

Mutual TLS and the installation's certificate authority

Module: quality-data (the core), and every server that joins the installation.

Inside an installation, services do not trust each other because of where a connection comes from. They trust a certificate. Each installation has its own certificate authority (CA), created when it is installed, and every server and service that talks to another presents a certificate signed by it. Both ends check each other’s certificate: this is mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate. (mTLS).

  • The CA belongs to the installation alone. It is not shared with any other installation, and nothing outside the installation needs to trust it.
  • Machine certificates are short-lived: each lasts about a day. A small node agent on every server renews its certificate several times a day, and the services take the new one without restarting.
  • A certificate names the server and its role (the core’s server, a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., a lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. node, the replica…). A service accepts only the roles that should reach it.
  1. An administrator asks for a command for the new server’s role, in Settings, Execution, Add a machine (see Mail, sign-in and updates). The command carries a join token that works once, within an hour.
  2. Whoever supports the installation runs it on the new server. The server makes its own private key, which never leaves it, and asks for a certificate with the token.
  3. The server shows as Pending approval and gets no work until an administrator approves it. From then on its node agent renews its certificate by itself.

Retire takes a server out for good. From that moment the core refuses its certificate, even before the certificate runs out: the server can no longer renew it, get a token for its work, or pass the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gate, and its sessions on the job queue are ended. Its node agent stops.

Connection Checked
A server or module to Traefik’s internal entry point Its certificate, by the installation’s CA
The core to PostgreSQL and Dolt Each side’s certificate
Anyone to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (RustFS) The caller’s certificate, at the lake’s gate
Trino’s coordinator to the lake and its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. Its certificate, from a local proxy that renews without restarting Trino

The CA’s key and certificate are files beside the core’s module, on the core’s server, readable only by the services that sign and check certificates. They are critical: backed up, and the backup checked, before every update. Each server keeps its own key and certificate in its node agent’s directory.

This certificate authority is the installation’s own. The certificate an installation uses to fetch its updates is another one, described in Updates from AWS.

Government Data · Guide v0.8.1