Skip to content

Post-quantum TLS on Traefik

Web server. Uses Go's TLS stack: on by default in releases built with Go 1.24+ unless curvePreferences overrides it.

Checked 2026-12-05. Official docs: doc.traefik.io. JSON: /api/v1/fixes/traefik

Turn on post-quantum key exchange

Upgrade Traefik to a release built with Go 1.24 or newer. If your TLS options set curvePreferences, include the hybrid first:

dynamic configuration
tls:
options:
default:
curvePreferences:
- X25519MLKEM768
- X25519
- CurveP256

Fixes: KEX_CLASSICAL_ONLY

Turn off TLS 1.0 and 1.1

Set the minimum version:

dynamic configuration
tls:
options:
default:
minVersion: VersionTLS12

Fixes: TLS10_11_ENABLED

Send HSTS

Add a headers middleware:

dynamic configuration
http:
middlewares:
hsts:
headers:
stsSeconds: 31536000
stsIncludeSubdomains: true

Fixes: HSTS_MISSING, HSTS_SHORT