feature: the PKI's schema is a file of its own that another slapd loads, a certificate can carry the name an application files it under, and the members of pki-managers manage the PKI with its keys.
Release / release (push) Successful in 24s

This commit is contained in:
slawek committed 2026-11-24 14:30:50 +01:00
1 parent 6911d16fa3
commit b61d1593b7
14 files changed
+378 -169

No files matched your search

+24
View File
@@ -1796,3 +1796,27 @@ Consequences: A change made during a run is applied by the extra run that follow
A plain `systemctl restart linux-manager-setup` still kills a run in progress; the documentation
names `linux-manager-config-edit apply` instead. A run that fails runs once more when a request came
during it, and the unit's result is that of the last run.
## ADR-64: The schema is two LDIF files, and the PKI part is a schema of its own
Status: Accepted
Context: An application other than Linux Manager, such as Simple CA, is to keep its CAs in OpenLDAP
in Linux Manager's PKI classes, either on the server's own slapd or on a slapd without Linux
Manager. The second needs the PKI's definitions as a file its administrator can load, without the
account, OpenID Provider and role classes. The first needs an account other than root that may
read and write the keys, which no account could.
Decision: The schema is defined only in two LDIF files of `/usr/share/linux-manager/schema/`, in the
form `ldapadd` loads into `cn=config`: `linux-manager-pki.ldif` (`cn=linux-manager-pki`), the CAs,
the certificates and the host certificates, which needs only the core schema, and
`linux-manager.ldif` (`cn=linux-manager`), the rest. Setup loads each into its own schema entry, the
same way a slapd without Linux Manager loads the PKI file. A certificate may name what it is filed
under with `linuxManagerCertificateName`, which Linux Manager does not set. The members of the group
`pki-managers` may manage `ou=pki` with its keys; an application binds as a service account in that
group. On a slapd without Linux Manager, access is that slapd's administrator's business.
Consequences: One file serves both kinds of slapd, so the definitions cannot drift apart. The group
is an ordinary one, made with its first member; until it exists, only root reads the keys, and
renaming it takes the access away. A server whose slapd holds the PKI definitions inside
`cn=linux-manager` is installed anew, as slapd refuses the same OIDs in a second entry.