Security intermediate ⏱ 10 minutes K8s 1.33+

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.

By Luca Berton • • 📖 5 min read

💡 Quick Answer: Run openssl s_client -connect <host>:<port> -groups X25519MLKEM768 against 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 mlkem

Step 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.kubeletVersion

Go 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.txt

For 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 -u

Step 5: Record the result

EndpointResultAction
API serverOKNone
API serverFAILCheck the Kubernetes and Go versions; plan the upgrade
Ingress hostOKNone
Ingress hostFAILCheck the ingress controller version and its TLS library
Cloud load balancer in front of the ingressFAILChange 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. X25519MLKEM768 uses 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_client command per endpoint tells you where you are today.
  • For the full migration plan, see Post-Quantum Cryptography on Kubernetes.
#post-quantum #cryptography #pqc #tls #ml-kem
Luca Berton
Written by Luca Berton

Principal Solutions Architect specializing in Kubernetes, AI/GPU infrastructure, and cloud-native platforms. Author of Kubernetes Recipes and creator of CopyPasteLearn courses.

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.

Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens