isquantumsafe Check a domain

isquantumsafe / Guides / Envoy Proxy

Post-quantum TLS on Envoy Proxy

Envoy 1.40+ offers X25519MLKEM768 hybrid post-quantum key exchange (ML-KEM) by default. On older Envoy, set ecdh_curves in TlsParameters. Config and tests.

Default
On by default
You need
Envoy 1.40.0 (default); older BoringSSL-based releases need ecdh_curves set
Updated
4 December 2026 · 4 sources

Envoy 1.40.0, released in October 2026, added X25519MLKEM768 to the default curve list for both downstream (client) and upstream (backend) TLS. Older Envoy releases default to X25519 and P-256 only, so on those you must list the hybrid group in ecdh_curves yourself.

Requirements

  • Envoy 1.40.0 or newer for the default behavior. The new default is X25519MLKEM768:X25519:P-256.
  • On older releases, an Envoy build whose BoringSSL recognizes X25519MLKEM768.
  • TLS 1.3. Envoy's default maximum TLS version is 1.3 for both clients and servers.
  • The runtime flag envoy.reloadable_features.pqc_default_ecdh_curves left at its default (true).

Check your version with envoy --version.

Enable it

On Envoy 1.40.0 or newer, leave ecdh_curves unset. On older releases, or to pin the order, set it under tls_params in the common_tls_context of your DownstreamTlsContext:

transport_socket:
  name: envoy.transport_sockets.tls
  typed_config:
    "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
    common_tls_context:
      tls_params:
        tls_minimum_protocol_version: TLSv1_2
        tls_maximum_protocol_version: TLSv1_3
        ecdh_curves:
          - X25519MLKEM768
          - X25519
          - P-256
      tls_certificates:
        - certificate_chain: { filename: "/etc/envoy/certs/cert.pem" }
          private_key: { filename: "/etc/envoy/certs/key.pem" }

This goes in the listener's filter chain. The same tls_params block in an UpstreamTlsContext applies to connections from Envoy to your backends.

Check it worked

From a machine with an OpenSSL 3.5 or newer client:

openssl s_client -connect example.com:443 -servername example.com \
  -groups X25519MLKEM768 -tls1_3 </dev/null 2>/dev/null | grep -i "group"

You should see Negotiated TLS1.3 group: X25519MLKEM768. Envoy also counts handshakes per group in the ssl.curves.<group> statistics, so ssl.curves.X25519MLKEM768 should rise in the admin /stats output.

Run a free check at https://isquantumsafe.net/ to see the negotiated group and your grade.

Common problems

  • Explicit ecdh_curves without the hybrid. Any ecdh_curves list replaces the default. A list with only X25519 and P-256 turns ML-KEM off, even on 1.40+.
  • The runtime flag is off. Setting envoy.reloadable_features.pqc_default_ecdh_curves to false restores the old classical-only default.
  • Stale API docs. At the time of writing, the ecdh_curves field description in the API reference still lists X25519 and P-256 as defaults. The 1.40.0 changelog and source code show the new default.
  • Larger handshakes. Envoy's docs note that X25519MLKEM768 adds about 1 KB to the ClientHello and ServerHello, which can add packets and latency.

Sources

  1. Envoy 1.40.0 changelog (envoyproxy/envoy)
  2. tls: enable X25519MLKEM768 in default ECDH curves (envoyproxy/envoy PR #47225)
  3. TLS architecture overview: Post-Quantum Cryptography (Envoy docs source)
  4. Common TLS configuration: TlsParameters (Envoy API docs)

Other guides: Web servers