Traefik uses Go's crypto/tls, which turns on X25519MLKEM768 by default from Go 1.24. Traefik 3.4.2+ and 2.11.26+ are built that way, so they offer the hybrid group as long as your TLS options do not set curvePreferences.
Requirements
- Traefik 3.4.2 or newer, or 2.11.26 or newer on the v2 line, for the default behavior.
- Traefik 3.5.0 or newer if you want to list
X25519MLKEM768 by name in curvePreferences. That name was added to Traefik's curve map in PR #11731.
- Recent 3.7.x and 3.8.x releases also accept
SecP256r1MLKEM768 and SecP384r1MLKEM1024.
- TLS 1.3 allowed. The default TLS option allows TLS 1.2 and 1.3.
Check your version with traefik version.
Enable it
If you have no curvePreferences in any TLS option, you are done. If you set it, add the hybrid first. In the dynamic configuration (file provider), YAML:
tls:
options:
default:
minVersion: VersionTLS12
curvePreferences:
- X25519MLKEM768
- X25519
- CurveP256
The same in TOML:
[tls.options]
[tls.options.default]
minVersion = "VersionTLS12"
curvePreferences = ["X25519MLKEM768", "X25519", "CurveP256"]
On Kubernetes, the TLSOption custom resource takes the same curvePreferences list under spec:
apiVersion: traefik.io/v1alpha1
kind: TLSOption
metadata:
name: default
namespace: default
spec:
minVersion: VersionTLS12
curvePreferences:
- X25519MLKEM768
- X25519
- CurveP256
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.
Run a free check at https://isquantumsafe.net/ to see the negotiated group and your grade.