Quick answer: Envoy 1.40.0 and later add
X25519MLKEM768to the default ECDH curves for downstream and upstream TLS. Older builds or a customecdh_curveslist 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
| Envoy | Hybrid group | Action |
|---|---|---|
| 1.40.0+ | Default downstream/upstream | No change unless custom curves |
1.40.0+, custom ecdh_curves | Only if listed | Add X25519MLKEM768 |
| Older Envoy | Not available | Upgrade |
Verify with Ready for Quantum
| Check | What it answers |
|---|---|
quantum | Did this connection negotiate a PQ key exchange? |
quantumcert | Does the certificate have the tested PQ property? |
https | Is trust and expiry acceptable? |
| OpenSSL via the Security expert | Which 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.