CertCLM logoCertCLM

Push, not pull: delivering certificates to CDNs, load balancers and Kubernetes

· CertCLM team

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:

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.

Tags: CDN · load balancer · Kubernetes TLS secret · certificate deployment · Yandex Cloud · Gcore · HAProxy