Distro News

Traefik Proxy 3.8 ships experimental Yaegi v2 Go plugin engine and Gateway API 1.7 support

Key Takeaway

Traefik 3.8 replaces its Go plugin interpreter with a from-scratch Yaegi v2 that uses Go's native parser and type checker, roughly doubling performance for header and regex plugins while adding per-plugin resource limits, though it remains opt-in and experimental.

Summary

Traefik Labs has released Traefik Proxy 3.8, codenamed "Salers," the newest version of its open-source cloud-native reverse proxy and load balancer. The headline change is Yaegi v2, a Go interpreter rewritten from scratch that relies on Go's native parsing and type-checking infrastructure instead of the previous custom implementation. Because of that, plugin authors can now use generics and libraries such as gRPC, Protobuf, the AWS SDK, OpenTelemetry and the Kubernetes client, and Traefik Labs reports that plugins manipulating HTTP headers or running regular expressions execute about twice as fast.

The new engine also adds per-plugin limits on execution, memory consumption and goroutines, but it is experimental and must be explicitly enabled; Yaegi v1 remains the default runtime. On the Kubernetes side, Traefik 3.8 implements Gateway API 1.7 with ListenerSet resources, listener isolation and mutual TLS for both incoming and backend connections, and lets administrators configure HTTP request timeouts, retries, traffic mirroring and CORS through standard Gateway API resources. The release further introduces a Tap middleware that captures HTTP requests and responses as JSON records for auditing or traffic analysis, adds double-wildcard matching for nested subdomains, per-router timeout controls, separate backend read and write timeouts, NTLM and Kerberos support in ForwardAuth, lower memory use in large clusters, optimized Ingress service lookups, extended backend TLS certificate validation, and fixes for three security vulnerabilities.

What changes in Traefik Proxy 3.8

  • Yaegi v2 plugin engine: The Go interpreter has been rewritten from scratch around Go's native parsing and type-checking infrastructure, which broadens language compatibility and lets plugins import generics, gRPC, Protobuf, the AWS SDK, OpenTelemetry and the Kubernetes client; Traefik Labs cites roughly 2x faster execution for plugins that manipulate HTTP headers or perform regex operations.
  • Kubernetes Gateway API 1.7: Traefik 3.8 implements ListenerSet resources, listener isolation and mutual TLS authentication for both incoming and backend connections, and allows HTTP request timeouts, retries, traffic mirroring and CORS to be configured through standard Gateway API resources rather than Traefik-specific configuration.
  • Tap middleware and routing: A new Tap middleware captures HTTP requests and responses as JSON records delivered to configurable services for auditing, compliance or traffic analysis, with the caveat that records may contain sensitive authentication headers and cookies; routing gains double-wildcard matching for nested subdomains, per-router timeout controls and separate backend read and write timeouts.
  • Operational and security fixes: ForwardAuth middleware now supports NTLM and Kerberos authentication, memory consumption is reduced in large Kubernetes clusters, Ingress service lookups are optimized, backend TLS certificate validation is extended, and three security vulnerabilities are addressed.

Why it matters

Traefik is a common ingress and edge router in Kubernetes and container deployments, so the Gateway API 1.7 work matters for platform teams trying to standardize on upstream resources instead of vendor-specific CRDs. The Yaegi v2 rewrite lowers the barrier for Go developers writing middleware plugins, since real-world libraries such as gRPC, OpenTelemetry and the Kubernetes client become usable inside the interpreter, while the new resource limits address a long-standing operational concern about runaway plugin code. The Tap middleware gives administrators a built-in capture path for compliance and debugging, but its handling of authentication headers and cookies requires careful configuration. The three vulnerability fixes make upgrading advisable for anyone exposing Traefik to untrusted traffic.

Original reference: linuxiac.com →