Push, not pull: delivering certificates to CDNs, load balancers and Kubernetes
Pull agents cover anything you can install a process on. But a meaningful share of the certificate estate lives in services where no agent can exist: CDN edges, cloud load balancers, Kubernetes ingresses, WAF appliances. For those, CertCLM pushes into the provider's own management API — and the details per provider matter more than you'd expect.
The subtlety: update-in-place vs create-and-rebind
Naive integration uploads a new certificate object every renewal. On most cloud LBs that breaks the binding: the listener references certificate ID abc, a new upload creates ID xyz, and the LB keeps serving the old cert — a renewal that "succeeded" while changing nothing.
CertCLM's push targets are built around the providers' update semantics:
- Yandex Certificate Manager — with
certificate_idconfigured, push performsPATCH /certificates/{id}updating cert+chain+key in place; ALB and CDN bindings survive untouched - Selectel —
POST /cert/{cert_id}posts a new version of the same certificate; the Certificates Manager syncs it to every consuming load balancer automatically - Qrator — the JSON-RPC chain is three real steps:
certrequest_upload→ pollcertrequest_get(uploads are async) →certrequest_install, choosing the certificate-chain entry whose SHA-256 matches our leaf, thensni_link_addto bind hostname/port - OpenStack LB — creates a Barbican certificate container (leaf + key + intermediates as separate secrets) then sets
default_tls_container_refon the Octavia listener. One pusher covers VK Cloud, Cloud.ru Advanced ELB and any Octavia cloud
Agents for servers, pushing for services — and HAProxy in between
Some targets blur the line. HAProxy is a server you can put an agent on, but dropping new PEM files on disk doesn't change the running process — a restart replays the old behaviour or drops connections. CertCLM's HAProxy preset does the right thing: writes the combined PEM, then uses the stats socket set ssl cert command to update the in-memory certificate live, falling back to a reload only when no socket exists. The 47-day world can't afford a restart-per-renewal.
Retries and evidence
Every push attempt is recorded per-target (success, HTTP status, error) with 2s/4s backoff across three attempts — CDN APIs have blips; certificates shouldn't die for them. Failures raise push_failed notifications in the channel's configured language.
The last mile: prove the edge updated
Pushing to a CDN API returns success when the provider accepted the cert — not when the edge serves it. CertCLM closes the loop with edge verification: a real TLS handshake to the public endpoint compares the presented leaf's fingerprint to the managed cert. A stale edge raises deploy_stale — surfacing the class of bug where the dashboard is green and users still see the old certificate.
Final article: operating CertCLM in production — security model, audit, backup, and what we'd watch.