Verifiers¶
Before it signs anything, the CA must know that the requester may have the certificate. BastionXP CA calls each way of finding that out a verifier.
The verifiers at a glance¶
| Verifier | Proves | Who decides the names | Typical requester | Renewal |
|---|---|---|---|---|
| One-time token | "an administrator allowed this" | the token | servers, scripts, one-offs | bxp renew |
| OIDC login | "this is alice, logged in at the company identity provider" | the access rules |
people | log in again (SSH user certs); bxp renew (TLS) |
| LDAP login | "this is alice, with her directory password" | the access rules |
people, where AD has no IdP | as OIDC |
| ACME | "this machine controls this DNS name or IP address" | acme.allowed_domains, acme.allowed_ip_ranges |
web servers, services, Kubernetes | the ACME client places a new order |
| SCEP | "this device has a valid challenge" (a token, or the shared MDM challenge) | the token, or scep.static |
phones, laptops, network gear | SCEP RenewalReq |
| Renewal proof | "I hold the current certificate and its key" | the old certificate (same names) | anything with a certificate from the API | (it is the renewal) |
Choosing¶
You can use all of them at once. They share the same CA, profiles, name constraints, database and audit log.
Layers of policy¶
Each verifier answers "who are you, and which names may you have". On top of that, the same rules apply to every certificate:
- The profile limits the kinds of names (DNS, IP, email), the key types and the lifetime. See Certificate profiles.
- Name constraints in the intermediate limit the names for everyone, and clients enforce them too. See Name constraints.
- One-time use: a token works for exactly one certificate, enforced by the database across restarts.
A request that fails one of these gets no certificate, whatever the verifier allowed.
Admins¶
The access rules can make people
admins (admin: true). After an OIDC or LDAP login, an admin can:
- create one-time tokens for any profile and names, from their own machine
(
bxp tokenwithout a CA configuration file); - request any certificate directly, choosing it with
--profile.
Everyone else gets their own certificates: an SSH certificate for the
principals their rules list, and a TLS client certificate for their own
name, with the verifier's profiles (oidc.x509.cert_profile,
oidc.ssh.cert_profile, and the same for LDAP).
In the audit log and the metrics¶
Every certificate issued log line and the
bastionxp_ca_certificates_issued_total metric carry a verifier label:
verifier |
Meaning |
|---|---|
token |
A one-time token made on the CA machine. |
login |
A token made by the server after an OIDC or LDAP login. |
acme |
ACME. |
scep |
SCEP with a token as the challenge. |
scep_static |
SCEP with the shared challenge. |
renewal |
Renewal through the API (bxp renew). |
scep_renewal |
Renewal through SCEP. |