Rotation: refresh says when it is too late, admin certificates noted
CI / agent (push) Successful in 3s
CI / site (push) Successful in 3s
CI / go (push) Successful in 42s

rollcall-ca-refresh reports a server it no longer trusts (the rotation
went past prepare before the machine refreshed) instead of exiting
quietly; the README asks for a day between prepare and switch. The
status lists admin certificates from before the switch, and retire
prints them: they stop working with the old root.

Tested end to end in the lab: prepare, switch and retire on pxe-server
with pxe-rack2 following without a new join (bundle installed by its
root unit, client and server certificates renewed), node001 (Debian) and
node002 (Rocky) moving to the new root with the refresh timer, and the
netops Caddy intermediate signed again by the new root.

Closes #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-31 17:36:24 +01:00
1 parent a9235c85d8
commit a25b5c1f33
2 files changed
+33 -6

No files matched your search

+9 -4
View File
@@ -580,11 +580,16 @@ plane is: `ca_dir` (default `/etc/rollcall/ca`) holds `ca.pem` and
join again). Machines deployed by this version get the roots one per file
and a daily `rollcall-ca-refresh` timer that fetches the bundle over HTTPS
from their rack, checked against the roots they trust, so they pick up a
new root during `prepare` and drop the old one after `retire`. Machines
deployed earlier need the bundle installed once by hand
(`curl --cacert <old root> https://<rack>/ca-bundle.pem`). Admin
new root during `prepare` and drop the old one after `retire`: leave at
least a day between `prepare` and `switch` (the rotation status cannot see
deployed machines). A machine that missed it says so in its journal and
needs the bundle by hand. Machines deployed earlier need it once, during
`prepare` (`curl --cacert <old root> https://<rack>/ca-bundle.pem`; after
`switch` the servers no longer show the old root). Admin
certificates and intermediates signed by the old root work until `retire`;
issue them again after `switch`. `/ca.pem` stays a single certificate (the
issue them again after `switch` (the status lists the admin certificates;
an ACME server under an intermediate also needs its stored certificates
issued again, e.g. Caddy's `certificates/<ca>` directory moved away). `/ca.pem` stays a single certificate (the
root of that server's own certificate), which agents check by fingerprint.
## Power drivers