Can Traefik negotiate post-quantum key exchange today?
Traefik v3.8.0 has the hybrid curve names in its source. The certificate code maps x25519mlkem768, secp256r1mlkem768 and secp384r1mlkem1024, and its go.mod declares Go 1.27.0. The Traefik TLS options page, checked on 2026-12-03, does not mention post-quantum, ML-KEM or X25519MLKEM768 and gives no steps for enabling or disabling hybrid key exchange. The facts do not confirm a Traefik-specific toggle, so the hybrid behavior you see most likely comes from the Go runtime defaults that Traefik is built with, not from a documented Traefik setting.
The Go release notes explain that default. Go 1.24 enabled X25519MLKEM768 when Config.CurvePreferences is nil, and Go 1.26 enabled SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default. Go 1.24 lets GODEBUG=tlsmlkem=0 revert its default, and Go 1.26 lets GODEBUG=tlssecpmlkem=0 or an explicit curvePreferences list disable the others. Traefik's own curvePreferences setting is left unset unless configured, so a build on a recent Go runtime should negotiate the hybrids for clients that offer them. Confirm this in your environment with a handshake test against the entrypoint and by checking the Go version of the binary you deploy, because the facts give no test procedure.
If you run Traefik as the TLS terminator, have your platform engineers confirm which Go toolchain built the binary, record whether curvePreferences is set on any TLS option, and test a hybrid-capable client against each entrypoint. Traefik community topic 29730 reports that a TCP router using a HostSNI rule failed to read the SNI when an X25519MLKEM768 ClientHello spanned two TCP segments, with no fix version or maintainer confirmation, so include TCP routers in that test. Ask the Traefik project or your vendor for any published enabling steps before writing them into a runbook.
Which Traefik version and Go build apply to each fact
This table lists each Traefik version line and Go build that affects post-quantum key exchange, with the component, the source and the date it was checked. Read each row as applying only to that version or build, because the Traefik v3.5 and v3.8.0 rows describe different things and the Go rows control the default. The main takeaway is that the vendor's TLS options page was silent on post-quantum key exchange when checked on 2026-12-03.
| Version or build | What it covers for key exchange | Source and checked date |
|---|---|---|
| Traefik v3.5 | Added the X25519MLKEM768 curve name to the TLS curve mapping through PR 11731, with no behavior change unless the curve is explicitly configured | PR 11731, merged 3 June 2025. v3.5 blog, 24 July 2025, lists the feature but gives no enablement steps |
| Traefik v3.8.0 | Curve names x25519mlkem768, secp256r1mlkem768 and secp384r1mlkem1024 appear in certificate.go; go.mod declares go 1.27.0 | v3.8.0 certificate.go and go.mod; GitHub release published 23 November 2026, checked 2026-12-03 |
| Go 1.24 build | X25519MLKEM768 is enabled by default when curve preferences are nil; GODEBUG tlsmlkem=0 reverts this | Go 1.24 release notes |
| Go 1.26 build | SecP256r1MLKEM768 and SecP384r1MLKEM1024 are enabled by default; GODEBUG tlssecpmlkem=0 or explicit curve preferences disable them | Go 1.26 release notes |
| TLS options docs | Silent on post-quantum key exchange, with no mention of ML-KEM or X25519MLKEM768 on the page | Traefik TLS options reference, checked 2026-12-03 |
| Confirm your build | Check which Go toolchain built your Traefik binary, since the default depends on that toolchain | Confirm with the vendor or your own build records; the facts do not state which release ships which toolchain |
How the curve list decides which key exchange is offered
In Traefik, the key exchange offered during a TLS handshake depends on the curvePreferences setting in a TLS option. In the Traefik source on the master branch, curvePreferences is unset by default. Traefik leaves the list empty unless you configure it, and it does not supply its own default ordering of curves. If you want to control which key exchange groups a client can negotiate, you need to set this list explicitly in the TLS options you attach to your routers or entrypoints. Check the value in the exact TLS option that a router uses, because the option named default applies whenever a router specifies no options.
The setting also fails in a specific way. If a curve name in curvePreferences is not recognized, Traefik returns the error invalid CurveID in curvePreferences. A typo in a curve name therefore stops the configuration from loading rather than quietly falling back to something else, so confirm the configuration is accepted after every change. The curve names that map to post-quantum hybrids in the v3.8.0 source are x25519mlkem768, secp256r1mlkem768 and secp384r1mlkem1024, and the source comments that these hybrids are enabled by default since Go 1.26. Confirm the exact accepted spelling against the TLS options reference and your own test before you rely on it.
The cipher suite list works differently and is less useful as a lever. Traefik takes its default cipher suite list from Go's tls.CipherSuites(), and the TLS options reference states that with TLS 1.3 the cipher suites are not configurable. For TLS 1.3 connections, the choice of key exchange group is therefore the setting you can see and change in the TLS options, while cipher suites matter mainly for TLS 1.2 connections. This section covers key exchange only. Signatures and certificates are handled separately, so confirm which key exchange a handshake actually uses with a test client before assuming any curve list has taken effect.
Steps to confirm and enable hybrid key exchange on Traefik
This sequence records the Traefik and Go versions in use, checks whether a curve preference is already set, and then either leaves Go's defaults in place or sets the hybrid curve names explicitly. It ends with a client-side test that confirms the negotiated group and a check that the chosen TLS option is the one a router actually uses.
Record the Traefik and Go versions
The engineer running the proxy records the Traefik version with the traefik version command or the container image tag, and records the Go toolchain used to build the binary. Traefik's latest published GitHub release is v3.8.0, dated 23 November 2026, so the running version may be older or newer than that. The Go version determines whether hybrid key exchange is on by default: Go 1.24 enables X25519MLKEM768 when the curve preference list is nil, and Go 1.26 extends the default to the SecP256r1MLKEM768 and SecP384r1MLKEM1024 hybrids. Confirm the build toolchain with the vendor's release notes or build metadata, because the Go version used to compile the binary is what counts, not the one installed on the host. This step is closed when both versions are written into the change record.
Check existing curve preferences in TLS options
Review the static configuration and any dynamic TLS options to see whether curvePreferences is set on the entrypoint, on the option named default, or on any other named option. Traefik leaves curvePreferences unset unless it is configured, so an absent key means Go's defaults apply. If the key is present, note the exact list, because an explicit list replaces the Go defaults. Check that every name in the list is recognized, since Traefik returns an invalid CurveID error for unknown names. This step is closed when you have a written record of where curvePreferences is set, or a confirmed statement that it is not set anywhere.
Decide whether to set curve preferences explicitly
Choose one of two paths. The first leaves curvePreferences unset, so the Go defaults for the version recorded in step one apply. This is the simpler path when the Go toolchain already enables the hybrid groups. The second sets curvePreferences explicitly to include x25519mlkem768 and any other hybrid names you need, along with the classical groups you still require. Setting the list is useful when you want the choice to be visible in configuration rather than dependent on the build toolchain. The Traefik TLS options reference does not mention post-quantum settings, so the Traefik source is the only supplied basis for the accepted names. Record the decision and the reason for it, and tie it to the version and toolchain from step one. This step is closed when the chosen configuration is written into the change record.
Test with a client that offers the hybrid group
Use a TLS client that offers X25519MLKEM768 in its ClientHello, such as a recent OpenSSL build with that group enabled or a current Go client, and connect to a test router on the entrypoint. Confirm the negotiated key exchange group from the client's connection details, for example with the group reporting option of the client tool. Repeat the test against a client that does not offer the hybrid group to confirm that the handshake falls back to a classical group and still succeeds. Keep the test in a non-production environment first. Community topic 29730 reports that a TCP router using a HostSNI rule can fail to read SNI when the X25519MLKEM768 ClientHello spans two TCP segments, so test TCP routers separately. This step is closed when the negotiated group is recorded for both client types.
Confirm the TLS option is attached to the router
Check each router that should use the new settings. A router's own tls section replaces the entrypoint TLS configuration with no merge, so a router with an empty tls section will not inherit the entrypoint's tls.options. Confirm that the router either has no tls section and inherits the entrypoint settings, or that its tls section names the intended option. Also confirm that a router without a specified options value uses the option named default. Repeat the client test from step four against each router that matters for the change. This step is closed when every router under review shows the expected negotiated group in the test results.
Which Traefik settings control the hybrid curve
Hybrid key exchange in Traefik is governed by a small set of TLS, entrypoint and build settings, and each one has a different scope. Read the cards in order to see which setting applies to which router and which layer depends on the Go toolchain.
TLS options curvePreferences
The curvePreferences key in a TLS option sets the key exchange curves Traefik offers during the handshake. Per the researched facts, the field is unset by default, so Traefik does not pin a list in its own configuration. An unknown curve name returns the error invalid CurveID in curvePreferences, so a typo fails the configuration rather than silently falling back. The Traefik TLS options page checked on 2026-12-03 does not mention post-quantum or X25519MLKEM768, so confirm the exact accepted names against the Traefik version you run. Verify the names with your own test handshake rather than assuming them.
Default option and router tls sections
A TLS router uses the option named default when it specifies no options, so a change to default reaches every router without its own option. A router tls section replaces entrypoint TLS settings completely, with no merge, so even an empty tls block on a router removes inherited tls.options from the entrypoint. Check each router for its own tls block before you assume a curve list applies to it. The facts do not confirm how a router that names an option missing from the configuration behaves, so test that case directly.
Entrypoint http.tls settings
The entrypoint setting http.tls turns on TLS for every router attached to that entrypoint, and http.tls.options sets the default option for those routers. Routers with their own tls section ignore these inherited values. If no certificate is set, Traefik generates a default self-signed certificate, which is useful only for testing and should not be counted as a production setup. Confirm the entrypoint each listener uses before you change its options, because a change there can affect every router behind it.
Go toolchain version
Traefik's build sets the curve behavior through the Go runtime. The Go 1.24 release notes say X25519MLKEM768 is on by default when Config.CurvePreferences is nil, and GODEBUG setting tlsmlkem=0 reverts that. The Go 1.26 release notes say the secp256r1 and secp384r1 hybrids are on by default and can be turned off with tlssecpmlkem=0. The Traefik v3.8.0 source declares go 1.27.0 in its go.mod, so the toolchain used to build the binary decides which defaults apply. Check the build toolchain and any GODEBUG values in your deployment before you test a handshake.
How the answer differs by Traefik build and deployment
Traefik release binaries built with Go 1.24 or Go 1.26 get their default curve behavior from the Go toolchain that compiled them. Go 1.24 enables the X25519MLKEM768 hybrid key exchange when no curve preferences are set, and Go 1.26 also enables SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default. You confirm which toolchain built your binary from the release notes and build information for the version you run, not from the Traefik version number alone.
- Default behavior: When
curvePreferencesis left unset in the TLS options, the hybrid curves available in the Go toolchain are offered by default. - Disabling by toolchain: On Go 1.24, the
GODEBUGsettingtlsmlkem=0reverts the default. On Go 1.26,tlssecpmlkem=0disables the secp hybrids, and settingcurvePreferencesalso changes what is offered. - Configuration interaction: Any
curvePreferenceslist you set overrides the toolchain default, so the default only applies when that key is absent. - Version tracing: Record the Traefik version, such as v3.5 or later, and the Go toolchain version used to build it, and keep both with your inventory.
- Deployment variation: Containers and distribution packages may be built with different toolchains, so check the image or package you actually deploy.
Confirm the toolchain version and the GODEBUG settings in your runtime environment, and verify the negotiated group with a handshake test against your own endpoint.
The Traefik v3.8.0 source declares go 1.27.0 in its go.mod file, and its curve name map includes x25519mlkem768, secp256r1mlkem768 and secp384r1mlkem1024 under a comment that these hybrids are enabled by default since Go 1.26. This is a statement about the source tree, so the behavior of a built binary still depends on the toolchain that compiled it and on your configuration. A build that targets Go 1.27 should be checked against the Go 1.27 release notes, which this page does not cover, so confirm the default behavior there before you rely on it.
- Source declaration: The v3.8.0 go.mod names Go 1.27.0, so a v3.8.0 build requires that toolchain or a compatible one.
- Curve name mapping: The map accepts the three hybrid names in
curvePreferences, so they can be pinned explicitly. - Released binary check: Compare the toolchain reported in your binary build information against the go.mod declaration before you assume a default.
- Unpublished Go 1.27 defaults: This page does not state the Go 1.27 default for each hybrid, so treat that as an item to confirm.
- Rebuilds: If you build from source, a toolchain change can alter the default offered curves even when the Traefik version stays the same.
Confirm the built toolchain and the negotiated groups for your v3.8.0 deployment, and do not treat the source declaration alone as evidence of a running configuration.
Traefik Hub can run in a FIPS 140-3 compliant mode through dedicated images compiled in FIPS mode, and it uses the official Go Cryptographic Module validated under the Cryptographic Module Validation Program. Using these images requires a license that includes the FIPS feature. The CMVP certificate #5247 is described on a Traefik Labs solutions page as covering ML-KEM key exchange, but that page is vendor marketing and applies to Traefik Hub, not to the open-source Traefik Proxy. Do not read the certificate as covering a Traefik Proxy build.
- Scope of the certificate: The CMVP reference applies to the Hub images as the vendor describes them, not to an open-source binary you build yourself.
- License requirement: The FIPS feature must be included in your Hub license before the FIPS images are available to you.
- Image identity: Confirm that you run the dedicated FIPS-mode image, since a standard image does not carry this scope.
- Vendor source limits: The solutions page is marketing material, so cite the Hub FIPS documentation and the validation record itself for any formal claim.
- No compliance claim: Running a FIPS image does not by itself establish that your deployment meets FIPS 140-3 or any other requirement.
Request the validation record and the Hub FIPS documentation for your image version, and have your assessor confirm the scope that applies to your deployment.
When the team sets curvePreferences explicitly, the list in your configuration decides which groups Traefik offers, and the Go toolchain defaults no longer apply to that TLS option. This is the setting most likely to be inherited unchanged through upgrades, so a pinned list can keep the hybrids out of your handshakes even on a build whose default includes them. Traefik returns an error for an unknown name, so a typo causes a startup failure rather than a silent fallback.
- Override effect: A pinned list replaces the toolchain default entirely, so any hybrid you want must appear in the list.
- Name spelling: Use the names accepted by the v3.8.0 map, and check that the list is valid for the version you run.
- Error on unknown names: Traefik reports an invalid curve identifier, so validate the configuration after each change.
- Scope per option:
curvePreferencesapplies to the TLS options that reference it, so check each option used by your routers. - Inheritance: Routers that use the
defaultoption or a separate option may get different curve lists.
Compare each TLS option in your configuration against the curve list you expect, and confirm the negotiated group with a test connection after every change.
How a client handshake reaches the Traefik curve decision
The diagram follows a TLS ClientHello from the client into a Traefik entrypoint, then to the router that matches the request. The router's tls section is the first check: if it exists, even empty, it replaces the entrypoint TLS configuration with no merge. Next, Traefik looks up the TLS option named by the router, or default when none is set, and reads curvePreferences from it. If that list is unset, the Go runtime default applies, and the negotiated group is what the client and server both support. Check each hand-off in the order shown, starting with the router's tls block.
Decision path from ClientHello to the negotiated key exchange group in Traefik.
What Traefik has not published about hybrid key exchange
The Traefik project has shipped X25519MLKEM768 support in code, but its documentation and release material do not explain how to turn it on, what it covers, or what happens when it misbehaves. The cards below list the open questions to put to Traefik Labs before changing settings in production.
TLS options page is silent
The Traefik TLS options reference, checked on 2026-12-03, does not mention post-quantum, ML-KEM or X25519MLKEM768. It lists curvePreferences as an option but gives no example that names the hybrid curve or any default for it. Ask Traefik Labs which curve names are accepted in curvePreferences for v3.8.0, whether the documentation will be updated, and which page is the authoritative reference for them. Until then, treat the source code as the only written record of the names.
TLS options referenceRelease note names the curve only
The Traefik Proxy v3.5 blog post, dated 24 July 2025, lists the introduction of X25519MLKEM768 for post-quantum-secure TLS but does not explain how to enable it. The related pull request states that nothing changes unless the curve is explicitly configured. Ask Traefik Labs whether a configuration example will be published, and whether the blog post is the intended place for upgrade steps or whether those belong in the reference documentation.
v3.5 blog postNo documented fix for HostSNI
A community report on topic 29730 describes a TCP router using a HostSNI rule that fails to read the SNI when an X25519MLKEM768 ClientHello spans two TCP segments. The page names no fix version and no confirmation from a maintainer. Ask Traefik Labs whether the issue is confirmed, which versions are affected, and whether a fix is planned. Until then, test TCP routers with HostSNI rules before enabling the hybrid curve on the same entrypoint.
Community topic 29730No stated roadmap for hybrid defaults
The source for the v3.8.0 release lists x25519mlkem768 and related hybrid names with a comment that they are enabled by default since Go 1.26, but no Traefik document says whether Traefik will follow that default or disable it. Ask Traefik Labs whether hybrid key exchange will be on by default in Traefik builds, which Go version the project requires for it, and whether a roadmap or deprecation notice will be published. Confirm the effective behavior in your own build rather than relying on the comment.
v3.8.0 certificate sourceWhat breaks or silently falls back when hybrid curves are offered
The main risk when enabling hybrid key exchange in Traefik is that the handshake can quietly stay classical, so the first check is whether X25519MLKEM768 is actually offered on the connection you care about. The Traefik TLS options documentation does not mention post-quantum or ML-KEM at all, so you cannot rely on the docs to tell you what is negotiated. Traefik's source sets curvePreferences to unset unless you configure it, and the Go runtime decides the default. Go 1.24 enables X25519MLKEM768 by default when no curve preferences are set, and Go 1.26 extends that default to the SecP256r1MLKEM768 and SecP384r1MLKEM1024 hybrids. If you set curvePreferences to a list that contains only classical curves, or if Traefik is built with an older Go toolchain, the hybrid is not offered and the connection falls back to classical ECDHE with no error. Confirm the Go version of the binary you run and the curve list in effect, then verify the negotiated group from a client that supports the hybrid.
A typo in a curve name is handled differently from a missing hybrid. In the master branch of Traefik's TLS manager, an unknown name in curvePreferences returns the error invalid CurveID in curvePreferences, so a misspelled value should stop startup or configuration loading rather than fall back. Check the logs after any change to that list, because an error here is the safe outcome, while a silent downgrade is the one to hunt for. Also remember that the tls section on a router replaces the entrypoint TLS configuration with no merge, and a router that carries an empty tls section is enough to swap out the options you expected. A router can therefore run with the default TLS options instead of the curve list you set on the entrypoint, and this does not show up as an error. Inspect each router's tls block and its options reference before you assume the entrypoint setting applies.
Traefik community topic 29730 reports a separate failure: a TCP router with a HostSNI rule could not read the SNI when the client's X25519MLKEM768 ClientHello spanned two TCP segments. The report names no fix version and no confirmation from a maintainer, so do not treat the issue as resolved for any release. If you route TCP traffic by SNI, test a hybrid client against your exact build with the ClientHello split across segments, and watch for routing to the wrong backend or a failed match. Because the hybrid ClientHello is larger than a classical one, this path is worth testing even if your HTTPS routers work. Confirm the status of topic 29730 with Traefik before you rely on hybrid handshakes for TCP routing.
Questions operators ask about Traefik hybrid key exchange
Is Traefik quantum safe?
No product can be declared quantum safe on the strength of this page, and Traefik's documentation does not make that claim. What the sources support is narrower: the Traefik v3.5 release announced X25519MLKEM768 as a TLS curve, and the Traefik v3.8.0 source lists the hybrid curves x25519mlkem768, secp256r1mlkem768 and secp384r1mlkem1024 in its curve name map. The Traefik TLS options page checked on 2026-12-03 does not mention post-quantum or ML-KEM at all, so the vendor documentation publishes nothing on how to enable or disable these curves. Confirm the behavior of your exact build by testing the handshake in your own environment.
Which Traefik version should I run for hybrid key exchange?
The sources tie the hybrid curve name to Traefik 3.5 and later, since pull request 11731 was merged on 3 June 2025 under milestone 3.5. The latest release in the sources is v3.8.0, published 23 November 2026, and its source contains the three hybrid curve names. Run the newest release your change process allows, then confirm the curve names exist in that build. Check the Traefik GitHub releases page before you pin a version, because release notes and any later fixes will be listed there.
Does enabling post-quantum key exchange in Traefik cost extra?
The open-source Traefik Proxy has no license fee tied to these curves in the sources reviewed. The cost comes from staff time to plan the change, test handshakes with your real clients, and update the deployment that runs Traefik. Traefik Hub is a different product: its FIPS 140-3 mode requires a license that includes the FIPS feature and dedicated images, and a Traefik Labs solutions page says its validated Go module includes ML-KEM key exchange. Ask your vendor to confirm licensing for the specific edition you run before you assume the open-source path covers your need.
What breaks when Traefik negotiates a hybrid handshake?
A known issue is reported in Traefik community topic 29730: a TCP router using a HostSNI rule fails to read the SNI when the client sends an X25519MLKEM768 ClientHello that spans two TCP segments. The page names no fix version and no maintainer confirmation, so treat it as open. Other failures are most likely at clients or middleboxes that cannot handle larger ClientHello messages. Test with the clients you serve, and watch for handshake errors in your logs after the change.
How do I confirm hybrid key exchange took effect in Traefik?
Confirm it with a handshake test rather than by reading the configuration alone. Use a TLS client that reports the negotiated group, such as a recent OpenSSL build, and check whether the server selects a hybrid group. For example, run openssl s_client -connect your-host:443 -groups X25519MLKEM768 against your entrypoint, with the client build you have verified supports that group. Record the client version, the Traefik version and the negotiated group, because the result depends on all three. If the negotiated group is not hybrid, check the curve preferences in your TLS options and the Go runtime version used to build Traefik.
What should I ask Traefik about post-quantum plans before I change settings?
Ask for the documented procedure to enable and disable the hybrid curves, since the TLS options page does not cover them. Ask whether the default curve list changes with each Go version, because the Traefik source comments say the hybrids are enabled by default since Go 1.26 and go.mod declares go 1.27.0. Ask for the fix version for the HostSNI issue in topic 29730, and whether Traefik Proxy receives post-quantum changes on the same schedule as Traefik Hub. Get the answers in writing and tie them to the version you run.
Can my team enable Traefik hybrid key exchange alone, or do we need help?
A team that already runs Traefik and has TLS test tooling can often make the change alone, since the change is a configuration review, a version upgrade and handshake testing. Get outside help when the change must go through a compliance review, when many clients and middleboxes must be tested, or when Traefik sits behind a load balancer that also needs review. DeployOpen can plan and implement self-hosted Traefik deployments in your infrastructure, run the handshake testing, and prepare the evidence your compliance team asks for, under a fixed scope agreed in writing. DeployOpen does not issue audit reports or certifications; independent auditors do that.
How DeployOpen helps plan and test Traefik TLS changes
DeployOpen works on Traefik TLS changes as fixed-scope engineering work inside your own infrastructure. We start from your current entrypoint, router and ServersTransport settings, then plan, test and document any change to the curve preferences that Traefik uses for key exchange.
How we scope
- We confirm the Traefik version and the Go toolchain it was built with, since the v3.8.0 source enables hybrid curves by default only from Go 1.26.
- We list which entrypoints, routers and TCP routes terminate TLS, because an entrypoint setting does not apply to a router that has its own tls section.
- We agree the written scope, deliverables and test environment before any work starts, and we can offer ongoing support as a retainer.
How we build
- We review the curvePreferences list in your TLS options and set it explicitly only where your tests show the change is needed.
- We test the X25519MLKEM768 ClientHello against TCP routers that use HostSNI rules, since a community report describes SNI parsing failing when that ClientHello spans two TCP segments.
- We check which clients and backend connections in your environment negotiate the hybrid curve, and record the results against the exact Traefik and Go versions tested.
How we hand over
- We document each settings change with the file, entrypoint or option name, the value before and after, and the version it was tested on.
- We provide the test steps and the commands your team can rerun to confirm the handshake and the negotiated curve after each upgrade.
- We note which points the Traefik TLS options documentation does not yet cover, so your team knows what to confirm with the vendor.
How we support
- We can retest after each Traefik or Go upgrade, because the default curve behavior depends on the Go version used to build the binary.
- We can review new Traefik release notes against the settings in your deployment and report which changes need action.
- We keep the test evidence in a form your security and compliance teams can review during internal assessments.

