Quantum-secure Envoy: downstream and upstream TLS

Envoy 1.40+ adds X25519MLKEM768 to the default ECDH curves, but downstream and upstream TLS are separate checks.

Quick answer: Envoy 1.40.0 and later add X25519MLKEM768 to the default ECDH curves for downstream and upstream TLS. Older builds or a custom ecdh_curves list may not offer it. Test the listener and the upstream separately.

What this guide covers

It covers the TLS key exchange for an Envoy downstream listener and, where configured, the upstream TLS connection. It does not cover data at rest, code signing or QKD. A hybrid listener does not make the upstream connection post-quantum.

Check the version

envoy --version

Envoy 1.40.0, released in October 2026, added X25519MLKEM768 to the default ECDH curves for downstream and upstream TLS, including FIPS builds. Older versions or a custom ecdh_curves list may not offer the group.

Configure the curves

In the TLS context, set the hybrid group first and keep a classical fallback:

tls_params:
  ecdh_curves:
    - X25519MLKEM768
    - X25519

The exact path depends on whether you configure DownstreamTlsContext or UpstreamTlsContext. Set it explicitly when your config already overrides the defaults; leaving ecdh_curves unset on a current build uses the default list.

Downstream and upstream are separate

  • Downstream is the client-to-Envoy connection.
  • Upstream is Envoy-to-application or Envoy-to-service.

A listener can negotiate hybrid ML-KEM while the upstream context stays classical. Test both if both matter.

Verify the negotiated group

From an OpenSSL 3.5+ client:

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

Expected:

Negotiated TLS1.3 group: X25519MLKEM768

If the group is missing, check the Envoy version and whether a custom ecdh_curves list omits it.

Version matrix

EnvoyHybrid groupAction
1.40.0+Default downstream/upstreamNo change unless custom curves
1.40.0+, custom ecdh_curvesOnly if listedAdd X25519MLKEM768
Older EnvoyNot availableUpgrade

Verify with Ready for Quantum

CheckWhat it answers
quantumDid this connection negotiate a PQ key exchange?
quantumcertDoes the certificate have the tested PQ property?
httpsIs trust and expiry acceptable?
OpenSSL via the Security expertWhich protocol, cipher and group were used?

Use an agent that can reach the listener. For upstream TLS, test the upstream target from an agent that can reach it.

Failure example

A team upgrades Envoy but keeps a custom ecdh_curves list with only X25519 and P-256. The listener stays classical because the explicit list overrides the new default. Adding X25519MLKEM768 restores the negotiation.

Automate it

  • A Command Processor can collect the Envoy version and the effective TLS context from the config dump.
  • An AgentFlow can test the downstream listener and the upstream target and produce a report.
  • A Connect can repeat the listener check and alert on regression.

Limits

  • One target, one port and one agent per check.
  • The agent's algorithm set matters.
  • Downstream and upstream TLS are separate.
  • No data-at-rest or QKD coverage.
  • A clean listener check does not prove the upstream is configured correctly.

Next

Common questions

Does Envoy support X25519MLKEM768?

Envoy 1.40.0 and later add X25519MLKEM768 to the default ECDH curves for downstream and upstream TLS, including FIPS builds. Older Envoy versions or a custom curve list may not offer it. Check the version and the effective TLS parameters.

How do I set ecdh_curves?

In the TLS context, set tls_params.ecdh_curves with X25519MLKEM768 first and a classical fallback such as X25519. The exact field path depends on whether you use the downstream or upstream TLS context.

What about the upstream connection?

Upstream TLS is a separate context. A downstream listener can negotiate hybrid ML-KEM while the upstream connection to the application uses a classical group. Test the listener and the upstream target separately.

Keep exploring

Quantum-secure nginx: prove the origin negotiates hybrid TLS

Configure nginx against OpenSSL 3.5+, prefer X25519MLKEM768, and test the origin rather than only the CDN.

Quantum-secure HAProxy: frontend and backend groups

Set hybrid curves on the bind side with OpenSSL 3.5+, then test the frontend and the backend separately.

Quantum-secure Traefik: curvePreferences and the default trap

Traefik 3.8.1+ accepts X25519MLKEM768 in curvePreferences, but a custom list that omits it can disable the hybrid group.

Browse the library · Quantum readiness docs · Check a system