Platform · TLS & NIS26 Min. Lesezeit
Turning on X25519MLKEM768 in production: what actually breaks
Hybrid post-quantum key exchange rarely fails in the cryptography. It fails in ClientHello MTU limits, outdated ingress runtimes, and forgotten internal mTLS links.
Why "harvest now, decrypt later" is a platform ticket, not a physics lecture
You do not need a fault-tolerant quantum computer to exist this year for classical key exchange to be a liability today. If encrypted network captures contain patient records, financial contracts, proprietary R&D, or custom model weights that must remain confidential for ten to fifteen years, traffic recorded over classical X25519 or RSA key exchange today can be decrypted once cryptographically relevant hardware matures.
European security agencies — including the Dutch AIVD, German BSI, and French ANSSI — alongside NIS2 and DORA operational resilience frameworks, already treat cryptographic inventory and hybrid post-quantum key-exchange migration as near-term infrastructure hygiene. NIST standardised ML-KEM (FIPS 203) in 2024, and modern TLS 1.3 stacks ship the hybrid group X25519MLKEM768: classical X25519 combined with lattice-based ML-KEM-768 so transport stays at least as strong as X25519 even if one primitive is weakened.
The wire math: why ClientHello crosses the 1,500-byte MTU boundary
In theory, enabling X25519MLKEM768 is a single TLS curve configuration change. On real networks, replacing a 32-byte elliptic-curve key share with a hybrid lattice key share changes TCP packet behaviour on the very first flight of the handshake:
Group Client KeyShare Server KeyShare Typical ClientHello
----------------- --------------- --------------- -------------------
X25519 (classical) 32 bytes 32 bytes ~320–520 bytes (1 TCP segment)
X25519MLKEM768 1,216 bytes 1,120 bytes ~1,650–1,950 bytes (2 TCP segments)Once SNI, ALPN, supported signature schemes, and session tickets are added, a hybrid ClientHello crosses a standard 1,500-byte Ethernet MTU — and easily crosses 1,420-byte or 1,380-byte WireGuard, IPsec, or VXLAN overlay MTUs inside Kubernetes clusters. On clean links TCP segments the handshake with negligible latency impact. On networks with stateful L4 middleboxes or deep-packet-inspection rules written assuming ClientHello always fits inside Packet 1, connections stall until the client times out and retries.
Three places Kubernetes estates silently downgrade or stall
- 1. Ingress runtimes linked against pre-PQ crypto libraries. Kubernetes Ingress controllers, Envoy proxies, or custom NGINX builds compiled against OpenSSL prior to 3.5 (or older Go / BoringSSL builds) ignore X25519MLKEM768 and silently negotiate classical X25519. Teams assume upgrading edge certificates or CDN toggles covered the cluster, while VPC-direct APIs and internal ingresses remain classical.
- 2. Edge-only termination with classical east-west and replication links. Terminating X25519MLKEM768 at the public load balancer protects browser-to-edge traffic, but cross-region PostgreSQL WAL shipping, ClickHouse inter-shard links, S3 backup streams, and service-mesh mTLS across leased data-centre fibres often stay pinned to TLS 1.2 or classical ECDHE suites nobody has audited in years.
- 3. Unpooled short-lived internal HTTPS calls. When microservices or AI tool-calling workers open a fresh TLS connection per request without keep-alive pooling or TLS 1.3 session resumption, adding ~2.3 kB of handshake payload per call amplifies cross-zone egress transfer and tail latency during traffic spikes.
| Layer | Typical component | What commonly blocks X25519MLKEM768 |
|---|---|---|
| Public edge | Caddy / Cloud LB / Envoy Gateway | Legacy cipher/curve pin lists or outdated L4 inspection appliances |
| Cluster ingress | ingress-nginx / Traefik / Istio Gateway | Container images pinned to pre-OpenSSL-3.5 or older Go 1.22/1.23 runtimes |
| East-west mTLS | Linkerd / Cilium / Istio sidecars | Overlay VXLAN/Geneve MTU (1,400–1,450 B) + high handshake churn without pooling |
| Data & backups | PostgreSQL WAL / pgBackRest / S3 endpoints | Hardcoded ssl_ecdh_curve = prime256v1 or older libpq / OpenSSL client libraries |
A practical rollout sequence — and verifying our own server
Treat post-quantum TLS readiness as routine platform maintenance rather than a Big-Bang security rewrite: first inventory every external and cross-zone TLS termination point in git; second, verify HTTP keep-alive connection pooling and overlay MTU clamping (TCP MSS clamping on WireGuard/VXLAN tunnels); third, upgrade edge and ingress runtimes to current Go (1.24+) or OpenSSL (3.5+) builds that advertise X25519MLKEM768 alongside X25519 fallback; fourth, verify actual wire negotiation in CI.
You can verify how this website negotiates transport encryption on our Nuremberg server (plain Docker Compose and Caddy, zero external proxy) directly from a terminal with OpenSSL 3.5+ or 4.x:
$ openssl s_client -connect aerotivelabs.com:443 -servername aerotivelabs.com -tls1_3 </dev/null 2>&1 | grep -E "Protocol|Cipher|Negotiated"
Negotiated TLS1.3 group: X25519MLKEM768
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256Keep leaf X.509 certificates on standard ECDSA (P-256 / P-384) for now unless you control both client and server trust stores: X25519MLKEM768 already neutralises passive harvest-now-decrypt-later capture on session confidentiality without blowing up certificate chains with multi-kilobyte post-quantum signatures.
Not sure where classical TLS terminates across your clusters?
In our 48h Kubernetes & Infra Audit, we inventory ingress, service-mesh mTLS, and database replication links — alongside FinOps waste and Terraform drift — in two working days.
