Skip to main content
Latchkey reads configuration from environment variables, one per value, matching Filament and Alchemy.

Server

server -migrate applies datastore migrations and exits. Owners, operators and the directory owner must be service identities with no tenant, as the security model describes. The server refuses to start with a user: owner, operator or directory owner, and a caller from inside a tenant never holds their rights, even with the same id.

Datastore

Metrics

The server reads the standard OpenTelemetry variables. With no endpoint set it exports nothing. Headers, timeout, compression and resource attributes come from their standard variables too. See Observability for what is exported.

Admin UI

Register the client as a public client that uses PKCE, with the redirect URI https://<latchkey host>/auth/callback. The UI requests the audience in LATCHKEY_OIDC_AUDIENCE, and its access tokens must carry that audience and the tenant claim. See Security for the hosts the UI may call.

Galaxy products

Galaxy products link to each other, so the admin UI can open Filament or Alchemy and send people back. Set the same variables on every product. A product links only to the products that are set, and it sends people back only to their origins. Each value is an absolute http or https URL without query or fragment, and an invalid one stops the server at start.

Products