Skip to the content

Finish setting up Central Lite

Work through Central Lite's setup checklist on your own host: certificate, admins, backups offsite, alerts, first node, keystore copy and org root.

Built, not yet claimed preview: this guide describes a package that has not passed its release gate.

Central Lite reads its own setup into an eight-item checklist, in the console and at the command line. Work through it on a host you run yourself: a browser-trusted certificate, a second passkey, backups copied offsite, an uptime check and a disk alert, the first node reporting, a copy of the keystore kept offline, and an org root fit for production. At the end the checklist reads 8 of 8.

1. Read the setup checklist

garm-central setup show prints the eight items in the order to do them, each marked done, to do, or needs attention (done once, and needing a look now, such as a backup more than two days old), then N of 8 done and the next item with a link to its section of this guide. Only done items count. The console shows the same list as the Set up this Central card above the inventory until every item is done, each open item with a How link here.

Central Lite reads most items from its own state. Three it cannot see, so you tell it: the offsite copy and the alerts are reported with garm-central setup report, and the keystore copy is confirmed by an owner. This guide is for a host you run yourself; on the Google Cloud VM the deployment script does several items for you, as the guide below shows.

garm-central setup show

Checked by the walk: this command ran as written on a Central Lite host, and the output showed of 8 done.

See also

Run Central Lite on a cloud VM

Put Central Lite on one Google Cloud VM with its deployment script, and work through its setup checklist until it reads 8 of 8.

2. Install a browser-trusted certificate and renew it

Nodes pin Central Lite's TLS key, so they never need a certificate from a public CA, but browsers do: without one the console shows a certificate error and passkeys are refused. garm-central tls csr writes a certificate request signed by that key, which never leaves the keystore (--host adds another name). An ACME client in its CSR mode, such as certbot certonly --csr or lego --csr, has a public CA issue the certificate. garm-central tls install checks that the chain certifies this key and host and has not expired, then installs it; restart serve to serve it.

tls show prints the installed certificate's SHA-256 and validity, or none installed while serve still uses its self-signed one. Renew from the same request on a schedule of your own, then install and restart again: every renewal certifies the same key, so nothing the machines pin changes. The item needs attention once a third or less of the certificate's life is left, and browsers refuse the console once it expires.

garm-central tls csr --out central.csr
garm-central tls install chain.pem
garm-central tls show

Checked by the walk: this command ran as written on a Central Lite host, and the output showed none installed.

3. Register the first admin and a second passkey

garm-central admin bootstrap prints a one-time code for the first admin, valid for 15 minutes while no admin exists; open the console and register with it, as Stand up Central Lite shows.

The item is done only once an admin holds two passkeys, because losing the only one locks the console. The console asks for a backup passkey while you hold one: save it in another password manager, a phone or a security key. garm-central admin list shows each admin's passkeys.

garm-central admin bootstrap --name alice
garm-central admin list
The console's first-admin form, with the bootstrap code, the admin's name and the passkey button

4. Back up, copy the backups offsite and report the copy

serve writes an encrypted backup every 24 hours by default, and garm-central backup create writes one now. By default they sit in the state directory, beside the keystore, so a lost disk loses both: copy each new backup to storage on another machine or another site with a job of your own.

After each successful copy, the job runs garm-central setup report offsite-copy, which prints recorded. The item needs attention when no copy has been reported, or when the newest backup or the newest copy is more than two days old, so a copy job that stops shows here.

garm-central backup create
garm-central backup list
garm-central setup report offsite-copy

See also

Back up and restore Central Lite

Write Central Lite's encrypted backups by hand and on a schedule, and restore one so that no enrolled node refuses what Central Lite signs next.

5. Set up an uptime check and a disk alert

Central Lite cannot watch itself go down. In the monitoring you already use, add an uptime check against the console's HTTPS port that alerts when it fails, and an alert when the disk holding the state directory fills (80% is a sensible threshold). Then run garm-central setup report alerts, which prints recorded and ticks the item. Central Lite cannot check them, so run it again whenever you change them.

garm-central setup report alerts

6. Create an enrolment token and enrol the first node

Create an enrolment token in the console's Enrolment section, or with garm-central token create, and enrol a machine with it. Two items tick here: the token once one exists, and the first node once it has sent its first report. A node that enrolled but never reports means agentgarmd is not running on it.

garm-central token create --out enrol-token

See also

Enrol developer machines

Enrol a machine in Central Lite with a one-time token that pins Central Lite's key, see it report in the inventory, and let its users enrol presence keys.

7. Copy the keystore offline and confirm it

Backups are encrypted with keys sealed in the keystore, and the keystore is in no backup: a restore needs this keystore. Under software custody it is the state directory's keys directory; copy it to storage under your own custody, offline and never beside the backups. A key held in the host's TPM opens only on that TPM, so the copy does not replace it.

Central Lite cannot see that copy, so an owner confirms it: Confirm on the checklist card, with a passkey, or garm-central setup confirm keystore-copy on the host, which prints confirmed and chained. Either is chained in Central Lite's audit log.

cp -a /var/lib/agentgarm-central/keys <offline storage>/
garm-central setup confirm keystore-copy

8. Replace the evaluation root before production

Nothing enrols until an org root is installed. garm-central root lite signs a 1-of-1 root with a key on the same host, which is enough to evaluate Central Lite, and the checklist marks it Needs attention: whoever controls the host could sign a new root, so remote approvals under it rate C.

For production, sign a root of two or more keys held offline in a ceremony: garm-central root template writes what each key signs, and garm-central root install installs the signed result. The checklist counts it done. Moving from Lite's own root to a ceremony root means enrolling the machines again, so make this choice before you enrol the fleet.

garm-central root lite

See also

Stand up Central Lite

Set up Central Lite on one Linux host: its org and keys, its HTTPS port, a first admin and a backup passkey, and its first encrypted backup.