tech, developers, and the code underneath

issue 252· essay·

The expiry calendar

Certificates, tokens, domains, and credentials all fail on a date somebody once knew. Here is how to stop being surprised.

A meaningful share of production outages are not bugs. They are things that had an expiry date, and the date arrived.

The pattern is always the same: something was provisioned by a person who understood it, the renewal was manual or the automation was never verified, and that person is no longer the one on call. The expiry lands on a holiday, because that is when the year has the most days with nobody watching.

This is the most preventable category of outage in existence, and it recurs everywhere.

the full inventory#

Most teams think of TLS certificates and stop. The list is longer:

  • TLS certificates. Leaf certs, and also intermediate and root certificates in your trust stores. A pinned intermediate expiring has taken down large services.
  • Client certificates for mTLS between services. Less visible than public-facing certs, less likely to be automated.
  • Code signing certificates. Expiry can break installs and updates, not just new builds.
  • Domain registrations. Including the ones nobody remembers registering.
  • API keys and OAuth client secrets with rotation policies.
  • Cloud IAM credentials, service account keys, personal access tokens.
  • SSH host keys and CA-signed user certificates where you use them.
  • Database and message broker credentials issued by a secrets manager with a lease.
  • Signing keys for JWTs, and the JWKS cache TTL that determines how fast a rotation propagates.
  • GPG keys used to sign packages or releases.
  • Third-party contracts and quotas. Not technical, and they expire anyway.
  • Deprecated API versions at providers you depend on. The provider published a sunset date; it is an expiry on your system too.

the two-line fix#

Everything above has a date. Put every date in one place.

| what                    | expires     | renewal      | owner | verified |
|-------------------------|-------------|--------------|-------|----------|
| *.example.com leaf      | 2027-01-14  | automated    | infra | 2026-11  |
| mTLS internal CA        | 2028-06-02  | manual       | infra | 2026-08  |
| example.com domain      | 2027-03-01  | auto-renew   | ops   | 2026-11  |
| Stripe API version      | 2027-04-30  | code change  | pay   | —        |

The verified column is the one that matters. "Automated" is a claim. Verified means somebody watched a renewal complete, or forced one, since that date.

monitor the artefact, not the automation#

The critical inversion: do not alert on "the renewal job failed." Alert on "the certificate now expires in under 21 days."

The first only fires if the job runs. The second fires if the job was deleted, disabled, silently misconfigured, or never existed. It checks reality rather than intent.

bash
# days until expiry for a live endpoint
end=$(echo | openssl s_client -servername "$H" -connect "$H:443" 2>/dev/null       | openssl x509 -noout -enddate | cut -d= -f2)
echo $(( ( $(date -d "$end" +%s) - $(date +%s) ) / 86400 ))

Two thresholds: a ticket at 30 days, a page at 7. The 30-day ticket is what actually prevents outages; the page is there because sometimes the ticket gets ignored.

the pre-holiday sweep#

Once a year, in the week before the quiet period, run one query: everything expiring in the next 60 days, renew it now.

Not because those things would otherwise fail — most would renew fine. Because the cost of checking is twenty minutes and the cost of being wrong is somebody's holiday.

The best time to renew something is when you are not under pressure, and the second best time is right now, before you are.

— Dom, November 25, 2026

get README in your inbox

One dispatch, no noise. Tech and developer news, plus the occasional long piece on the craft.

subscribe →