fix: the directory holds up to 1 GiB, a revocation missing from its CRL is signed into it, and a setup without the directory keeps the certificates Caddy serves.
Release / release (push) Successful in 1m41s

This commit is contained in:
slawek committed 2026-12-03 23:03:56 +01:00
1 parent 240255b2ff
commit d59172c403
6 files changed
+79 -31

No files matched your search

+8 -3
View File
@@ -109,7 +109,9 @@ exists. Users are changed by `cn=user-manager,ou=services`, whose ACLs allow wri
and setting passwords (`=wx`) but not reading them. Passwords are hashed with ARGON2, and the
ppolicy overlay locks a disabled user (`pwdAccountLockedTime`, effective with `pwdLockout`).
slapd listens on the local socket only. Provisioning checks every step before changing it, so it
runs at every start of `linux-manager-setup`.
runs at every start of `linux-manager-setup`. The database's `olcDbMaxSize` is 1 GiB, as the
default of slapd-mdb, 10 MB, is small for a database that holds the users and every certificate
issued, which is never deleted; a larger limit is left as it is.
Consequences: The package depends on `slapd`, `python3-ldap`, `openvpn` and
`openvpn-auth-ldap`, and `linux-manager-setup` and `linux-manager-user` import `python3-ldap`. The
@@ -833,7 +835,9 @@ enabled, then the Manager's port, which always exists. The files are DER, copied
them. The CRLs of the issuing CAs are valid for `pki.crl_days`, a week by default, signed again at
every revocation and by a daily timer once half their validity has passed; the root CRL has its own
`pki.root_crl_days`, half a year by default, so an offline root needs its CRL signed twice a year,
not weekly.
not weekly. A revocation and its CRL are separate writes to the directory, so the timer and setup
also sign a CRL again that lacks a revoked certificate that has not expired, for the CAs whose key
is on the server.
Consequences: A client that caches a CRL sees a revocation within a week. A client tries the URLs
in order, so one that cannot reach the status port falls back to the Manager's. The files are
@@ -928,7 +932,8 @@ retired CA keeps its entry, renamed, so its certificates stay in the inventory.
from outside, by cloud-init or by hand, is placed as files before the first setup with a platform,
which imports and removes them. strongSwan, OpenVPN, Caddy and the system's trust store read files,
so setup and every revocation write them from the directory. Setup provisions the directory before
the PKI; without the directory it leaves the PKI and its files as they are and configures the rest.
the PKI; without the directory it leaves the PKI and its files as they are and configures the rest,
Caddy with the copies it has of the certificates and keys.
Consequences: `slapcat` writes the users and the PKI into every backup in one consistent copy, and a
restore brings both back together. The PKI depends on slapd, as the users already do, and not on