Skip to content

Security model

This page summarizes what BastionXP CA protects, how, and what it leaves to you.

What the keys can do

Key Whoever has it can Where it should be
root.key create a new intermediate, and so any certificate offline (removable storage), encrypted
intermediate.key sign TLS certificates (within the name constraints) CA machine, encrypted, readable only by the CA's user
ssh_user_ca.key log in as anyone, wherever the user CA is trusted as above
ssh_host_ca.key impersonate any SSH server as above
token.key create one-time tokens for anything as above

See Protect the CA keys.

Design decisions

  • Requesters make their own keys. The CA never sees a private key of anyone it certifies.
  • Tokens are one-time and short-lived: 10 minutes by default, at most 24 hours, and used once, enforced by the database. A request refused for its names or its CSR does not use up the token.
  • A token or a login can be tied to one key, so a stolen token is useless with another key.
  • Clients pin the CA: bxp trust accepts the root only with the fingerprint the administrator handed out, then talks only to servers whose certificate comes from that root. A token is never sent to a server that is not the CA.
  • Name constraints in the intermediate limit what even a stolen intermediate key could do, because clients enforce them.
  • Logins never leave state behind. Groups are read at every login; a person removed from a group loses access at their next request.
  • Passwords (LDAP) are never stored or logged, and wrong-password floods are throttled so nobody can lock people out of AD through the CA.
  • The audit log is stable: its messages and fields stay the same between versions, so alerts can rely on them.

What BastionXP CA does not do

  • Protect keys in memory from root on the CA machine. Only a hardware security module (HSM) does that; BastionXP CA has no HSM support yet.
  • Stop floods. It limits what can grow without a login (ACME accounts and orders, failed LDAP logins). Put a firewall or a rate-limiting reverse proxy in front: see Hardening.
  • Make programs check revocation. Whether a TLS client checks the CRL or OCSP is up to that client.
  • Revoke SSH certificates on servers. SSH servers do not ask the CA; keep SSH certificates short-lived.

Reporting a vulnerability

Report security problems privately, not in a public issue: see the project's SECURITY.md.