Valkey 9.2.1 (25 November 2026) reverts fail-fast TLS checks: an expired retired root no longer stops startup, nor does an expired server certificate. What to audit.
The release in one paragraph
Valkey 9.2.1 is dated Wednesday 25 November 2026 in its release notes, and the GitHub release was published on 26 November (UTC). The project rates its upgrade urgency as moderate. The first item in the notes restores the TLS loading behaviour of 9.1: in 9.2.0, valkey-server refused to start, or to apply a TLS configuration change, when any certificate it loaded was outside its validity period. That included an expired old root left in a tls-ca-cert-file bundle after a CA rotation, which OpenSSL would never build a chain through anyway. The fix is PR 5550, merged on 24 November, which reverts two earlier changes, PR 2999 and PR 3522, from the 9.2 branch.
The fix is welcome, but it has three consequences that are easy to miss. 9.2.1 also stops checking the server's own certificate at load time. One capability that 9.2.0 added by accident goes away again. And the strict checks are still planned for Valkey 10.0. This guide explains each, with a script to audit bundles before the next restart.
What 9.2.0 did
PR 2999 added fail-fast checks in createSSLContext(): the server certificate, the client certificate, the alternate server certificate and every certificate in the CA store were checked for validity when TLS was configured. If any one was expired or not yet valid, the whole TLS configuration was aborted. PR 3522 extended this to abort when tls-ca-cert-dir held no certificates.
The Valkey technical steering committee had judged these checks a breaking change. PR 3572 reverted them from 9.1 with the plan to ship them in the next major release. The PR 5550 description explains what went wrong. The next release turned out to be 9.2 rather than 10.0, the revert was never carried over, and 9.2.0 shipped the checks with no release note.
The PR includes a behaviour table, measured by its author with the official 9.1.3 and 9.2.0 images and the patched branch:
| Configuration | 9.2.0 | 9.2.1 (the revert) and 9.1.3 |
|---|---|---|
Bundle with an expired extra CA in tls-ca-cert-file | aborts: "One or more loaded CA certificates are invalid" | starts |
Expired extra CA in tls-ca-cert-dir | aborts | starts |
Empty tls-ca-cert-dir | aborts: "No CA certificates loaded from directory" | starts |
Expired tls-cert-file | aborts: "Server TLS certificate is invalid" | starts |
Expired tls-alt-cert-file | aborts | starts (the option does not exist in 9.1) |
The same applied at runtime. On 9.2.0, CONFIG SET tls-ca-cert-file with such a bundle failed and kept the old configuration.
Consequence 1: an expired server certificate starts again
The 9.2.0 checks were blunt, but one of them was useful. A server whose own certificate has expired cannot complete a handshake with any client that verifies it. 9.2.0 refused to start in that state, which made the failure loud at deploy time. 9.2.1 starts, logs that it is ready to accept TLS connections, and every verifying client then fails its handshake.
So the monitoring that 9.2.0 did implicitly is yours again. Check the expiry of tls-cert-file, tls-client-cert-file and, on 9.2, tls-alt-cert-file before every restart and continuously, and alert well before the date.
Consequence 2: plain file names in tls-ca-cert-dir stop working
PR 3522 depended on a helper from PR 2999 that eagerly loaded every certificate in tls-ca-cert-dir into the X509 store. A side effect was that a directory of plainly named .crt files worked for peer verification on 9.2.0. Without the eager load, 9.2.1 uses OpenSSL's documented directory lookup again. Certificates are found by subject-hash file names, the links that openssl rehash or c_rehash create.
The PR author verified this with a client-certificate handshake against a server configured with tls-ca-cert-dir only. Hashed links worked on every version. Plain file names worked on 9.2.0 only. On 9.1.3 and on the patched branch the server started and then closed every connection. The PR notes the failure is silent: the directory is registered lazily, so the server starts normally and then fails each handshake with "certificate verify failed".
This only affects a narrow configuration: a CA directory without hash links, set up or changed while running 9.2.0, used to verify peers with tls-auth-clients, tls-replication or tls-cluster. If that is you, run openssl rehash on the directory before upgrading to 9.2.1.
Consequence 3: the checks are coming back in 10.0
The unstable branch keeps the fail-fast checks for Valkey 10.0. Treat 9.2.1 as a grace period, not as a decision that expired roots in bundles are fine. A bundle that carries a retired root is untidy today and will stop a 10.0 server from starting.
The cleanup is simple: when a CA rotation completes, remove the retired root from every bundle and every CA directory. To find bundles that need it, the companion example ca_bundle_validity_audit lists each certificate in a PEM bundle with its validity window:
python example.py --make-fixtures fixtures
python example.py --ca fixtures/ca-bundle.pem --cert fixtures/server.pemOn its synthetic fixtures it reports two findings and exits 1. The first is that "Bookstore Root 2023" expired 30 days ago, so 9.2.0 would have aborted and 10.0 is expected to; remove it. The second is that the server certificate for cache.bookstore.test expires in 14 days. Run it in the pipeline that ships certificates to the cache hosts, so a bundle with an expired member never reaches them.
Other fixes in 9.2.1 worth reading
The remaining items are crash and correctness fixes. Two matter to operators of replicated deployments:
- Dual-channel replication. A replica now aborts and resyncs when the primary link breaks while it applies its local buffer. Before, it could report a successful sync on a dead link.
- IO threads and output buffer limits. IO threads could resend already-written data to a client being closed. A replica dropped for exceeding
client-output-buffer-limitcould then fail with a protocol error.
The rest fix a crash in PHGET during a forkless save, a double mutex unlock when reducing IO threads at runtime, wrong keys from COMMAND GETKEYS EXEC with more than 256 conditions, and cluster-bus crashes from a forgotten-node extension naming its sender and from stale replica claims forming a cycle.
An upgrade checklist
- If any 9.2.0 node failed to start after a CA rotation and you worked around it, for example by trimming a bundle in a hurry, record what you changed.
- Audit every
tls-ca-cert-filebundle andtls-ca-cert-dirfor certificates outside their validity period, and remove retired roots. - If you use
tls-ca-cert-dirto verify peers, runopenssl rehashon it and confirm the hash links exist. - Add or confirm expiry monitoring for the server, client and alternate certificates.
- Upgrade replicas first. After each one, confirm with
INFO replicationthat it is in sync, then fail over and upgrade the primary. - After the upgrade, test a client handshake with certificate verification, not only
PINGon a non-TLS port.
Limits
The behaviour table is the PR author's measurement, which this guide did not repeat; no Valkey server was run for it. The audit script reads validity dates only. It does not build chains, check revocation, or inspect hash links in a CA directory.