Post-quantum TLS in NGINX Ingress Controller

—

by

in , ,

On December 2, 2026, the Office of the National Cyber Director, the NSA, and CISA issued a joint statement saying that AI companies have made discoveries affecting some of the encryption in use today. They don’t see an immediate, widespread threat, but they urged industry and government to upgrade quickly. The same day, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle published their own statement backing a move to NIST’s post-quantum algorithms.

NGINX Ingress Controller 5.8 already uses post-quantum TLS key exchange with clients that support it. Its default Debian 13 and Alpine 3.24 images ship OpenSSL 3.5, and NGINX picks the hybrid X25519MLKEM768 key exchange for any client that offers it, with no configuration change.

What’s in the images

ImageBaseNGINXOpenSSL
nginx/nginx-ingress:5.8.1Debian 13 (trixie)1.31.103.5.9
nginx/nginx-ingress:5.8.1-alpineAlpine 3.241.31.103.5.9

OpenSSL 3.5 puts ML-KEM, the key exchange algorithm NIST standardized as FIPS 203, in its built-in default provider alongside the ML-DSA and SLH-DSA signature algorithms. Because both images load that default provider, ML-KEM works with nothing extra to install.

NGINX Ingress Controller doesn’t set the ssl_ecdh_curve directive by default, so NGINX uses OpenSSL’s default list of key exchange groups. You can still override it with a ConfigMap snippet. In OpenSSL 3.5, the default list starts with X25519MLKEM768, which combines classical X25519 with ML-KEM-768. Anyone who records the traffic would have to break both to decrypt it later. Clients that don’t offer X25519MLKEM768 fall back to X25519 or P-256 as before, and TLS 1.2 connections are unchanged. Chrome 131+ and Firefox 135+ support X25519MLKEM768, along with clients built on OpenSSL 3.5+ or Go 1.24+. See the Kubernetes post on post-quantum cryptography for more on client support.

NGINX uses the same defaults when opening TLS connections to your backends, such as with the nginx.org/ssl-services annotation, so those connections use X25519MLKEM768 too when the backend supports it.

Controller-to-API-server connections

The controller also uses TLS when it reads resources from the Kubernetes API server, including the private keys in your TLS Secrets. Both the controller and the API server are written in Go, which has used X25519MLKEM768 by default since Go 1.24. NGINX Ingress Controller 5.8+ and Kubernetes 1.33+ are both built with Go 1.24 or newer, so this connection is protected the same way as your HTTPS traffic with nothing to configure. We verified in a Kubernetes 1.36 cluster that the controller negotiates X25519MLKEM768 with the API server.

Check your cluster

Check the OpenSSL version

To see which OpenSSL version the controller runs, run nginx -V in a controller pod. Any version from 3.5 on supports X25519MLKEM768. When built with and running with differ, as on Debian after an OS security update, look at the running with version:

$ kubectl exec -n <namespace> <controller-pod> -- nginx -V 2>&1 | grep OpenSSL
built with OpenSSL 3.5.7 9 Jun 2026 (running with OpenSSL 3.5.9 29 Sep 2026)

Verify a handshake

Point the commands below at one of your own HTTPS hosts by setting IC_IP and IC_HTTPS_PORT and replacing cafe.example.com with your host name, or deploy the complete example to test against cafe.example.com as its README describes.

To verify the handshake, request the hybrid group with OpenSSL 3.5 or later. Note that macOS ships LibreSSL as openssl, which can’t run this test. Use Homebrew’s openssl@3 or run openssl from a container instead:

$ openssl s_client -connect $IC_IP:$IC_HTTPS_PORT -servername cafe.example.com \
    -groups X25519MLKEM768 </dev/null 2>/dev/null | grep 'Negotiated TLS1.3 group'
Negotiated TLS1.3 group: X25519MLKEM768

If your curl is built with OpenSSL 3.5 or later, running it with -sv shows the negotiated group as well:

$ curl -sv --resolve cafe.example.com:$IC_HTTPS_PORT:$IC_IP https://cafe.example.com:$IC_HTTPS_PORT/coffee --insecure -o /dev/null 2>&1 | grep 'SSL connection'
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey

Log client key exchange groups

To see how many of your clients already use post-quantum key exchange, log $ssl_protocol and $ssl_curve with the log-format ConfigMap key. With Helm, this keeps the default format and appends both variables:

controller:
  config:
    entries:
      log-format: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" $ssl_protocol $ssl_curve'

If you installed with manifests, add the same log-format key to the nginx-config ConfigMap.

Each HTTPS access log entry then ends with the TLS version and key exchange group. Below, the first request came from curl 8.23.0 with OpenSSL 3.5.9 and negotiated X25519MLKEM768. The second came from curl 8.5.0 with OpenSSL 3.1.4, which lacks ML-KEM, and fell back to X25519:

10.244.0.10 - - [03/Dec/2026:10:28:23 +0000] "GET /coffee HTTP/1.1" 200 161 "-" "curl/8.23.0" "-" TLSv1.3 X25519MLKEM768
10.244.0.11 - - [03/Dec/2026:10:28:23 +0000] "GET /coffee HTTP/1.1" 200 161 "-" "curl/8.5.0" "-" TLSv1.3 X25519

Choosing the groups yourself

OpenSSL 3.5’s default list omits the NIST-curve hybrids SecP256r1MLKEM768 and SecP384r1MLKEM1024. Until NGINX Ingress Controller has a dedicated ConfigMap key for key exchange groups, you can customize the list by setting ssl_ecdh_curve with the http-snippets ConfigMap key. With Helm:

controller:
  config:
    entries:
      http-snippets: |
        ssl_ecdh_curve X25519MLKEM768:SecP256r1MLKEM768:SecP384r1MLKEM1024:X25519:prime256v1:secp384r1;

If you installed with manifests, add the same http-snippets key to the nginx-config ConfigMap. The controller reloads NGINX without restarting the pod. A client that requests SecP256r1MLKEM768 now negotiates it, while X25519MLKEM768 stays first for everyone else:

$ openssl s_client -connect $IC_IP:$IC_HTTPS_PORT -servername cafe.example.com \
    -groups SecP256r1MLKEM768 </dev/null 2>/dev/null | grep 'Negotiated TLS1.3 group'
Negotiated TLS1.3 group: SecP256r1MLKEM768

This list replaces the OpenSSL default for incoming HTTPS traffic on every host.

Tell us what you need

If something you need is missing, open a feature request and tell us how you’d use it. For questions, post on the NGINX Community Forum.

Learn more