Traefik 3.8.0 upgrade: breaking changes for Gateway API users

released
lab run
upgraded from
3.7.18
guest
Ubuntu 26.04 VM
tested
yes, in our lab

Summary

Traefik 3.8.0 is a large feature release. The notes list new features and a long list of fixes. Many of the fixes are security hardening and Kubernetes provider fixes.

Highlights from the release notes:

  • A new tap middleware that sends copies of requests and responses to a service.
  • Per-router responding timeouts.
  • disableRequestBuffer and disableResponseBuffer options for the buffering middleware.
  • A ** wildcard in Host and HostSNI rules.
  • Gateway API: ListenerSet, retry, request mirror and CORS filter support.
  • Yaegi v2 as an experimental plugin runtime.
  • Options for maximum request header size and header value count, and for dropping request headers with underscores.

Breaking changes and deprecations

Reported in the v3.8.0 migration guide. We did not test the Kubernetes items.

  • Gateway API: CRDs must be updated to v1.7.0. TCPRoute manifests using v1alpha2 are rejected and must use v1.
  • Gateway API: experimentalChannel no longer enables TCPRoute. It now only enables listener filters.
  • Gateway API: Listeners with filters that cannot be applied are now rejected. Before, those filters were ignored.
  • Gateway API: Each HTTPS listener gets its own TLS options, so default TLS options no longer apply to those listeners.
  • Gateway API: labelSelector is deprecated in favour of the new gatewayClass option. Setting both is an error.
  • Gateway API: ListenerSet and ClusterTrustBundle support need extra RBAC rules.
  • CRD provider: CRDs must be updated for the new fields. urn:k8s:configmap: strings in plugin configuration are now replaced with the ConfigMap value.
  • ServersTransport: peerCertURI is deprecated. Use peerCertSANs.
  • Ingress-NGINX provider: Each host gets its own TLS option, so default TLS settings no longer apply to Ingress hosts.
  • BasicAuth: Passwords longer than 1024 bytes are rejected with 401. The limit cannot be changed.
  • Dot-segments: With sanitizePath on (the default), .., . or empty segments with path parameters are resolved like plain dot-segments. The guide’s example: /foo/..;bar/baz is forwarded as /baz.
  • ACME: Routers using the new **. wildcard get no certificate, because ACME resolvers reject those domains.

The guide says the BasicAuth, dot-segment and Ingress-NGINX items also shipped in v3.7.18. If you come from an older 3.7.x release, read the 3.7.x sections too. They include 501 for all CONNECT requests (3.7.15) and 431 for requests with more than 500 header values (3.7.17).

Tested in our lab

Setup: Docker Compose, Traefik with the Docker provider, one traefik/whoami backend behind a BasicAuth middleware, plain HTTP, dashboard/API on port 8080. This is a small setup. It does not cover Kubernetes, Gateway API, TLS or ACME, the new middleware, or plugins.

  • Baseline on 3.7.18: worked. No auth gave 401, correct credentials gave 200, and the log had no errors.
  • Docker image: at the time of the test, the traefik:v3.8.0, traefik:3.8.0 and traefik:3.8 tags did not exist on Docker Hub. The latest tag was still 3.7.19. So we could not do the usual image-tag upgrade.
  • Upgrade: we stopped the stack cleanly, then ran the official traefik_v3.8.0_linux_amd64 binary from the GitHub release with the same static options. The backend container stayed as it was. This tests 3.8.0 with the same config, not a Docker image swap.
  • After upgrade: the API reported 3.8.0. The router from Docker labels was picked up. Auth results were the same as before (401 without credentials or with a wrong password, 200 with the right ones). There were no error lines in the log.
  • Dot-segments: /foo/..;bar/baz reached the backend as GET /baz, as the migration guide describes.
  • CONNECT: a CONNECT request returned 501, as the guide describes for v3.7.15 and later.
  • Not shown: our long-password request got 401, but it used a wrong password anyway. It does not prove the 1024-byte limit.

Lab log

$ docker compose up -d
[...]
$ curl -s localhost:8080/api/version
{"Version":"3.7.18","Codename":"langres","startDate":"2026-11-23T20:04:05.826604409Z"}
$ curl -s -o /dev/null -w "noauth %{http_code}\n" -H "Host: who.example.test" localhost/
noauth 401
$ curl -s -o /dev/null -w "auth %{http_code}\n" -u test:test -H "Host: who.example.test" localhost/
auth 200
$ docker compose stop
 Container t-traefik-1  Stopping
 Container t-traefik-1  Stopped
 Container t-whoami-1  Stopped
$ docker pull traefik:3.8.0
Error response from daemon: failed to resolve reference "docker.io/library/traefik:3.8.0": docker.io/library/traefik:3.8.0: not found
$ docker run --rm traefik:latest version
Version:      3.7.19
[...]
$ ./traefik version
Version:      3.8.0
Codename:     salers
Go version:   go1.27.4
$ curl -s localhost:8080/api/version
{"Version":"3.8.0","Codename":"salers","startDate":"2026-11-23T20:04:42.52558305Z"}
$ curl -s -o /dev/null -w "noauth %{http_code}\n" -H "Host: who.example.test" localhost/
noauth 401
$ curl -s -o /dev/null -w "auth %{http_code}\n" -u test:test -H "Host: who.example.test" localhost/
auth 200
$ curl -s -o /dev/null -w "wrongpw %{http_code}\n" -u test:bad -H "Host: who.example.test" localhost/
wrongpw 401
$ curl -s --path-as-is -u test:test -H "Host: who.example.test" "localhost/foo/..;bar/baz" | grep -i "^GET"
GET /baz HTTP/1.1
$ curl -s -o /dev/null -w "connect %{http_code}\n" -X CONNECT -H "Host: who.example.test" localhost/
connect 501

Reported by others

Nothing beyond the release notes and the migration guide. We did not review issues or forum posts.

Verdict

Wait. For a simple Docker or file-provider setup, 3.8.0 ran our test config the same as 3.7.18. But the official Docker image tag was not on Docker Hub when we tested, so check it exists before you change your compose file. If you use Gateway API, the CRD update to v1.7.0, the new RBAC rules and the changed TLS and listener behaviour mean you should read the migration guide and try it on a non-production cluster first. If you only need the security fixes, the guide says some of them are also in 3.7.18.

sources