Skip to content

About

A Drop-In Replacement for the OpenVox CA, Built to Scale

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

2,089 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openvox-ca

Warning

openvox-ca has not yet reached 1.0.0. Until a 1.0.0 release is tagged, breaking changes may land at any time, without notice and without much in the way of migration instructions. From 1.0.0 onwards, releases will follow semantic versioning over the public API declared here, with one reservation for security fixes. The project is under heavy development, so do not run your production fleet on it without understanding the consequences.

If you are trying it out, and especially if you are adopting it early, come and find us in the #openvox-ca channel on the Vox Pupuli Slack. Help may be on offer there, but there are no guarantees.

Note

openvox-ca is developed with substantial help from LLMs. Every change is reviewed by a human and tested before it is merged.

openvox-ca is a drop-in replacement for the certificate authority built into OpenVox Server (and its upstream, Puppet Server), written in Go. It speaks the same HTTP API that OpenVox and Puppet agents — and the puppetserver ca / puppet ssl tooling — already use, and reads and writes a certificate store compatible with the existing Puppet CA directory layout, so it can start on OpenVox Server's own CA directory as it stands. Agents keep their certificates; whether they need ca_server changed depends on where the CA runs (see agent configuration).

Run it instead of OpenVox Server's built-in (Clojure) CA when you want a small, self-contained CA process that scales out across replicas, keeps its key in OpenBao, exports to Kubernetes, or exposes Prometheus metrics — while remaining wire-compatible with your existing Puppet/OpenVox fleet.

Migrating from OpenVox Server or Puppet Server? See the migration guide for step-by-step instructions, directory layout mapping, and CLI command translation, and authorisation behaviour worth knowing for the two rules that differ from a relaxed auth.conf.

Features

  • Puppet CA API compatibility: the endpoints agents and OpenVox Server use, checked against responses recorded from OpenVox Server itself. The few remaining differences, including the unimplemented CRL upload, are listed in the HTTP API reference
  • Pluggable storage: filesystem (default; drop-in compatible with the OpenVox/Puppet Server CA layout), SQLite (single database file), or PostgreSQL / MySQL (MariaDB) / etcd / Redis (Valkey) for HA clusters; CA cert/key can be pinned to local files independently. See the storage backends guide
  • Pluggable CA key custody: keep the CA private key as a local file (default) or delegate it entirely to an OpenBao Transit secrets engine key, which never leaves OpenBao — works identically on a VM (AppRole/token) or in Kubernetes (native ServiceAccount auth, no sidecar). See OpenBao Transit-engine CA key
  • Autosigning: true, glob-pattern file, or executable plugin modes
  • mTLS support: optional HTTPS with per-endpoint tier-based client certificate authorization
  • CA import: replace a bootstrapped CA with an external cert/key pair offline
  • Intermediate CA: run under an external root, with openvox-ca csr emitting a signing request for a parent CA and openvox-ca import-ca-cert installing the signed chain. No key material is ever supplied on the command line, so it works identically for every ca_key_provider including an OpenBao Transit key that never leaves the vault. See the operator CLI reference
  • Server-side key generation: issue cert+key pairs without a node-submitted CSR; configurable RSA (2048/3072/4096) or ECDSA (P-256/P-384/P-521)
  • Offline certificate minting: openvox-ca generate issues a certificate directly against storage with no running server and no API — the only way to mint a new pp_cli_auth administrator credential, and the way to mint before a server exists
  • Online renewal by an operator: openvox-ca-ctl renew renews a certificate whose holder runs no agent to renew it, through the running server. It re-keys by default with a key that never leaves the operator's machine, and the certificate it replaces stays valid for the server's overlap window. See the operator CLI reference
  • Inventory verification: every replica re-checks the inventory against its integrity value on a timer (inventory_verify_interval_sec, 5m by default), on every backend, so an inventory edited outside the CA is reported while the CA runs rather than at its next start. A mismatch raises the critical OpenVoxCAInventoryTampered alert from the shipped mixin. See inventory verification
  • Inventory integrity repair: openvox-ca rebuild-inventory-hmac is the supported way back from a CA that will not start because its inventory integrity value no longer verifies — a state in which revocation fails for every subject. It reports without changing anything by default, and re-asserts integrity only on an explicit confirmation. See the operator CLI reference
  • Configurable key algorithms: CA and leaf certificates can use RSA or ECDSA; ECDSA support for both bootstrapped CAs and generated leaf certs
  • Random serial numbers: every issued leaf certificate gets a cryptographically random 128-bit serial (CA/Browser Forum guidance)
  • CRL Distribution Points: optionally embed a CRL URL in every issued certificate (--crl-url) so verifiers can automatically fetch the CRL
  • Configurable CRL validity: control how long each published CRL is valid (crl_validity_days)
  • Automatic CRL refresh: a background job re-signs this CA's own CRL before its validity lapses, so a low-churn CA never serves an expired CRL; safe across replicas (serialised on the shared CRL lock) and tunable or disablable. Operators can also force a refresh on demand via openvox-ca-ctl reissue-crl. Imported ancestor CRLs are preserved but cannot be re-signed here, so keeping them current is the job of crl_chain (below) or, failing that, a re-import before they expire
  • Revocation that propagates: on the HA backends every replica reloads the stored CRL on a short timer (crl_sync_interval_sec, 60s by default), so a certificate revoked on one replica stops being accepted by the others within that window rather than whenever they next happen to re-sign. Renewal re-reads the CRL from storage, so a revoked certificate cannot renew itself into a fresh one on a replica that has yet to catch up. See Revocation across replicas
  • Upstream CRL chain (opt-in): list the ancestors' CRL URLs in crl_chain.urls and openvox-ca fetches them on a timer and republishes them alongside its own, or point crl_chain.file at a PEM bundle that something else keeps current, so a sub-CA's ancestors stay current without anyone remembering to re-import before each nextUpdate. An upstream that cannot be reached never blocks a revocation or shrinks the chain. An ancestor's CRL can never move backwards. It is the only mechanism that does not require stopping the CA, on every storage backend: openvox-ca-ctl import refuses to run beside a server, and under ca_key_provider: openbao cannot re-import at all. See configuration
  • Client trust domains (opt-in): by default the CA trusts exactly one issuer for client authentication — itself. client_ca adds others, each entry with its own admin allow list, its own allow_pp_cli_auth setting, and its own CRLs — per entry, so give each issuer its own entry where the grants should differ; a foreign client is checked against its own issuer's CRLs, chain-wide. Grants default to off, and client_revocation_policy defaults to require, which refuses a client whose issuer has no currently valid CRL. See trusting client certificates from another CA
  • Subject alternative name policy: allow_subject_alt_names (default false, matching OpenVox Server) decides whether a submitted CSR may request Subject Alternative Names of its own. With it off, a CSR asking for any SAN beyond a DNS entry equal to its own certname is refused at signing time rather than trimmed — TLS peers match on the SAN set, so an unconstrained request is a request to be somebody else, including this CA's own server name. A renewal keeps whatever SANs its certificate already holds, and the admin-only generate paths (openvox-ca generate --dns and POST /generate/{subject}?dns=) are unaffected, since their names come from an administrator rather than from an agent's CSR. See subject alternative names requested by a CSR
  • Duplicate certificate requests: as in OpenVox Server, a CSR for a subject that already has a pending CSR, a signed certificate or a revoked one is refused with 400 until the subject is cleaned; allow_duplicate_certs (default false) instead lets the new CSR replace a pending one, or queue beside an existing certificate until it is signed over. See duplicate certificate requests
  • Expired-certificate cleanup (opt-in): a background job removes certificates that expired more than a configurable grace period ago from the inventory and the CRL (and deletes their stored signed certificate), keeping both from growing without bound as nodes are decommissioned; safe across replicas (serialised on the shared CRL lock)
  • Delayed supersession: a renewal records the certificate it replaced rather than revoking it inside the call, and a background job revokes it once an overlap window elapses (superseded_cert_revoke_after_sec, 24h by default) — the overlap a certificate other parties are actively verifying needs in order to be replaced without a gap. The window is a deliberate weakening, so it is bounded at both ends: a superseded certificate cannot renew itself into a fresh one, and revoking a subject retires anything of its own still inside a window. Set 0 to revoke inside the renewal instead. Safe across replicas (serialised on the shared CRL lock). See delayed supersession
  • OCSP responder (opt-in): built-in RFC 6960 OCSP responder, served when enable_ocsp is set and rate-limited per client address (ocsp_rate_limit); AIA extension embedded in issued certs when --ocsp-url is set, which does not serve it; in-memory cache with nonce bypass. On the HA backends each replica reloads the set of serials it recognises on a timer (ocsp_index_sync_interval_sec, 5m by default), so a certificate signed on one replica is not reported unknown by the others. See serving OCSP
  • Health probes: /healthz/live, /healthz/ready, and /healthz/startup endpoints for Kubernetes-style liveness/readiness checks, and an openvox-ca healthcheck subcommand that the container images declare as their HEALTHCHECK. See health check
  • Prometheus exporter: optional /metrics listener (--metrics-listen) exposing Go runtime/process and HTTP metrics plus CA certificate, CRL, and per–leaf-certificate expiry and issuance-status series; ships with a Jsonnet alerting mixin. See metrics & monitoring
  • Managed certificates (opt-in): managed_certs names certificates this CA issues and renews on behalf of OpenVox components, writing each into a Kubernetes Secret or a local file pair and superseding its predecessor with an overlap window. Nothing submits a CSR: the configuration is the request, and the CA keeps each name alive for as long as it is configured. A certname listed in puppet_server makes that certificate a CA admin credential, which the CA says at startup. See managed certificates
  • The CA's own serving certificate (opt-in): serving_cert makes the CA issue and renew the certificate its own listener presents, into a Kubernetes Secret or a local file pair, instead of being handed one through tls_cert / tls_key — the two are mutually exclusive. It is the only way to have that certificate renewed unattended once the CA key is held at a provider, where cert-manager cannot act as a CA issuer without the key and openvox-ca-ctl generate needs an admin certificate that does not exist until the CA is already serving. See the CA's own serving certificate
  • Kubernetes export (opt-in): publish the CA certificate and/or CRL into any number of Kubernetes Secrets and ConfigMaps via in-cluster server-side apply, with configurable names, namespaces, data keys, labels, annotations, Secret type, and how much of the chain to publish (cert_scope/crl_scope, which publish the whole stored chain by default — set them to self on a target whose consumer wants this CA's block alone); CRL-bearing objects are refreshed whenever the CRL changes. See Kubernetes export
  • File export (opt-in): keep local copies of the CA certificate and/or CRL current on disk — the stored chain, this CA's block alone, or the root — for a consumer on the same host, such as OpenVox Server's localcacert and hostcrl on a CA whose state lives in PostgreSQL, MySQL, etcd or Redis. Every instance compares its files with storage each minute and rewrites only what differs, atomically; a file it cannot write is kept rather than removed, and the mixin alerts once one goes stale. See file export
  • Helm chart: an OCI-published chart, versioned in lockstep with the server, covering dual-stack Services, TLS-passthrough Ingress and Gateway API routes, an opt-in ServiceMonitor and network policies; it derives the RBAC for managed certificates kept in Secrets from the server's own configuration; and the server's settings pass straight through to its config file, so the whole configuration reference is reachable. See deploying with Helm
  • Graceful shutdown: SIGTERM/SIGINT drains in-flight requests with a configurable window (25s default) before exiting; background jobs are stopped and waited for, then deferred storage and signer cleanup always runs
  • Configuration reload: SIGHUP (or systemctl reload) re-reads the TLS keypair and the admin allow list without dropping connections, so renewing the CA's server certificate or decommissioning a compile server needs no restart. See reloading configuration
  • systemd integration: Type=notify readiness (systemctl start returns once the listener is actually accepting), a live status line covering the listener, CA expiry and CRL freshness, watchdog keep-alives, and systemctl reload for TLS certificate renewal and admin allow-list changes; ships a hardened unit, rendered per channel from one template — installed by the packages, and in every release tarball ready to use. See running under systemd
  • FIPS-compatible: the core CA uses the standard library only (crypto/x509, net/http); no CGO by default; FIPS build available via GOEXPERIMENT=boringcrypto (the optional Kubernetes export and a managed certificate stored in a Secret add the client-go dependency)
  • openvox-ca-ctl: operator CLI modelled on puppetserver ca; the CLI command mapping lists where it differs. See the operator CLI reference

Installation

This README and docs/ describe the main branch, which can be ahead of the newest release. The tarball download and checksum steps below work for every published release, v1.0.0-alpha1 included. For what a release's features do, read the docs at its tag: the files under https://github.com/voxpupuli/openvox-ca/tree/v<version>/.

Container images (recommended)

Prebuilt, multi-arch images are published to the GitHub Container Registry for every release:

$ docker pull ghcr.io/voxpupuli/openvox-ca:latest

latest first appears with the 1.0.0 release; until then, pull edge. edge moves with every merge to main, and before 1.0.0 a merge can break things, so pin the digest you tested rather than the tag, and read what changed on main before you move it (each image's org.opencontainers.image.revision label names the commit it was built from):

$ docker image inspect --format '{{index .RepoDigests 0}}' ghcr.io/voxpupuli/openvox-ca:edge
ghcr.io/voxpupuli/openvox-ca@sha256:…

Read the digest straight after the pull, since the local tag moves with every later one, and verify it before you pin it. edge is signed from main, so its identity ends @refs/heads/main and the release pattern under verifying what you downloaded rejects it; container images has the command for edge.

Every tag comes in two variants: distroless (the unsuffixed tags, also published with a -distroless suffix) and Alpine (-alpine). See container images for how they differ, the available tags and a docker run example, or use the compose.yml at the repository root for a Docker/Podman Compose deployment.

Release tarballs

Each release publishes four tarballs — linux_amd64 and linux_arm64, each in a standard and a FIPS (_fips) build — plus a .deb and an .rpm for each of the two non-FIPS architectures, an SBOM pair per tarball, checksums.txt, and a signed provenance bundle (see verifying what you downloaded). Every archive contains both binaries (openvox-ca, openvox-ca-ctl) and the systemd unit openvox-ca.service. Asset names carry the release version, so set VERSION to the release you want and download by tag. The first command below asks the GitHub API for the newest release, pre-releases included, through the GitHub CLI, which must be signed in (gh auth login, or GH_TOKEN set) even though the repository is public; the second says so if that produced no version. Without the CLI, take a version from the releases page: its latest link skips pre-releases.

$ VERSION=$(gh api repos/voxpupuli/openvox-ca/releases --jq '([.[] | select(.draft | not)][0].tag_name // empty) | ltrimstr("v")')
$ : "${VERSION:?no release found, or gh failed (see above); set VERSION by hand}"
$ curl -fLO https://github.com/voxpupuli/openvox-ca/releases/download/v${VERSION}/openvox-ca_${VERSION}_linux_amd64.tar.gz
$ curl -fLO https://github.com/voxpupuli/openvox-ca/releases/download/v${VERSION}/checksums.txt
$ sha256sum --ignore-missing -c checksums.txt
$ tar xzf openvox-ca_${VERSION}_linux_amd64.tar.gz

A package downloads and checks the same way, with one difference in its name for a pre-release. The version inside the package has a tilde (1.0.0~beta1), which sorts it before 1.0.0 in both apt and dnf. GitHub does not keep a ~ in an asset name, so the published filename has a dot there instead, and that is the name checksums.txt lists: openvox-ca_1.0.0.beta1-1_amd64.deb, openvox-ca-1.0.0.beta1-1.x86_64.rpm. A final release has no tilde to replace: openvox-ca_1.0.0-1_amd64.deb.

v1.0.0-alpha1 is the exception: its checksums.txt lists the packages under their tilde names, so sha256sum -c cannot find them. For that release, compare a package's hash with its line by hand. Later releases list the names they publish. Either way, check that sha256sum printed OK for the file you downloaded, because --ignore-missing skips a listed file it cannot find without saying so.

See running under systemd for the rest of a VM install.

Packages (.deb, .rpm)

A .deb and an .rpm per architecture install the binaries, a unit rendered for /usr/bin, a working /etc/openvox-ca/config.yaml, and a Type=oneshot that provisions the CA the first time the service starts, with no configuration to write first. Each follows its distribution's convention. On Debian and Ubuntu, apt install enables and starts it, so the CA is serving when the install returns; the package may first ask which name to issue this host's certificate under (debconf), and it does not start where policy-rc.d forbids it, or on a host that already holds a CA or has OpenVox Server installed. On EL, dnf install installs and nothing else; systemctl enable --now openvox-ca creates the CA. They create the puppet service account and use the OpenVox/Puppet layout (/etc/puppetlabs/puppet/ssl), so they coexist with an openvox-agent or OpenVox Server on the same host; that is also why they listen on 8141 rather than 8140, which Server binds itself.

A host already enrolled against another CA has one choice to make first. If this machine holds an agent certificate signed elsewhere, provisioning stops rather than serve it from a CA that did not issue it, and asks which CA this service should serve — see installing from a package. Sharing the account and the layout is not the same as having no decision to make.

Each release publishes them as assets beside the tarballs, and they can also be built from a checkout. Installing from a package has the commands, and what provisioning does, what an uninstall deliberately leaves behind, and the cost of sharing the puppet account.

Verifying what you downloaded

checksums.txt establishes that a download arrived intact. Provenance establishes where it came from: every tarball, package, container image and chart published from a release tag carries a SLSA v1.0 build provenance attestation, signed through Sigstore with a short-lived certificate — there is no long-lived signing key to trust or rotate.

With the GitHub CLI, verification is one command per artefact:

$ gh attestation verify openvox-ca_${VERSION}_linux_amd64.tar.gz \
    --repo voxpupuli/openvox-ca \
    --signer-workflow voxpupuli/openvox-ca/.github/workflows/release.yml \
    --source-ref refs/tags/v${VERSION}

All three flags matter, and they do different jobs. --repo on its own accepts any attestation this repository produced — and the container image workflow signs pull-request builds too, so repository-scoped verification is weaker than it looks. --signer-workflow pins which workflow signed; it has no ref component, so it does not on its own separate a release from a pull request. --source-ref is what pins the ref. The cosign commands below get all three properties from one certificate identity — --certificate-identity where the exact URL is known, --certificate-identity-regexp where the version is not fixed in advance — because the identity URL carries repository, workflow path and ref together.

The provenance bundle is also published as a release asset, so verification needs nothing but cosign and curl — no GitHub API call, and it works air-gapped. It is a Sigstore-format bundle, so it wants cosign v3 or newer (on cosign v2.4 and later, add --new-bundle-format; earlier v2 releases cannot read it):

$ curl -fLO https://github.com/voxpupuli/openvox-ca/releases/download/v${VERSION}/provenance.sigstore.json
$ cosign verify-blob-attestation openvox-ca_${VERSION}_linux_amd64.tar.gz \
    --bundle provenance.sigstore.json \
    --type slsaprovenance1 \
    --certificate-identity https://github.com/voxpupuli/openvox-ca/.github/workflows/release.yml@refs/tags/v${VERSION} \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com

The bundle covers every file listed in checksums.txt — each tarball, each SBOM and each .deb/.rpm — so the same bundle verifies any of them. Neither the .deb nor the .rpm carries a signature that apt, dpkg or dnf checks when you install it from a downloaded file — apt verifies a repository index, and a release asset is not a repository. So for packages the bundle is the only provenance check available: verify it before installing either format.

Container images and the Helm chart are both attested and signed. Because images are also built for pull requests, whose certificates name refs/pull/N/merge, pin the identity to the release shape rather than accepting any identity from this repository:

$ cosign verify ghcr.io/voxpupuli/openvox-ca:${VERSION} \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com \
    --certificate-identity-regexp '^https://github\.com/voxpupuli/openvox-ca/\.github/workflows/container-images\.yml@refs/tags/v'

SBOMs. Each tarball ships an SBOM in both SPDX-JSON (.spdx.json, ISO/IEC 5962) and CycloneDX-JSON (.cdx.json, ECMA-424), generated from the built binaries rather than from go.mod, so they record what actually linked.

Container images carry the equivalent pair as registry attestations, catalogued from the image so the base-layer packages are included too. These are attached to each per-architecture image rather than to the multi-arch index, because that is where they differ — so resolve a child digest first; a tag resolves to the index, which carries provenance only:

$ digest="$(docker buildx imagetools inspect ghcr.io/voxpupuli/openvox-ca:${VERSION} \
    --format '{{range .Manifest.Manifests}}{{if eq .Platform.Architecture "amd64"}}{{.Digest}}{{end}}{{end}}')"
$ gh attestation verify oci://ghcr.io/voxpupuli/openvox-ca@${digest} \
    --repo voxpupuli/openvox-ca \
    --signer-workflow voxpupuli/openvox-ca/.github/workflows/container-images.yml \
    --source-ref refs/tags/v${VERSION} \
    --predicate-type https://spdx.dev/Document/v2.3

Select the child by architecture rather than by position — the order the index lists them in is not meaningful, so index … 0 would verify whichever image happened to sort first. Substitute arm64 for the other architecture, and --predicate-type https://cyclonedx.org/bom for the CycloneDX document.

The SPDX predicate type carries the document's own SPDX version, so it moves if the generator's output version does: check the spdxVersion field of the published .spdx.json if v2.3 stops matching. CycloneDX's is unversioned. The Helm chart carries provenance and a signature but no SBOM: it declares no dependencies, so there would be nothing to catalogue.

Kubernetes (Helm)

A chart is published as an OCI artefact for every release, versioned in lockstep with the server:

$ helm install openvox-ca \
    oci://ghcr.io/voxpupuli/openvox-ca-charts/openvox-ca \
    --namespace puppet --create-namespace \
    --set tls.existingSecret=openvox-ca-server-tls

See deploying with Helm for the guide and the chart README for the values reference. The chart is signed and attested like the images:

$ cosign verify ghcr.io/voxpupuli/openvox-ca-charts/openvox-ca:${VERSION} \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com \
    --certificate-identity-regexp '^https://github\.com/voxpupuli/openvox-ca/\.github/workflows/helm-chart\.yml@refs/tags/v'

Building from source

Requires the Go release named by the go directive in go.mod, or newer. The build runs on Mage, but installing it is optional: go run mage.go <target> runs any target with the version go.mod pins. An older Go from 1.21 onwards fetches that toolchain itself under its default GOTOOLCHAIN=auto; one before 1.21, or a distribution package that sets GOTOOLCHAIN=local, fails to build instead.

git clone https://github.com/voxpupuli/openvox-ca.git
cd openvox-ca
mage build:all      # → bin/openvox-ca and bin/openvox-ca-ctl
# or, without mage installed:
go run mage.go build:all

Full build instructions (including the FIPS build) are in CONTRIBUTING.md.

Quick start

These commands keep everything they write, private keys included, under tmp/ in the current directory, which the repository's .gitignore already excludes, so they run as an ordinary user. On a host with openvox-ca's package installed they do not: the server reads /etc/openvox-ca/config.yaml by default, which only root and the puppet group can read. A real deployment's CA directory is usually OpenVox Server's, /etc/puppetlabs/puppet/ssl/ca, which an ordinary user cannot write: see running under systemd and the migration guide.

Local demo: plain HTTP on loopback, auto-bootstrap CA

./bin/openvox-ca --cadir "$PWD/tmp/ca-demo" --host 127.0.0.1 --hostname puppet.example.com

On first run the server bootstraps a new CA under --cadir and begins serving plain HTTP on port 8140. The server refuses plain HTTP on a non-loopback address unless --no-tls-required is set — only do that behind a trusted TLS-terminating proxy or in test environments. For anything reachable from the network, serve HTTPS as below.

Without TLS the admin API is unauthenticated, even on loopback: any local process can sign, revoke and clean certificates, and the server logs a warning saying so at every start.

HTTPS with mTLS

./bin/openvox-ca \
  --cadir "$PWD/tmp/ca-demo" \
  --tls-cert "$PWD/tmp/ca-demo/signed/puppet.example.com.pem" \
  --tls-key  "$PWD/tmp/ca-demo/private/puppet.example.com_key.pem" \
  --puppet-server puppet.example.com

--tls-cert needs a serving certificate the CA has issued to itself. The CA's own ca_crt.pem is not one — its keyUsage is certSign, cRLSign and it carries no subjectAltName, so a server presenting it completes the handshake and is then rejected by every agent, and the server says so at startup. Issue one by starting the CA on loopback with TLS off and asking it for a certificate:

# Stop any CA already listening on 8140 first, or this one cannot bind.
./bin/openvox-ca --tls-cert= --tls-key= --insecure-allow-plain-http-generate \
  --cadir "$PWD/tmp/ca-demo" --host 127.0.0.1 --hostname puppet.example.com &
PCA_PID=$!

# Wait for it to serve: a cold cadir generates an RSA-4096 key first. Stop
# waiting if it exits instead, or is still not serving after five minutes.
wait_for_ca() {
  for _ in $(seq 1 300); do
    curl -sf http://127.0.0.1:8140/puppet-ca/v1/certificate/ca >/dev/null && return 0
    kill -0 "$PCA_PID" 2>/dev/null || { echo "openvox-ca has exited; see its output above" >&2; return 1; }
    sleep 1
  done
  echo "openvox-ca is still not serving after 300 seconds" >&2
  return 1
}

wait_for_ca && ./bin/openvox-ca-ctl generate \
  --server-url http://127.0.0.1:8140 \
  --certname   puppet.example.com \
  --dns        puppet.example.com \
  --out-dir    "$PWD/tmp/ca-demo/private"

kill $PCA_PID; wait $PCA_PID 2>/dev/null

While that server is up its whole admin API is unauthenticated — the authorisation middleware is only installed when TLS is configured — tls_cert and tls_key, their environment equivalents, or serving_cert — and that includes POST /generate/<subject>, which hands back a signed certificate and its private key. --host 127.0.0.1 is required rather than advisable, and the kill above is part of the procedure, not tidying. --insecure-allow-plain-http-generate is what lets that route answer at all without TLS; keep it to this one start.

--server-url is needed because it defaults to HTTPS while that server speaks plain HTTP, and the empty --tls-cert=/--tls-key= keep this start in plain HTTP even if a tls_cert is configured elsewhere, such as in /etc/openvox-ca/config.yaml. --out-dir points at the directory the CA writes the key to anyway, so no second copy of it is left lying around; omit it and one lands in the current directory. The certificate is printed on stdout, and with the default filesystem backend the CA also writes both halves under cadir, at the two paths --tls-cert/--tls-key point at above, so once the temporary server is stopped you can start again with the TLS flags. Serving certificate has the full procedure, including the other storage backends and running it under systemd.

When TLS is configured — --tls-cert and --tls-key, their environment equivalents, or serving_cert — the server:

  1. Presents those certs to connecting clients
  2. Requests (but does not require) a client certificate from every connection, and does not verify it at the TLS layer
  3. Enforces endpoint-level authorization, which is where a presented certificate is verified against this CA and checked against the CRL (see Authorization tiers)

The complete flag, environment-variable, and config-file reference is in configuring the server.

Submitting, listing and signing a request

An agent submits its own certificate request on its first run, or with puppet ssl bootstrap. Without one to hand, OpenSSL and curl can stand in for it. Against the local demo above:

openssl req -new -newkey rsa:2048 -nodes -subj /CN=agent.example.com \
  -keyout tmp/agent.example.com_key.pem -out tmp/agent.example.com_csr.pem
curl -fsS -X PUT -H 'Content-Type: text/plain' --data-binary @tmp/agent.example.com_csr.pem \
  http://127.0.0.1:8140/puppet-ca/v1/certificate_request/agent.example.com

./bin/openvox-ca-ctl list --server-url http://127.0.0.1:8140
./bin/openvox-ca-ctl sign --server-url http://127.0.0.1:8140 --certname agent.example.com
./bin/openvox-ca-ctl list --server-url http://127.0.0.1:8140 --all

Every openvox-ca-ctl command here needs --server-url, because it defaults to https://localhost:8140 and the demo speaks plain HTTP. list prints each name, quoted, beside its state: "agent.example.com" requested before the sign and "agent.example.com" signed after it.

Against the HTTPS server, openvox-ca-ctl has to verify the server against the CA certificate and present an admin certificate. The serving certificate issued above is one, because that server names it in --puppet-server:

./bin/openvox-ca-ctl list \
  --server-url  https://puppet.example.com:8140 \
  --ca-cert     "$PWD/tmp/ca-demo/ca_crt.pem" \
  --client-cert "$PWD/tmp/ca-demo/signed/puppet.example.com.pem" \
  --client-key  "$PWD/tmp/ca-demo/private/puppet.example.com_key.pem"

sign takes the same four flags. Submitting a request needs no client certificate: add --cacert "$PWD/tmp/ca-demo/ca_crt.pem" to the curl command and change its URL. To stop repeating the flags, export OPENVOX_CA_CTL_SERVER_URL, OPENVOX_CA_CTL_CA_CERT, OPENVOX_CA_CTL_CLIENT_CERT and OPENVOX_CA_CTL_CLIENT_KEY; a deployment sets them in /etc/openvox-ca/ctl.yaml (see configuration). The operator CLI reference covers the other subcommands.

Documentation

Guide What it covers
Configuring the server Every flag, environment variable, config-file key; the serving certificate, supplied or issued by the CA itself; autosigning; directory layout; the memory budget; log output; graceful shutdown; reloading configuration; trusting client certificates from another CA
HTTP API reference All endpoints, authorization tiers, admin credential resolution, and where openvox-ca differs from OpenVox Server
Operator CLI (openvox-ca-ctl) The openvox-ca-ctl command reference, and the offline openvox-ca subcommands (csr, import-ca-cert, generate, rebuild-inventory-hmac) that run against the server's own configuration
Storage backends filesystem, SQLite, PostgreSQL, MySQL, etcd, Redis/Valkey; migrating between them
CA key security Process isolation and the signer handshake, key encryption at rest, key-custody options, PKCS#11 plans, destructive-op monitoring, and where the inventory-integrity key lives
OpenBao Transit-engine CA key Delegating CA key custody to OpenBao
Deploying with Helm The openvox-ca chart: installation, TLS passthrough, ingress and Gateway API, monitoring
Kubernetes export Publishing the CA cert/CRL into Secrets and ConfigMaps
File export Keeping local copies of the CA cert/CRL current on disk
Metrics & monitoring The Prometheus exporter and the alerting mixin
Running under systemd The Type=notify unit, status text, systemctl reload, watchdog, hardening, and installing from a package with its first-boot provisioning
Container images Pulling and running the published images
Migration guide Replacing an OpenVox/Puppet Server built-in CA

Authorisation behaviour worth knowing

Two rules catch operators out, neither of which changes a stock deployment.

GET /certificate_status/{subject} is admin-only. That matches OpenVox/Puppet Server's shipped auth.conf, so only a configuration that had been relaxed to let ordinary agent certificates read statuses loses that access. It can be granted back two ways, both of which confer the whole admin tier — signing and revocation included — plus an escape hatch that makes the route public rather than authenticated. Denials are logged, with the string to grep for, in authorisation parity.

POST /certificate_renewal accepts only certificates this CA issued and has not revoked. The issuer requirement is a defence in depth that no shipped configuration reaches: the authorisation middleware has already refused a certificate from another issuer with 403 access denied (TLS requests but does not verify a client certificate — see HTTPS with mTLS), including one issued by a client_ca entry, because renewal stays scoped to this CA's own namespace. The revocation requirement is reached: on a replica that has not yet reloaded the CRL, the middleware lets a revoked certificate through and renewal refuses it, with the same 403. There is no opt-out: an agent holding a certificate from a replaced CA must re-enrol. See renewal eligibility.

Getting help

openvox-ca is a Vox Pupuli project, and the community's channels are listed on the Vox Pupuli connect page:

  • Slack: questions about openvox-ca go in #openvox-ca on the Vox Pupuli Slack. Early adopters are especially welcome there. Broader OpenVox questions go in #openvox.
  • IRC: #voxpupuli on Libera.Chat. Some Slack channels are bridged to IRC; the connect page lists which.
  • Mailing list: voxpupuli on groups.io, for announcements and project decisions.
  • Bugs and feature requests: GitHub issues.
  • Security vulnerabilities: report these privately, following the Vox Pupuli security policy, not in a public channel or issue.

Help is offered on a best-effort basis, with no guarantees. The Vox Pupuli Code of Conduct applies in all of these spaces.

Contributing

Contributions are welcome. See CONTRIBUTING.md for how to build, test, and submit changes, AGENTS.md for the repository conventions, and the development documentation for internal design notes and the test suites.

License

See LICENSE.

About

A Drop-In Replacement for the OpenVox CA, Built to Scale

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages