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.

Quick answer: Traefik 3.8.1+ accepts X25519MLKEM768 in the TLS options curvePreferences list. Recent builds inherit Go's post-quantum defaults when the field is unset, but an explicit list that omits the hybrid group can silently disable it.

What this guide covers

It covers the TLS key exchange at a Traefik entry point. It does not cover data at rest, code signing or QKD. A hybrid entry point does not make the certificate post-quantum.

Check the version

traefik version

Traefik 3.8.1 and later accept the hybrid X25519MLKEM768 and SecP256r1MLKEM768 values in curvePreferences. Current builds also inherit Go's post-quantum defaults when the field is left alone.

Configure the curve list

In a Traefik TLS option:

tls:
  options:
    default:
      minVersion: VersionTLS12
      curvePreferences:
        - X25519MLKEM768
        - X25519

Keep a classical fallback for clients that do not offer the hybrid group. If you use Kubernetes CRDs, the same list belongs in the TLSOption resource under spec.curvePreferences.

An explicit curvePreferences list overrides the defaults. That is the trap: a list copied from an older “hardened TLS” guide may omit the hybrid group.

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 Traefik version, the active TLS option and whether curvePreferences is set.

Version matrix

TraefikHybrid groupAction
3.8.1+, no curvePreferencesGo defaultUsually no change
3.8.1+, explicit listOnly if listedAdd X25519MLKEM768
Older TraefikNot 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 entry point. If Traefik is behind a cloud load balancer or CDN, test the hop that terminates TLS.

Failure example

A team copies a “modern TLS” Traefik config with curvePreferences: [X25519, secp256r1]. The Traefik version supports the hybrid group, but the explicit list removes it, so the site remains classical. Adding X25519MLKEM768 first fixes the tested connection.

Automate it

  • A Command Processor can collect the Traefik version and the active TLS options.
  • An AgentFlow can inventory the entry point, add the quantum and certificate checks, run both and report.
  • A Connect can repeat the quantum check and alert on regression.

Limits

  • One target, one port and one agent per check.
  • The agent's algorithm set matters.
  • Key exchange and certificate signatures are separate.
  • No data-at-rest or QKD coverage.
  • A clean entry point check does not prove every router or service is configured the same way.

Next

Common questions

Does Traefik support hybrid groups?

Traefik 3.8.1 and later accept X25519MLKEM768 and SecP256r1MLKEM768 in the TLS options curvePreferences field. Current builds also inherit Go's post-quantum defaults when the field is left alone. Check the Traefik version before changing TLS options.

What happens if I set curvePreferences?

An explicit curvePreferences list overrides the defaults. If the list omits X25519MLKEM768, you can silently turn off the hybrid group. Include it first, then a classical fallback such as X25519 or secp256r1.

How do I verify Traefik?

Run openssl s_client with -groups X25519MLKEM768 against the Traefik entry point and look for the negotiated group. For recurring evidence, add the host on quantum and quantumcert from an agent that can reach the entry point.

Keep exploring

Quantum-secure Caddy: keep the default hybrid group

Caddy 2.10+ negotiates X25519MLKEM768 by default through Go 1.24+, but a custom curves list can silently disable it.

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 Envoy: downstream and upstream TLS

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

Browse the library · Quantum readiness docs · Check a system