Verify Post-Quantum TLS on Kubernetes
The NSA asked for an immediate post-quantum transition. Check if your Kubernetes API server and ingress negotiate the hybrid X25519MLKEM768 key exchange.
💡 Quick Answer: Run
openssl s_client -connect <host>:<port> -groups X25519MLKEM768against the API server and each ingress endpoint. If the handshake completes, the endpoint supports hybrid post-quantum key exchange. Kubernetes 1.33 and later is built with Go 1.24, which enables this group by default, so many clusters already have it on the control plane.
The Problem
On 2 December 2026 the NSA advised the operators of US National Security Systems to “immediately accelerate” the transition to post-quantum cryptography. The same day Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a joint statement that asks organizations “to accelerate the migration as soon as possible”.
Some context:
- The NSA said frontier AI companies disclosed recent discoveries that affect some cryptography in use today. The details are not public.
- On 30 November Anthropic published four papers. An internal Claude model found a theoretical attack on the lattice math behind ML-KEM and ML-DSA. Anthropic and independent reviewers say it has no practical effect on today’s systems (The Next Web).
- ONCD, NSA and CISA say the advances “do not present an immediate and widespread threat”.
- The risk is “harvest now, decrypt later”: traffic that is recorded today can be decrypted when a large quantum computer exists.
Before you plan a migration, you need to know what your cluster does today. A Kubernetes cluster has TLS on the API server, on the ingress, and between components. This recipe checks the first two from your workstation.
The Solution
Step 1: Check your OpenSSL version
openssl version
# OpenSSL 3.5.0 or later is necessary for X25519MLKEM768
openssl list -kem-algorithms | grep -i mlkemStep 2: Test the API server
APISERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}' | sed 's#https://##')
openssl s_client -connect "$APISERVER" -groups X25519MLKEM768 </dev/null 2>/dev/null \
| grep -E "Negotiated TLS1.3 group|Server Temp Key|Protocol"A completed handshake that shows X25519MLKEM768 means the API server supports the hybrid group. If the command prints nothing, the server refused the group.
Step 3: Check the versions behind the result
kubectl version -o json | jq -r '.serverVersion | "\(.gitVersion) built with \(.goVersion)"'
kubectl get nodes -o custom-columns=NAME:.metadata.name,KUBELET:.status.nodeInfo.kubeletVersionGo 1.24 enables X25519MLKEM768 by default in crypto/tls. A control plane that is built with Go 1.24 or later offers it without configuration.
Step 4: Test each ingress endpoint
kubectl get ingress -A -o jsonpath='{range .items[*]}{range .spec.tls[*]}{range .hosts[*]}{@}{"\n"}{end}{end}{end}' \
| sort -u > ingress-hosts.txt
while read -r host; do
if openssl s_client -connect "$host:443" -servername "$host" -groups X25519MLKEM768 </dev/null >/dev/null 2>&1; then
echo "OK $host"
else
echo "FAIL $host"
fi
done < ingress-hosts.txtFor Gateway API, read the hostnames from the Gateway listeners:
kubectl get gateway -A -o jsonpath='{range .items[*]}{range .spec.listeners[*]}{.hostname}{"\n"}{end}{end}' | sort -uStep 5: Record the result
| Endpoint | Result | Action |
|---|---|---|
| API server | OK | None |
| API server | FAIL | Check the Kubernetes and Go versions; plan the upgrade |
| Ingress host | OK | None |
| Ingress host | FAIL | Check the ingress controller version and its TLS library |
| Cloud load balancer in front of the ingress | FAIL | Change the TLS policy of the load balancer |
Common Issues
The command fails on every host. Your local OpenSSL is older than 3.5 and does not know the group name. Run openssl version.
The API server passes, but a client does not use the group. Both sides must support it. A kubectl binary that is built with an older Go version uses a classical key exchange. Keep the client and the server versions aligned.
The ingress host passes from outside, but TLS ends at a cloud load balancer. In this case you tested the load balancer, not the ingress controller. Test the controller service directly from inside the cluster.
A managed control plane fails. The provider controls the API server build. Ask the provider for its post-quantum TLS support and dates.
Best Practices
- Keep hybrid key exchange.
X25519MLKEM768uses a classical and a post-quantum algorithm together, and an attacker must break both. - Run the ingress check in CI on a schedule, so that a controller downgrade is visible.
- Start with the endpoints that carry long-lived secrets over public networks.
- Add etcd, service mesh mTLS and webhooks to the inventory. This recipe does not test them.
Key Takeaways
- The NSA advisory of 2 December 2026 is addressed to national security systems, but the vendors behind your stack support the same direction.
- There is no immediate, widespread threat. The risk is recorded traffic that is decrypted later.
- Kubernetes 1.33 and later is built with Go 1.24, so the control plane can already negotiate hybrid post-quantum key exchange.
- One
openssl s_clientcommand per endpoint tells you where you are today. - For the full migration plan, see Post-Quantum Cryptography on Kubernetes.
Book by Grzegorz Stencel & Luca Berton
Kubernetes Recipes
- Paperback · eBook
- Apress
- 750 pages
100+ production-ready patterns with detailed explanations, best practices, and copy-paste YAML. Everything in one place.
Learn by Doing
CopyPasteLearn — Hands-on Cloud & DevOps CoursesMaster Kubernetes, Ansible, Terraform, and MLOps with interactive, copy-paste-run lessons. Start free.
Browse Courses →🎓 Deepen Your Skills — Hands-on Courses
Courses by CopyPasteLearn.com — Learn IT by Doing
Book by Grzegorz Stencel & Luca Berton
Kubernetes Recipes
- Paperback · eBook
- Apress
- 750 pages
This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.
