Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Shopify Engineering 6 min read Incident mediumAdept

That Old Certificate Expired and Started an Outage. This is What Happened Next

When Let's Encrypt's old root certificate expired on September 30, 2021, Shopify's internal service-to-service HTTPS calls began failing because the Ruby httpclient gem, pulled in transitively by rack-oauth2, openid_connect and google-api-client, ships its own six-year-old cacert.pem that trusted neither the expired root nor the new one. Failures surfaced about 15 minutes late because TLS validation only happens at connection setup and HTTP keep-alive connections persisted until Kubernetes pods were recycled by a deploy. Locking monolith deployments early confined the damage to canaries, avoiding a global outage, though recommendations, marketing campaigns and order-confirmation risk checks were degraded. The fix was a fork overriding cacert.pem with automated root-bundle updates, with a longer-term move toward system trust stores under consideration.

Related posts

  • 4 real? Tracking exploitation and patching of eMudhra’s weak keys

    Cloudflare mediumAdept

    eMudhra's eight intermediate CA keys were trivially weak (private values like 4, 56 and 66), so anyone could recover the signing keys from the public certificates and forge certificates for any domain that unpatched clients not enforcing Certificate Transparency would accept. Cloudflare patched Pingora within hours, used AI-assisted code analysis to find every other system trusting the keys, and added handshake logging. That logging recorded about 22,000 weak-key handshakes, including roughly 160 forged certificates naming unrelated domains, one minted within an hour of the disclosure, but no evidence of interception. About 50 million probes from challenge pages show modern browsers are mostly patched, while bots, old browsers and Android WebView (30–40% still accepting) lag, with patching flat after the first weekend. The fix is to patch now, and longer term trust stores need fast update mechanisms such as upki for revocation and CT keys.

  • Our response to the TanStack npm supply chain attack

    OpenAI easyNovice

    Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.

  • Our Response To The eMudhra Key Disclosure Incident

    The Go Blog easyNovice

    Weak private keys on eight eMudhra-issued intermediate certificates made them recoverable in microseconds, letting attackers mint trusted TLS certificates for any domain. Because Go's own verifier on Linux has no revocation mechanism, the Go Security team shipped Go 1.27.3 and 1.26.10, its first URGENT-track security release, within about 7.5 hours of notification. The patch blocks certificates chaining to the compromised intermediates. Release tooling problems stretched the release itself to about 4.25 hours, so the team has streamlined the process, will pre-announce URGENT releases, and plans Linux revocation support, possibly via upki. Users should rebuild TLS-using binaries with the patched versions and can check exposure with go version -m or govulncheck.

  • Using short-lived certificates to protect TLS secrets

    Meta Engineering mediumAdept

    Meta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support). Certificates are issued months ahead from third-party CAs and moved from a locked-down secret store to an edge-only store just 10 days before expiry, which keeps CA issuance off the critical path and provides ready backup certs for emergency rotation. A ConfigBuilder groups certs into expiry-dated bundles, validates them, and rolls them out in stages: canary, then about 100 machines, then the full fleet after a day of baking. The OffloadService signs with both old and new keys during rotation, and caching plus staggered fetches keep daily rotation from overloading the secret store.

  • How We Found and Fixed a Filesystem Corruption Bug

    Heroku Engineering mediumAdept

    A failed Cedar-14 stack image rollback caused Heroku's container tools to truncate and overwrite a disk image while it was still mounted read-only as dynos' root filesystem. A container-tools upgrade had changed checksum filenames and digests, so the safety check that skips already-present images missed the existing image. Because the page cache still held old pages while the backing file was truncated or half-written, newly loaded binaries mixed cached and missing data and segfaulted for about five hours. A loop-mount reproduction shows the effect, and the fix was migrating dynos to fresh hosts and marking installed images read-only on the host.

The quest for software engineering knowledge.

Look:
Layout: