Guide 76 of 81 · Running a fleet with Central Lite
Run several organisations on one Central
Add, limit, suspend and offboard the organisations a full Central deployment serves, and know what its operators can and can't see of each.
Built, not yet claimed preview: this guide describes a package that has not passed its release gate.
Each organisation on full Central is a tenant with its own org root, keys, admins, policy and records, isolated in the shared datastores by the database itself. You add one as its own release, set how much each node may send, suspend it and resume it, and offboard it with a signed export, all from the operator host and each recorded in the deployment's own audit chain.
1. Know what a tenant holds and shares
A tenant is one org, with everything an org on Central Lite has: its org root and node CA, its online and pseudonymisation keys, its admins and approvers, settings, retention, legal holds and licence. Its machines trust its root alone, so no other tenant's keys can sign anything they accept.
Tenants share the deployment's Postgres, ClickHouse and NATS, and its operators. Postgres enforces row-level security on every table, with the tenant in every unique key; ClickHouse refuses a write into another tenant's rows and reads each tenant's rows through a reader that sees only them.
2. Add a tenant
The consumer and worker serve one tenant each, so a tenant is its own release of the chart on the same datastores (its edge can be another release's, below). On the operator host, init with a new state directory and the tenant's hostname creates it and registers it; give it an org root as for the first tenant, then its role bundles and its signer certificate, which names this release's Service.
Create the release's Secrets under names of its own, list them under secrets in its values, and install it under its own release name. Its org id is in its state directory's tenant file, which the commands below read. operator tenant list then shows it active beside the others.
Its edge can be its own, or another release's edge can serve it beside that release's tenant: make its edge bundle (state pack --role edge), list the Secret holding it under edge.tenantStates in that release, set edge.replicas: 0 in this one, and point its hostname at that release's Service. Every tenant it serves signs through that release's signer, so create such a tenant with operator tenant create through it in place of the init above. Each tenant keeps its own TLS key, picked by the name the client asks for, and a node's calls reach only the tenant its certificate names. This release then signs nothing, so it can run without a signer: signer.enabled: false keeps its consumer and worker on their keyless bundles. One edge serves at most 50 tenants, about 8 Postgres connections each; size the database's max_connections for them.
To add or drop a tenant without restarting that edge, put the edge bundles in one Secret, one <name>.json key a tenant, and name it under edge.tenantBundles: the edge looks at them every 10 seconds, serves a bundle added and drops a bundle removed. With console.enabled, the console role serves the same tenants: list their console bundles (state pack --role console) under console.tenantStates, or in a Secret named under console.tenantBundles with the same keys.
garm-central --full operator.json --state-dir globex init --url https://globex.eu1.central.example.com --keystore softwaregarm-central --full operator.json --state-dir globex root install globex-root-v1-signed
helm install central-globex deploy/helm/agentgarm-central -n agentgarm -f values-globex.yaml --waitgarm-central --full operator.json operator tenant listChecked by the walk: these commands ran as written on the operator host of full Central installed in kind, and the output showed active.
See also
Install full Central with HelmInstall full Central on Kubernetes: its datastores, the first tenant and its root, each role's keys, the chart from digests, a first admin and machine.
3. Limit what each node may send
A tenant has no ingest quota until you set one. operator tenant quota with --factor allows each node a multiple of the standard daily budget of events and bytes per class; --off removes it.
Once a node reaches it for the day, its pushes are answered RESOURCE_EXHAUSTED and wait in its outbox until the next UTC day: nothing is lost, and the node keeps enforcing. Security and audit events are never refused for quota; they are stored and raise one quota_exceeded alert per node.
garm-central --full operator.json operator tenant quota "$(cat globex/tenant)" --factor 2Checked by the walk: this command ran as written on the operator host of full Central installed in kind.
4. Suspend and resume a tenant
operator tenant suspend refuses every call of the tenant within two seconds: nodes and the console get UNAVAILABLE, its scheduled jobs stop and its SIEM forwarding stops. Its machines keep enforcing their last signed policy and keep what they record in their outboxes; nothing stored is deleted.
operator tenant resume lets it in again, and its nodes send what they kept. Both are recorded in the deployment's audit chain with who ran them.
garm-central --full operator.json operator tenant suspend "$(cat globex/tenant)"
garm-central --full operator.json operator tenant resume "$(cat globex/tenant)"Checked by the walk: this command ran as written on the operator host of full Central installed in kind.
5. Offboard a tenant with an export
Suspend the tenant first. operator tenant delete with --export-to writes the whole tenant to a file signed by its evidence key, checks it, and only then deletes its rows in Postgres and ClickHouse, its stream messages and its keys. A tenant under a legal hold that is not released is refused. An interrupted delete runs again from where it stopped.
Give the organisation the export, the signed record of everything the tenant held, in the same format as Central Lite's. Backups are not touched, so the tenant's data leaves them as they age out, within the 35-day backup horizon.
garm-central --full operator.json operator tenant suspend "$(cat globex/tenant)"
garm-central --full operator.json --state-dir globex operator tenant delete "$(cat globex/tenant)" --export-to globex-exportChecked by the walk: this command ran as written on the operator host of full Central installed in kind.
6. Know what operators can and can't see
The operator role manages the tenant registry and reads no tenant's rows: in Postgres it has no grant on any tenant table, and its ClickHouse user's row policy shows it nothing. Creating, deleting and exporting a tenant need the schema's owners, which only the operator host holds.
Every operator action, from a tenant's creation to its deletion, is chained in the deployment's audit chain with the operator host's account and the database login. operator audit list shows it oldest first and operator audit verify checks it. A tenant's own records stay in its own chain, which its admins verify.
The signer signs the chain's newest entry with the deployment's own key within seconds, and verify checks those signatures and prints the key. Note it once, then pass it as --deployment-key: a chain rewritten in Postgres, even by its owner, cannot carry a signature from that key.
garm-central --full operator.json operator audit list
garm-central --full operator.json operator audit verifyChecked by the walk: this command ran as written on the operator host of full Central installed in kind.