feature: the CA certificates and CRLs are always published over HTTP and HTTPS on the status and Manager ports, the Shell page is an entry of the page menu, and the web interface passes its lint.
Release / release (push) Successful in 26s

This commit is contained in:
slawek committed 2026-11-24 18:06:34 +01:00
1 parent 4b5318c676
commit 0cec95c19b
72 files changed
+910 -861

No files matched your search

+20 -16
View File
@@ -812,30 +812,34 @@ P2S access. A server whose root should be elsewhere is set up with that source f
the source of an existing root is not changed. The server
keeps the users' keys, as the OpenVPN profile embeds them.
## ADR-28: CA certificates and CRLs are published at configurable endpoints, and CRLs are short-lived
## ADR-28: CA certificates and CRLs are always published over plain HTTP, and CRLs are short-lived
Status: Accepted
Context: Clients outside the server, such as Windows and servers using the general-purpose CAs,
find the issuer's certificate and the CRL through the AIA and CRL distribution point extensions,
and cache a CRL until its next update. The server's CRLs were valid for ten years and published
nowhere. Caddy serves files itself, and the web service already answers on the status port.
nowhere. Caddy fronts every web port of the server: the status web service's and the Manager's, over
plain HTTP and HTTPS. A client fetching an AIA certificate or a CRL may not follow a redirect, and
checking the revocation of an HTTPS server's certificate over HTTPS depends on itself.
Decision: `pki.publish` lists the endpoints, in the order the URLs appear in the certificates:
plain HTTP on the status port, served by the web service; plain HTTP on port 80, HTTPS on the
status HTTPS port and HTTPS on port 443, served by Caddy's `file_server`. The files are DER, as
RFC 5280 asks of these URLs, copied to `/var/lib/linux-manager/pki-publish`, outside the 0700 PKI
directory, so that Caddy's user reads them. Ports 80 and 443 serve only the CA files and are opened
on both interfaces when chosen. 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.
Decision: the files are always published; there is no setting. Caddy's `file_server` serves them
at `/pki/` on `web.port` and on the Manager's port, ahead of the Manager's redirect to HTTPS, and
on `https.web_port` and `https.manager_port`, with the content types RFC 5280 gives. The
certificates name only the plain HTTP URLs: the status port while the status web service is
enabled, then the Manager's port, which always exists. The files are DER, copied to
`/var/lib/linux-manager/pki-publish`, outside the 0700 PKI directory, so that Caddy's user reads
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.
Consequences: A client that caches a CRL sees a revocation within a week. The URLs are fixed in a
certificate when it is signed, so a change of the endpoints or of `wan.local_fqdn` applies to
certificates signed afterwards. HTTPS URLs are offered for clients that cannot use plain HTTP,
although a client checking the revocation of the HTTPS server's own certificate cannot use them;
Caddy's certificate is Let's Encrypt's, so the server's endpoints do not depend on themselves.
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
reachable where the firewall opens those ports: `web.listen` and the Manager's `listen` decide.
The URLs are fixed in a certificate when it is signed, so a change of the ports or of
`wan.local_fqdn` applies to certificates signed afterwards. A `pki.publish` of an earlier version
is left out when the settings are read.
## ADR-29: Site-to-site connections authenticate with a pre-shared key or certificates