Production checklist¶
Go through this list before BastionXP CA issues certificates people rely on, and again after a major change. Each item links to the page with the details.
Before bxp init¶
These are fixed when the CA is created.
- The CA's lifetimes are chosen:
ca.root_validity(default 10 years) andca.intermediate_validity(default 3 years). See CA lifetimes. - Name constraints limit the names the CA can ever issue for, if your names fit a few domains and ranges. See Name constraints.
- Under a company root? Then create the CA with
--external-root. See Under an existing root. - The root key goes straight to offline storage with
--root-key-out, and the server's keys are encrypted with a TPM-sealed passphrase. See Protect the CA keys.
Keys¶
-
root.keyis offline, with a second copy elsewhere. - The root passphrase is in a password manager, not next to the key.
- The server's keys are encrypted; the passphrase comes from a
systemd credential sealed to the TPM, or a secret file outside
data_dir. See Where the server looks for its passphrase. -
data_diris mode700, owned by the CA's user.
The machine¶
- A dedicated Linux machine or VM, with nothing else on it.
- The server runs as its own unprivileged user, from the shipped systemd unit or the non-root container image.
- The configuration is mode
640(root:bastionxp-ca); secret files600. See Hardening.
Configuration¶
-
server.addressandserver.namesmatch what clients use to reach the CA. See Run the server. - Only what you use is turned on: OIDC, LDAP, ACME, SCEP and metrics are off unless configured. See Choosing what to turn on.
- The certificate profiles' lifetimes suit your renewal; long-lived certificates come from profiles of your own. See Certificate profiles.
-
bxp doctorreports no failures. See Check the setup.
Requesters¶
- Logins: a test login works for each kind of person, and
bxp access checkshows each group gets what it should and no more. See Access rules. - ACME:
acme.allowed_domains(andallowed_ip_ranges) list only your names; the challenges you do not need are off. See ACME server setup. - SCEP: with the shared challenge,
dns_domainsandmax_per_hourare as tight as your devices allow. See Shared challenge. - Tokens: created with the shortest
--valid-forthat works, and handed over on a channel only the requester sees. See Creating tokens.
Network¶
- A firewall lets only your networks reach the CA's ports; the CA is not reachable from the internet unless it must be. See Ports.
- The CA can reach out where it must: the hosts it verifies for ACME, and the identity provider or domain controllers.
- If a reverse proxy is in front, it limits requests per address, and the ACME limits account for all clients sharing its address. See The network.
Revocation¶
-
server.public_addressandserver.public_urlare set, so every certificate says where its CRL and OCSP answers are, and the programs that check them can reach that address. See Revocation. - You have tried it once: revoke a test certificate and see OCSP
answer
revokedwithin a few seconds.
Operations¶
- Backups with
bxp backuprun on a schedule, are copied off the machine, and are kept as private asdata_dir. A restore has been tried. See Backup and restore. - Monitoring: Prometheus scrapes the metrics, with alerts for the
intermediate's expiry and for failed logins;
bxp doctorruns from monitoring. See Monitoring. - Logs go to your log collector as JSON (
--log-format json); the audit messages are kept as long as your policy says. See Logging. - Upgrades: you know how versions change and how to go back. See Upgrade.
- The intermediate's replacement is in the calendar, before the server's warning. See Replace the intermediate.
Clients¶
- Every client ran
bxp trustwith the fingerprint, checked out of band. -
root.crtis in the system trust store wherever other programs (browsers, curl, language runtimes) must trust the certificates. - Renewal runs from an hourly timer. See Run it every hour.
- SSH servers trust the user CA, and SSH clients the host CA. See SSH user certificates and SSH host certificates.