Blog
November 24, 2026

Traefik Proxy 3.8 "Salers" - A New Orbit for Plugins

Traefik Proxy 3.8

Traefik plugins have always made one promise: write plain Go, drop it in, and extend your proxy without a rebuild. Traefik Proxy v3.8 makes that promise complete. With Yaegi v2, a new engine written from scratch, your plugins can use the full Go language and the libraries you already know, from generics to gRPC and the AWS SDK.

Codenamed "Salers" after the farmhouse cheese from Auvergne, this release also brings Gateway API v1.7 support with many new features of the Gateway API specification, and a new tap middleware that sends a copy of your traffic to the service of your choice, without a fork and without a plugin.

Let's dig in!

Yaegi v2: A New Plugin Engine

The Context

Yaegi is the Go interpreter that runs plugins inside Traefik. Yaegi v1 has done this job for years. It was an exceptional piece of work: at the time, it was the best Go interpreter available. It implements the Go language by itself, with its own type checker. Each new Go feature (generics, iterators, min, max, clear) had to be written again by hand. Small differences with the Go compiler were hard to avoid. And native libraries that use reflect, like encoding/json or text/template, did not see the methods of interpreted types. The output could then be different from compiled Go, without an error.

These limits come from the design. To go much further, we changed the design.

The Solution

Yaegi v2 does not implement the Go language again. It uses go/parser, go/types, and the Go SSA package to understand your code, and only adds the part that runs it. The rule is simple: if your plugin is valid Go, it gives the same result in Traefik as when you compile it. Yaegi v2 is the most complete Go interpreter: on Go's own test suite, it passes more programs than any other interpreter we tested.

The numbers:

  • Language: on the Go test suite, Yaegi v2 runs 1044 of 1066 programs correctly. Yaegi v1 runs only 641. Compiled Go runs 1055: the other programs depend on the test environment. The programs that Yaegi v2 does not pass need cgo or test the internals of the Go runtime, and a few are bugs that we track. The result of each test is in the Yaegi repository.
  • Libraries: we wrote 20 test plugins on top of large libraries (gRPC, protobuf, the AWS SDK, OpenTelemetry, the Kubernetes client, and more). Yaegi v2 runs all of them with the same output as a compiled build.
  • Speed: plugins that work on headers or regular expressions are about two times faster.
  • Safety: each plugin has an execution budget, a goroutine limit, and a memory quota. os.Exit, log.Fatal and panics in plugin goroutines do not stop Traefik.

Yaegi v2 is experimental and opt-in. Yaegi v1 stays the default. To run all your Yaegi plugins with the new engine, add this to the static configuration:

experimental:
  defaultRuntimeVersion: v2

A plugin author can also ask for Yaegi v2 in the plugin manifest (.traefik.yml):

runtimeVersion: v2

Thanks to @juliens for this work (#14276).

Why You Should Care

A whole class of plugins becomes possible: plugins that use the same libraries as any other Go program. And a plugin that Yaegi v2 cannot run fails when Traefik starts, not on a request in production. The best test is your own plugins: enable Yaegi v2 on a test instance and compare. The full story, with the benchmarks and the internals, is in the dedicated blog post.

Gateway API v1.7: More of the Spec, Out of the Box

The Context

Gateway API is the standard for Kubernetes networking, and it moves fast. Each version brings features that teams used to get only through vendor annotations or custom resources. Your proxy must keep up, or your manifests stop being portable.

What v3.8 Brings

Traefik v3.8 supports Gateway API v1.7.0 (#14204 by @rtribotte), and adds many features of the specification:

  • ListenerSet (#12909 by @mydoomfr): teams attach their own listeners and certificates to a shared Gateway, from their own namespace.
  • Listener isolation (#13738): a request is only served by the routes of the listener that matches it best, and a misdirected request gets a 421.
  • mTLS on both sides: client certificate validation on the Gateway (#14129 by @gndz07), and a Gateway client certificate presented to the backends (#14119 by @nmengin).
  • HTTPRoute timeouts, retry, mirroring, and CORS (#13537, #14130, #14127, #14123, #13437).
  • BackendTLSPolicy everywhere: for TLSRoute (#13332) and gRPC backends (#13265 by @KirylJazzSax), with SAN validation (#13249) and ClusterTrustBundle references (#13410, both by @aliamerj).
  • GatewayClass selection (#14029 by @kevinpollet): a new gatewayClass option selects the GatewayClass to watch by name.

Here is an HTTPRoute that uses the new timeouts and retry support, with no Traefik-specific resource:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: checkout
spec:
  parentRefs:
    - name: traefik-gateway
  hostnames:
    - shop.example.com
  rules:
    - backendRefs:
        - name: checkout
          port: 8080
      timeouts:
        request: 10s
        backendRequest: 2s
      retry:
        attempts: 3
        backoff: 100ms

Why You Should Care

Timeouts, retries, CORS, mirroring, and mTLS are now fields of the standard Gateway API resources. You do not need a Traefik Middleware or an annotation for them, and your manifests stay portable. One thing to do before you upgrade: update the Gateway API CRDs to v1.7.0 and the RBAC rules, as the migration guide describes.

Tap Middleware: A Copy of Your Traffic, Where You Want It

The Problem

Some teams must keep a record of the full exchanges that go through the proxy: for an audit trail, for compliance, or to feed an analysis pipeline. Until now, this meant a fork of Traefik, or a plugin that embeds the client of your sink (Kafka, an audit store) in the proxy process.

The Solution

The new tap middleware (#13962) sends copies of requests and responses to Traefik services as JSON records. The destinations are ordinary Traefik services, so they get load balancing, health checks, and serversTransport options like any other service.

http:
  middlewares:
    audit-tap:
      tap:
        request:
          service: audit-requests
          path: /records/requests
          recordBody: true
          maxRecordBodySize: 4096
          rejectOnRecordError: true
        response:
          service: audit-responses
          path: /records/responses
          requestHeaders:
            - X-Request-Id

Requests and responses are two separate records, each sent to its own service, so you can consume and scale the two streams independently. With rejectOnRecordError, Traefik rejects a request when its record cannot be sent: no record, no traffic. You set this per direction.

The tap middleware is different from the Mirroring service. Mirroring replays requests to another service as real traffic. Tap replays nothing: it sends a description of the exchange, response included.

Why You Should Care

The code that talks to your sink stays out of the proxy. You deploy it, scale it, and update it on its own. One caution: the records carry the headers as they go through Traefik, including Authorization and Cookie. Treat the tap services and their storage as systems that hold production secrets.

More Goodies

Routing and timeouts

  • [Rules] Host(`**.example.com`) matches all the subdomains, nested ones included. (#13882 by @rtribotte)
  • [Routers] Per-router respondingTimeouts.roundTrip bounds the whole client transaction on one route, for all providers. (#13537 by @sdelicata)
  • [ServersTransport] New readTimeout and writeTimeout forwarding timeouts. (#12716 by @LBF38)

Middlewares

  • [CircuitBreaker] A minimum number of requests before the circuit can open. (#13459 by @hanxiantao)
  • [Buffering] disableRequestBuffer and disableResponseBuffer options. (#13029 by @zalbiraw)
  • [ForwardAuth] NTLM and Kerberos authentication support. (#14084 by @juliens)

Kubernetes

  • [CRD] A plugin configuration can reference a ConfigMap with urn:k8s:configmap:. (#14118)
  • [Ingress NGINX] limit-allowlist annotation (#12918 by @foxcool), disableHTTPEntryPoint option (#13354 by @sinashahoveisi), and optional X-Forwarded-Scheme and X-Scheme headers (#12914 by @qwerty8811).
  • [Ingress] reportNodeInternalIPs option for the Ingress status (#12920 by @qwerty8811), and fewer service lookups when paths share a backend (#13407 by @nandorKollar).
  • [Performance] Informers strip managedFields, lowering memory use on large clusters. (#13396 by @kevinpollet)

TLS and ACME

  • [ACME] New reusePrivateKey option. (#13004 by @ldez)
  • [ServersTransport] peerCertSANs validates the SANs of backend certificates, and replaces peerCertURI. (#13249 by @aliamerj)

Observability

  • [Metrics] QUERY is now a recognized HTTP method in the metrics labels. (#13667 by @Nelwhix)
  • [OpenTelemetry] The OTel resource is built once and shared. (#13923 by @kasader)

Read the migration guide before you upgrade.

A Toast to Our Community

Traefik v3.8 contains the work of more than a hundred contributors. Special thanks to @mydoomfr, @aliamerj, @KirylJazzSax, @hanxiantao, @foxcool, @qwerty8811, @sinashahoveisi, @Nelwhix, @kasader and @zalbiraw for their features, and to everyone who fixed a bug, corrected a doc page or reported an issue.

We also welcome three new maintainers: @LBF38, @amazon7737 and @nandorKollar.

With 65k+ GitHub stars and billions of downloads, Traefik is what it is because of you. Thank you.

Essential Resources and Next Steps

About the Author

Emile Vauge is the founder & CTO of Traefik Labs. After creating Traefik Proxy, the OSS ingress controller with 3.5B downloads & 65k GitHub stars, Emile is helping transform the industry, yet again, with Traefik's code-first API management solution.

Latest from Traefik Labs

Introducing Yaegi v2, the Most Complete Go Interpreter
Blog

Introducing Yaegi v2, the Most Complete Go Interpreter

Read more
Java4Shell: Buy Time with a WAF, Then Update the JDK
Blog

Java4Shell: Buy Time with a WAF, Then Update the JDK

Read more
The EU Cyber Resilience Act and Your Infrastructure Layer
Report

The EU Cyber Resilience Act and Your Infrastructure Layer

Read more