A Regression-Test Checklist for Custom Go Middleware Before Upgrading to Traefik 3.8

A Regression-Test Checklist for Custom Go Middleware Before Upgrading to Traefik 3.8

pr0h0••35 min read•coding
AI Usage (82%)
On this page

Introduction: Treat the Traefik 3.8 Plugin-Engine Redesign as a Middleware Compatibility Boundary

This is a regression-test checklist for teams running custom Go middleware on Traefik who are evaluating an upgrade to 3.8. On November 29, 2026, Linuxiac published a report titled "Traefik Proxy 3.8 Released with a Redesigned Go Plugin Engine." That headline is the entire public signal I have for this release. A version number, a plugin-engine redesign as the central change, and nothing else I can independently verify from where I'm sitting. I want to say that plainly up front, because the rest of this post is a test plan, and a test plan built on unverified release-note details is worse than no plan.

So the checklist below is deliberately internals-agnostic. It does not assume I know what changed inside the plugin engine, what Go features are now supported, or which configuration keys moved. It assumes one thing that holds for every proxy upgrade: your middleware either behaves identically or it doesn't, and the only way to know is to exercise it.

State the technical position: successful startup and passing native Go tests do not prove middleware compatibility inside Traefik

If you take one thing from this post, take this:

A Traefik plugin that loads cleanly and passes its own Go test suite is not evidence that it works inside Traefik.

Two independent reasons.

First, Traefik plugins are not compiled into the binary. They run under Yaegi, an embedded Go interpreter. The official plugin documentation says so directly: plugins are Go programs executed by an interpreter, which is why the docs carry restrictions on imports, CGO, and some language constructs. Plugin behavior is therefore a function of the source you wrote and the interpreter version bundled into the Traefik image. Swap the engine and you've swapped the interpreter.

Second, go test runs your middleware in a compiled process with your Go toolchain, your net/http, and your scheduler. Not Traefik's process, not Traefik's goroutine topology, not behind Traefik's ReverseProxy, not with Traefik's ResponseWriter, and not through Traefik's config decode path into your Config struct. Passing tests prove your logic is sound. They don't prove your logic is reached, or reached with the same inputs.

I've been burned by the softer version of this. Middleware that logged "plugin initialized" at startup, served fine in staging, then quietly stopped mutating one header after an upgrade because a config field name stopped decoding. Nothing crashed. The golden tests "passed" because I'd regenerated the goldens against the new build. That failure mode is what this harness is meant to catch.

Define what this checklist produces: a pinned before/after regression harness, behavioral matrix, performance comparison, and upgrade gate

By the end of this post you will have:

  1. A frozen baseline — image digest, plugin revision, config, environment — recorded before you touch anything.
  2. A reproducible two-stack harness — baseline and candidate running simultaneously on different ports, identical fixtures, identical backend.
  3. Five gates with concrete assertions: configuration, request semantics, response semantics, concurrency and failure paths, performance.
  4. A JSON artifact format so baseline and candidate results can be diffed mechanically instead of eyeballed.
  5. An evidence table and a rollback unit so the decision is explicit rather than a Slack vote.

Confirmed versus inferred, stated once here so it doesn't clutter every section:

ClaimStatus
Traefik Proxy 3.8 was released with a redesigned Go plugin engineReported by Linuxiac, Nov 29 2026 — not independently verified by me
Traefik plugins execute under the Yaegi interpreterConfirmed — stated in official Traefik plugin documentation
Interpreter-level execution means an engine change can alter plugin behaviorConfirmed as a mechanism; which behaviors changed in 3.8 is unknown
3.8 contains breaking changes, performance improvements, or new Go feature supportUntested and unverified — do not assume any of these

Everything below is written to work regardless of which of those rows turns out to be true.

Establish What Is Known About the Traefik 3.8 Plugin-Engine Change

Attribute the redesign claim to the supplied Linuxiac report dated November 29, 2026, and separate it from independently verified release details

The report is where the redesign claim comes from. It's a reasonable trigger to start an upgrade evaluation. It is not a migration guide, and it isn't a substitute for the release notes.

What I have is one line: a redesign of the Go plugin engine. What I don't have, and won't invent:

  • the specific Yaegi version bump, if any
  • a list of newly supported or newly broken Go language features
  • changes to experimental.plugins or experimental.localPlugins config shape
  • the plugin catalog hosting semantics or versioning rules
  • any performance number
  • any CVE, advisory, or security scope
  • the tag or digest of the 3.8 image

If you find a checklist elsewhere that confidently lists these, check where it came from before planning around it.

⚠️

Do not build your upgrade gate on a secondhand summary of a redesign. Read the release notes and migration guidance for the exact patch version you intend to run, and record what you read (URL and date) next to the pinned digest.

Verify the official release notes, migration guidance, and plugin documentation before asserting engine internals, supported Go features, or required configuration changes

Before running anything, spend thirty minutes on primary sources and write down answers to these questions. The blank answers turn out to matter as much as the filled ones.

## Record the sources you actually read, with the date you read them.
mkdir -p upgrade-notes
printf 'read %s\n  %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "<release-notes-url>" >> upgrade-notes/sources.txt
printf 'read %s\n  %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "<migration-guide-url>" >> upgrade-notes/sources.txt
printf 'read %s\n  %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "<plugin-docs-url>" >> upgrade-notes/sources.txt

Questions to answer from the official sources, not from memory:

  1. Does the release notes page mention plugins at all, and does it enumerate behavior changes or only describe architecture?
  2. Does the migration guide require any config change for experimental.plugins or experimental.localPlugins?
  3. Does the plugin documentation state a supported language subset, and does it differ from the version you last read?
  4. Is there a documented minimum plugin revision, or an announced catalog change?
  5. Is there a documented rollback caution — for example, a config or data-format change that is not backward compatible?

If the answer to (1) is "the notes describe an architecture change without per-behavior detail," that is your answer. The behavioral detail has to come from your own tests. That is the whole justification for this harness.

Record unresolved compatibility questions rather than inventing affected versions, breaking changes, or performance benefits

Keep an open-questions file in the repo. It ships, legitimately, with unknowns.

<!-- upgrade-notes/open-questions.md -->
## Traefik 3.8 plugin-engine — unresolved

- [ ] Does the interpreter accept `sync/atomic` intrinsics used in middleware.go? (untested)
- [ ] Does `Config` decoding still tolerate unknown YAML keys, or does it now fail? (unknown)
- [ ] Are plugin errors at init still surfaced as "plugin not found" or as a distinct error? (unknown)
- [ ] Is local-plugin source mounting still `/plugins-local/src/<moduleName>`? (appears unchanged per docs, not tested on 3.8)
- [ ] Does `ResponseWriter` wrapping still pass through `http.Flusher` for SSE? (untested)

Marking "untested" is not weakness. It tells the next engineer where to look when something breaks, and it stops someone from writing "3.8 is 15% faster" in a status doc based on vibes.

Inventory Custom Middleware and Freeze the Baseline Before Upgrading

Record the current Traefik image digest, exact 3.8 candidate, plugin revision, dependencies, configuration, and execution environment

Freeze before you test. A baseline you can't reproduce is a rumor.

## Run these against the environment you are on TODAY, before upgrading.
{
  echo "captured: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
  echo "traefik-digest: $(docker image inspect "$TRAEFIK_IMAGE" --format '{{index .RepoDigests 0}}')"
  echo "go-version: $(go version)"
  echo "uname: $(uname -srm)"
  echo "docker: $(docker version --format '{{.Server.Version}}')"
  echo "plugin-rev: $(git -C . rev-parse HEAD)"
  git -C . status --porcelain
} | tee upgrade-notes/baseline.env

Pin the plugin by commit SHA in a file the harness reads, so "which plugin?" is never ambiguous:

## plugin.lock
## Commit of the middleware source under test. Bump deliberately, never implicitly.
PLUGIN_COMMIT=<40-char-sha>

Deliberate omission: the image tags and digests above are placeholders. I'm not guessing Traefik version numbers or digests for you to copy. Record your own — that's the whole point of the step. The candidate is whatever exact 3.8 patch tag your team has approved, pinned by digest, not by a floating 3.8 tag.

Map middleware order, router attachments, configuration defaults, backend assumptions, and request mutations

Write this down as a table before you look at any code. It forces you to notice coupling you've forgotten about.

PropertyValue in our deployment
Middleware chain orderrate-limit → hackyjs → forwardauth (outermost first)
Routers attaching hackyjs3 of 11 (all /api/* routers)
Config suppliedrequireHeader, maxBodyBytes, injectHeader, denyStatusCode
Config defaults relied uponmaxBodyBytes must default to 1 MiB if omitted
Request mutationsadds X-Hackyjs-Middleware, X-Hackyjs-Body-Sha256, X-Hackyjs-Observed-At
Backend assumptionbackend re-reads body; middleware must fully restore it
Short-circuit behaviordeny with 403 before the backend sees the request
Outbound callsnone

The hackyjs fields above are the fixture middleware used throughout this post — a stand-in for whatever your real one does. Substitute your own mutations, but keep the categories.

Identify engine-sensitive code paths: imports, reflection, interfaces, package initialization, goroutines, and shared state without presuming which features changed

This is the part where people assume too much. Don't. You aren't predicting what broke. You're listing the surfaces where an interpreter change plausibly matters, so the harness covers them.

SurfaceWhy it's engine-sensitiveCovered in this harness by
Package-level func init()interpreter initialization orderGate 1 startup assertion
Reflection / struct tagspartial reflection support in interpretersGate 1 config decode matrix
Interface satisfaction (http.Flusher, http.Hijacker)type assertion results can differGate 3 flush/upgrade tests
sync/atomic, sync.Mapintrinsics and special-casingGate 4 concurrency + race detector
Goroutines spawned per requestscheduling and lifecycleGate 4 goroutine trend
Shared mutable stateisolation between requestsGate 4 identity-contamination test
Non-stdlib importsinterpreter module resolutionGate 1 startup

Grep your plugin for each:

grep -rn "func init()" --include="*.go" plugin/ || echo "no package init"
grep -rn "reflect\." --include="*.go" plugin/ || echo "no reflection"
grep -rn "\.(http.Flusher)\|\.(http.Hijacker)" --include="*.go" plugin/ || echo "no interface upgrades"
grep -rn '"github.com/\|"golang.org/' --include="*.go" plugin/ | grep -v traefik-fixture || echo "no third-party imports"

Every hit is a line item in Gate 1 or Gate 3. No hits doesn't mean you're safe. It means your search terms missed something, so read the files too.

Build a Reproducible Before-and-After Regression-Test Harness

Outline a complete fixture project with pinned Traefik services, the custom Go plugin, an instrumented Go backend, and a Go HTTP test driver

traefik-plugin-gate/
├── compose.yaml
├── .env.baseline          # TRAEFIK_IMAGE, COMPOSE_PROJECT_NAME, HOST_PORT
├── .env.candidate         # same keys, different values
├── plugin/
│   └── traefik-fixture/
│       ├── go.mod
│       └── middleware.go
├── dynamic/
│   └── middleware.yaml
├── backend/
│   └── main.go
└── driver/
    ├── main.go
    └── cases.go

The fixture middleware. Note the shape: CreateConfig, New with the standard signature, and a Config with JSON tags.

plugin/traefik-fixture/middleware.go
// Package name intentionally matches the module path convention Traefik expects
// for local plugins: every non-alphanumeric rune becomes an underscore.
package traefik_fixture

"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"net/http"
"strconv"
"strings"
"sync/atomic"
"time"
)

type Config struct {
RequireHeader  string `json:"requireHeader,omitempty"`
MaxBodyBytes   int64  `json:"maxBodyBytes,omitempty"`
InjectHeader   string `json:"injectHeader,omitempty"`
DenyStatusCode int    `json:"denyStatusCode,omitempty"`
}

func CreateConfig() *Config {
// Defaults the deployment relies on. Gate 1 asserts these.
return &Config{
	MaxBodyBytes:   1 << 20,
	InjectHeader:   "X-Fixture-Middleware",
	DenyStatusCode: http.StatusForbidden,
}
}

type Fixture struct {
next    http.Handler
name    string
cfg     *Config
served  int64
}

func New(ctx context.Context, next http.Handler, cfg *Config, name string) (http.Handler, error) {
if next == nil {
	return nil, fmt.Errorf("%s: next handler is nil", name)
}
if cfg.MaxBodyBytes <= 0 {
	return nil, fmt.Errorf("%s: maxBodyBytes must be positive, got %d", name, cfg.MaxBodyBytes)
}
if cfg.DenyStatusCode < 300 || cfg.DenyStatusCode > 599 {
	return nil, fmt.Errorf("%s: denyStatusCode out of range: %d", name, cfg.DenyStatusCode)
}
return &Fixture{next: next, name: name, cfg: cfg, served: 0}, nil
}

func (f *Fixture) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
n := atomic.AddInt64(&f.served, 1)

if f.cfg.RequireHeader != "" && req.Header.Get(f.cfg.RequireHeader) == "" {
	rw.Header().Set("X-Fixture-Deny", "missing:"+strings.ToLower(f.cfg.RequireHeader))
	rw.WriteHeader(f.cfg.DenyStatusCode)
	return
}

body, err := io.ReadAll(io.LimitReader(req.Body, f.cfg.MaxBodyBytes))
if err != nil {
	http.Error(rw, "body read failed", http.StatusBadRequest)
	return
}
// Restore the body so the backend sees byte-identical input.
req.Body = io.NopCloser(bytes.NewReader(body))

sum := sha256.Sum256(body)
req.Header.Set(f.cfg.InjectHeader, strconv.FormatInt(n, 10))
req.Header.Set("X-Fixture-Body-Sha256", hex.EncodeToString(sum[:]))
req.Header.Set("X-Fixture-Observed-At", time.Now().UTC().Format(time.RFC3339Nano))

f.next.ServeHTTP(rw, req)
}

The instrumented backend exposes traffic on :9000 and an out-of-band observability mux on :9001, so reading counters never pollutes the counters.

backend/main.go
package main

"crypto/sha256"
"encoding/hex"
"encoding/json"
"io"
"log"
"net/http"
"sync"
"sync/atomic"
"time"
)

type Obs struct {
Method     string              `json:"method"`
Path       string              `json:"path"`
RawQuery   string              `json:"rawQuery"`
Headers    map[string][]string `json:"headers"`
BodyBytes  int                 `json:"bodyBytes"`
BodySHA256 string              `json:"bodySha256"`
RemoteAddr string              `json:"remoteAddr"`
}

var (
mu    sync.Mutex
last  = map[string]Obs{}
calls int64
)

func capture(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/slow" {
	select {
	case <-time.After(3 * time.Second):
	case <-r.Context().Done():
		return // client or proxy cancelled; do not write a response
	}
}
w.Header().Set("X-Backend", "fixture")
w.WriteHeader(http.StatusOK)
io.WriteString(w, "ok")
}

func trafficHandler(w http.ResponseWriter, r *http.Request) {
body, _ := io.ReadAll(r.Body)
sum := sha256.Sum256(body)
key := r.Header.Get("X-Fixture-Case")

mu.Lock()
calls++
last[key] = Obs{
	Method:     r.Method,
	Path:       r.URL.EscapedPath(),
	RawQuery:   r.URL.RawQuery,
	Headers:    r.Header.Clone(),
	BodyBytes:  len(body),
	BodySHA256: hex.EncodeToString(sum[:]),
	RemoteAddr: r.RemoteAddr,
}
mu.Unlock()

capture(w, r)
}

func main() {
obsMux := http.NewServeMux()
obsMux.HandleFunc("/__obs", func(w http.ResponseWriter, r *http.Request) {
	mu.Lock()
	out := struct {
		Calls int            `+"`json:"calls"`"+`
		Last  map[string]Obs `+"`json:"last"`"+`
	}{Calls: atomic.SwapInt64(&calls, 0), Last: last}
	last = map[string]Obs{}
	mu.Unlock()
	w.Header().Set("Content-Type", "application/json")
	json.NewEncoder(w).Encode(out)
})
go func() { log.Fatal(http.ListenAndServe(":9001", obsMux)) }()

http.HandleFunc("/", trafficHandler)
log.Fatal(http.ListenAndServe(":9000", nil))
}

Compose, with two routers so you get a plugin-free control path in the same stack:

compose.yaml
name: ${COMPOSE_PROJECT_NAME:?set COMPOSE_PROJECT_NAME}

services:
traefik:
  image: ${TRAEFIK_IMAGE:?set TRAEFIK_IMAGE to a digest-pinned ref}
  command:
    - --global.checkNewVersion=false
    - --global.sendAnonymousUsage=false
    - --log.level=INFO
    - --accesslog=true
    - --ping=true
    - --ping.entryPoint=traefik
    - --entrypoints.web.address=:80
    - --entrypoints.traefik.address=:8080
    - --providers.file.directory=/etc/traefik/dynamic
    - --providers.file.watch=false
    - --experimental.localPlugins.fixture.moduleName=github.com/hackyjs/traefik-fixture
  ports:
    - "127.0.0.1:${HOST_PORT}:80"
    - "127.0.0.1:${DASH_PORT}:8080"
  volumes:
    - ./dynamic:/etc/traefik/dynamic:ro
    - ./plugin/traefik-fixture:/plugins-local/src/github.com/hackyjs/traefik-fixture:ro
  healthcheck:
    test: ["CMD", "traefik", "healthcheck", "--ping"]
    interval: 2s
    timeout: 2s
    retries: 15
  depends_on:
    backend:
      condition: service_started

backend:
  build: ./backend
  environment:
    - GOMAXPROCS=2
  ports:
    - "127.0.0.1:${OBS_PORT}:9001"
## dynamic/middleware.yaml
http:
  routers:
    fixture:
      rule: "PathPrefix(`/fixture`)"
      entryPoints: ["web"]
      service: fixture-backend
      middlewares: ["fixture@file"]
    control:
      rule: "PathPrefix(`/control`)"
      entryPoints: ["web"]
      service: fixture-backend
  middlewares:
    fixture:
      plugin:
        fixture:
          requireHeader: "X-Fixture-Key"
          maxBodyBytes: 1048576
          injectHeader: "X-Fixture-Middleware"
          denyStatusCode: 403
  services:
    fixture-backend:
      loadBalancer:
        servers:
          - url: "http://backend:9000"

.env.baseline and .env.candidate differ in exactly three values:

## .env.baseline — placeholder structure; fill from your own inventory
COMPOSE_PROJECT_NAME=gate-baseline
TRAEFIK_IMAGE=<current-image-ref>@sha256:<digest-from-baseline.env>
HOST_PORT=8081
DASH_PORT=8091
OBS_PORT=9101
## .env.candidate
COMPOSE_PROJECT_NAME=gate-candidate
TRAEFIK_IMAGE=<approved-3.8-image-ref>@sha256:<digest-you-recorded>
HOST_PORT=8082
DASH_PORT=8092
OBS_PORT=9102

Route identical fixtures through baseline and candidate deployments while keeping entrypoints, backend behavior, and middleware order equivalent

The two stacks must differ only in the Traefik image. Same dynamic/middleware.yaml, same plugin source, same backend binary, same Go client, same concurrency. If you also "clean up" the config while upgrading, you can no longer attribute a failure.

Add bounded startup checks, backend-call counters, sanitized logs, and commands for starting, testing, and removing the isolated environment

set -euo pipefail

up() {
  docker compose --env-file ".env.$1" up -d --build --wait --wait-timeout 90
}

down() {
  docker compose --env-file ".env.$1" down -v --remove-orphans
}

run_driver() {
  local env=$1 base=$2 obs=$3
  go run ./driver -base "$base" -obs "$obs" -out "artifacts/$env.json"
}

mkdir -p artifacts

up baseline
up candidate
run_driver baseline  http://127.0.0.1:8081 http://127.0.0.1:9101
run_driver candidate http://127.0.0.1:8082 http://127.0.0.1:9102

--wait plus the traefik healthcheck --ping healthcheck gives you a bounded startup check — the harness fails fast instead of hanging or, worse, testing a container that is up but not serving.

Sanitize logs before storing them. Access logs and plugin logs can carry cookies and auth headers.

docker compose --env-file .env.candidate logs --no-color traefik \
  | sed -E 's/(Cookie|Authorization|X-Fixture-Key): [^ "]*/\1: [redacted]/g' \
  > artifacts/candidate-traefik.log

Capture comparable JSON artifacts containing case names, status codes, selected headers, body hashes, backend observations, and failures

The driver must emit stable fields. Anything non-deterministic — timestamps, durations from the golden comparison, request IDs — gets stored alongside the artifact, not inside the values you diff.

driver/main.go (trimmed for brevity — full error handling omitted)
package main

"bytes"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"flag"
"io"
"net/http"
"os"
"sort"
"time"
)

type Result struct {
Case            string            `+"`json:"case"`"+`
StatusCode      int               `+"`json:"status"`"+`
StableHeaders   map[string]string `+"`json:"stableHeaders"`"+`
BodySHA256      string            `+"`json:"bodySha256"`"+`
BodyBytes       int               `+"`json:"bodyBytes"`"+`
BackendCalls    int               `+"`json:"backendCalls"`"+`
BackendPath     string            `+"`json:"backendPath"`"+`
BackendBodyHash string            `+"`json:"backendBodySha256"`"+`
Error           string            `+"`json:"error,omitempty"`"+`
}

// Only headers whose value is deterministic belong here.
var stableHeaderNames = []string{
"X-Backend", "X-Fixture-Middleware", "X-Fixture-Deny", "Location", "Content-Type",
}

func main() {
base := flag.String("base", "http://127.0.0.1:8081", "proxy entrypoint")
obs := flag.String("obs", "http://127.0.0.1:9101", "backend observability port")
out := flag.String("out", "artifacts/results.json", "artifact path")
flag.Parse()

client := &http.Client{
	Timeout: 20 * time.Second,
	CheckRedirect: func(*http.Request, []*http.Request) error {
		return http.ErrUseLastResponse // assert on the redirect itself
	},
}

results := make([]Result, 0, len(cases))
for _, c := range cases {
	results = append(results, runCase(client, *base, *obs, c))
}
sort.SliceStable(results, func(i, j int) bool { return results[i].Case < results[j].Case })

f, err := os.Create(*out)
if err != nil {
	panic(err)
}
defer f.Close()
enc := json.NewEncoder(f)
enc.SetIndent("", "  ")
if err := enc.Encode(results); err != nil {
	panic(err)
}
}

func runCase(client *http.Client, base, obs string, c Case) Result {
req, err := http.NewRequest(c.Method, base+c.Path, bytes.NewReader([]byte(c.Body)))
if err != nil {
	return Result{Case: c.Name, Error: err.Error()}
}
for k, v := range c.Headers {
	req.Header.Set(k, v)
}
req.Header.Set("X-Fixture-Case", c.Name)

resp, err := client.Do(req)
if err != nil {
	return Result{Case: c.Name, Error: err.Error()}
}
defer resp.Body.Close()

body, err := io.ReadAll(resp.Body)
if err != nil {
	return Result{Case: c.Name, StatusCode: resp.StatusCode, Error: err.Error()}
}
sum := sha256.Sum256(body)

res := Result{
	Case:          c.Name,
	StatusCode:    resp.StatusCode,
	StableHeaders: map[string]string{},
	BodySHA256:    hex.EncodeToString(sum[:]),
	BodyBytes:     len(body),
}
for _, h := range stableHeaderNames {
	if v := resp.Header.Get(h); v != "" {
		res.StableHeaders[h] = v
	}
}

// Out-of-band counter read: does not increment the backend call count.
if o, err := readObs(client, obs, c.Name); err == nil {
	res.BackendCalls = o.Calls
	if got, ok := o.Last[c.Name]; ok {
		res.BackendPath = got.Path
		res.BackendBodyHash = got.BodySHA256
	}
}
return res
}

Gate One: Verify Plugin Loading and Configuration Decode

Confirm plugin registration, initialization, and router attachment with a deterministic behavioral assertion rather than startup logs alone

--log.level=INFO printing a plugin-loaded line is a log, not an assertion. The assertion is: a request through the fixture router comes back with X-Fixture-Middleware set, and the same request through the control router does not.

curl -sS -D - -o /dev/null \
  -H 'X-Fixture-Key: k' \
  http://127.0.0.1:8082/fixture/echo | grep -i '^x-fixture-middleware'

## Expect: X-Fixture-Middleware: 1
curl -sS -D - -o /dev/null \
  -H 'X-Fixture-Key: k' \
  http://127.0.0.1:8082/control/echo | grep -ci '^x-fixture-middleware' || true

## Expect: 0

If the control path also returns the header, your middleware is attached to something you didn't intend, or you're hitting the wrong router. Either way, stop — every later gate is measuring the wrong thing.

Initialize-time failure deserves its own assertion. Remove the plugin source mount and confirm the failure mode is distinguishable from a config error:

## untested against 3.8 — record whatever this actually prints
docker compose --env-file .env.candidate run --rm --no-deps \
  -v /dev/null:/plugins-local/src/github.com/hackyjs/traefik-fixture/middleware.go:ro \
  traefik --log.level=DEBUG 2>&1 | tail -20

Write the observed message into upgrade-notes/open-questions.md. The point is to know that "plugin acquisition failed" and "your YAML is malformed" produce different text, so on-call can tell them apart at 3am.

Exercise omitted settings, valid overrides, malformed values, and missing required settings against the intended configuration contract

Config decode is exactly the kind of thing an engine change perturbs. Test it as a matrix, and let your New constructor's validation act as the oracle for what should happen.

Config under testExpected resultAssertion
All settings omitteddefaults apply: injectHeader = X-Fixture-Middleware, maxBodyBytes = 1048576header present, 1 MiB body accepted
injectHeader overriddencustom header name usedcustom header present, default absent
maxBodyBytes: 0New returns error, plugin fails to buildrouter returns 5xx, error mentions maxBodyBytes
maxBodyBytes: "big"decode errorstartup fails, config error text
denyStatusCode: 200New rejects (out of range)startup fails
denyStatusCode: 451valid overridedeny path returns 451
Unknown key foo: bartolerated or rejected — record whichdocument observed behavior

That last row is the one that bites. If 3.8's decode path became strict, every deployment carrying a stale key starts failing at startup after upgrade — loudly, which is survivable, or silently, which is not. Find out in the harness.

Test clean startup and supported configuration reload paths; distinguish plugin acquisition failures from configuration errors and runtime incompatibility

Three distinct failure classes, three distinct checks:

## 1. Acquisition failure: plugin source absent or module path mismatch.
## Expect a startup failure that names the plugin.
docker compose --env-file .env.candidate run --rm --no-deps traefik 2>&1 | grep -i plugin

## 2. Configuration error: malformed dynamic file.
## Expect a file-provider decode error, not a plugin error.
cp dynamic/middleware.yaml /tmp/mw.bak
printf 'http:\n  routers:\n    broken: [\n' > dynamic/middleware.yaml
docker compose --env-file .env.candidate logs traefik | tail -5
cp /tmp/mw.bak dynamic/middleware.yaml

## 3. Runtime incompatibility: plugin builds, but a request fails.
## Only visible through behavior — which is what Gates 2-4 are for.

Class 3 is the dangerous one. No startup error and often no log line at all.

Gate Two: Assert Request-Handling Semantics Across the Middleware

Build a table-driven matrix covering methods, escaped paths, repeated query parameters, header multiplicity, cookies, and representative body sizes

Cases live in Go so they're versioned and reviewable:

driver/cases.go (excerpt)
var cases = []Case{
{Name: "get-simple", Method: "GET", Path: "/fixture/echo", Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "head-simple", Method: "HEAD", Path: "/fixture/echo", Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "post-empty", Method: "POST", Path: "/fixture/echo", Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "post-1k", Method: "POST", Path: "/fixture/echo", Body: strings.Repeat("a", 1024), Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "post-over-limit", Method: "POST", Path: "/fixture/echo", Body: strings.Repeat("a", 2<<20), Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "escaped-path", Method: "GET", Path: "/fixture/echo/a%2Fb%20c", Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "repeated-query", Method: "GET", Path: "/fixture/echo?a=1&a=2&a=3", Headers: map[string]string{"X-Fixture-Key": "k"}},
{Name: "multi-header", Method: "GET", Path: "/fixture/echo", Headers: map[string]string{"X-Fixture-Key": "k", "X-Multi": "one"}},
{Name: "deny-missing-key", Method: "GET", Path: "/fixture/echo"},
{Name: "control-no-plugin", Method: "GET", Path: "/control/echo", Headers: map[string]string{"X-Fixture-Key": "k"}},
}

The escaped-path case is not paranoia. If the middleware normalizes or re-encodes URL.Path, a%2Fb%20c can arrive at the backend as a/b c — a completely different route for anything doing path-based authorization. The backend records EscapedPath() specifically so the artifact shows the truth.

Verify body preservation after inspection, including empty bodies, streamed uploads, and client-supplied content encodings where the middleware handles them

The assertion is a hash comparison, not a byte count: backendBodySha256 must equal the hash of what the driver sent.

## After a driver run, both stacks should agree on body hashes.
jq -r '.[] | select(.backendCalls > 0) | "\(.case) \(.backendBodySha256)"' artifacts/baseline.json | sort > /tmp/b.txt
jq -r '.[] | select(.backendCalls > 0) | "\(.case) \(.backendBodySha256)"' artifacts/candidate.json | sort > /tmp/c.txt
diff /tmp/b.txt /tmp/c.txt && echo "body preservation: identical"

Two traps here. First, io.LimitReader returning fewer bytes than the client sent is silent truncation — the backend gets a valid-looking short body and your hash mismatch is the only signal. Second, Content-Encoding: gzip on the request: if your real middleware decompresses to inspect, it must re-compress or strip the header, and the backend hash will legitimately differ between stacks if you changed that behavior. Decide which is correct before the test, then assert it.

📝

If your middleware inspects bodies, prefer not to buffer unbounded input. The fixture uses maxBodyBytes as a hard ceiling for exactly this reason — an over-limit body should hit an explicit, tested behavior, not an out-of-memory kill.

Check forwarded-header trust using synthetic requests on an isolated entrypoint; assert which client identity reaches the backend

Do not test X-Forwarded-For handling on your internet-facing entrypoint. Add a second entrypoint bound to loopback in the throwaway harness compose file only.

## Client claims an identity; the proxy must not blindly trust it.
curl -sS -o /dev/null \
  -H 'X-Fixture-Key: k' \
  -H 'X-Forwarded-For: 203.0.113.9' \
  -H 'X-Real-Ip: 203.0.113.9' \
  http://127.0.0.1:8082/fixture/echo

curl -sS http://127.0.0.1:9102/__obs | jq '.last'

What the backend records tells you which identity actually arrived. The expectation is that Traefik's own forwarded-header logic governs this — not the client's claim and not your plugin's opinion — but "expectation" is doing heavy lifting in that sentence, which is why you assert it rather than assume it. If your middleware reads X-Forwarded-For to make an authorization decision, this is a security-relevant assertion, not a nicety.

Prove middleware ordering and short-circuit behavior with explicit backend-call counts, especially for authentication and authorization denials

A broken short-circuit is both a performance bug and a security bug, so this is the assertion that matters most in the whole harness.

CaseExpected statusExpected backendCalls
deny-missing-key4030
get-simple with key2001
control-no-plugin without key2001

A deny-missing-key result of 403 with backendCalls: 1 means the request reached your backend and was denied on the way back — or that your deny path wrote headers and still called next. Either is a defect. The count is what proves it.

Gate Three: Check Response Semantics, Streaming, and Cancellation

Assert status propagation, response-header changes, redirects, and error handling before and after response headers are committed

The driver sets CheckRedirect to ErrUseLastResponse, so a 302 shows up as a 302 with a Location header instead of being silently followed. That distinction matters: baseline following a redirect and candidate not following one produces identical final bodies and completely different client behavior.

The commit boundary is where subtle bugs live. A middleware that sets a response header after next has written a status line is a no-op with zero diagnostics. Add a deliberate error path to the fixture backend and assert the response body and status survive the middleware unchanged.

Test ResponseWriter wrapper behavior for flushing and connection upgrades where the plugin or application requires those capabilities

If your plugin wraps http.ResponseWriter, it may or may not forward http.Flusher and http.Hijacker. Under an interpreter, whether a type assertion succeeds can depend on how the wrapper was constructed. Test it directly.

plugin/traefik-fixture/flush_test.go (native unit test — necessary, not sufficient)
package traefik_fixture

"context"
"net/http"
"net/http/httptest"
"testing"
)

type flushSpy struct {
http.ResponseWriter
flushed bool
}

func (f *flushSpy) Flush() { f.flushed = true }

func TestWrapperPreservesFlusher(t *testing.T) {
inner := &flushSpy{ResponseWriter: httptest.NewRecorder()}
next := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	f, ok := w.(http.Flusher)
	if !ok {
		t.Fatal("wrapper dropped http.Flusher")
	}
	f.Flush()
})

h, err := New(context.Background(), next, CreateConfig(), "test")
if err != nil {
	t.Fatalf("New: %v", err)
}
h.ServeHTTP(inner, httptest.NewRequest("GET", "/", nil))

if !inner.flushed {
	t.Fatal("Flush did not reach the underlying writer")
}
}
cd plugin/traefik-fixture && go test ./... -count=1
## ok  	github.com/hackyjs/traefik-fixture	0.004s

That test passing tells you your wrapper is correct in compiled Go. It does not tell you the interpreter builds the same wrapper, or that Traefik's ResponseWriter satisfies the same interfaces yours does. The only way to know that is to run it inside Traefik — which is Gate 3's end-to-end probe.

Exercise server-sent events, WebSocket upgrades, trailers, and protocol variants only where they belong to the deployed workload

Scope discipline matters. If you don't serve SSE, don't spend a day testing SSE; a green checkmark on an unused path is false confidence. If you do serve it, this is a hard gate.

Workload featureIn scope here?Probe
SSE streamingonly if you serve itcurl -N and confirm events arrive incrementally, not buffered to completion
WebSocket upgradeonly if you serve itupgrade through the proxy, confirm 101 and bidirectional frames
HTTP trailersonly if your backend sets themcheck Trailer arrives after body
HTTP/2 vs HTTP/1.1match production protocolpin the client protocol explicitly, don't let it negotiate

A buffered SSE stream is the classic symptom: everything works, then every event arrives at once three seconds later. curl -N (no buffering) is the cheapest way to see it.

Use a controlled slow backend to verify request cancellation, timeout propagation, and bounded cleanup without assuming engine-specific failure behavior

The fixture backend's /slow handler waits three seconds but returns early on r.Context().Done(). Drive a client timeout shorter than that and observe whether the backend actually sees cancellation.

time curl -sS --max-time 1 -o /dev/null -w '%{http_code}\n' \
  -H 'X-Fixture-Key: k' \
  http://127.0.0.1:8082/fixture/slow

The client-side result is a timeout and exit code 28 — that part is certain. What is not certain, and what you must record rather than predict, is whether the backend's select fires on ctx.Done() promptly or whether the handler keeps running to completion. An interpreter change could plausibly affect context propagation. Record what you observe on both stacks; don't assume 3.8 makes it better or worse.

Gate Four: Expose Concurrency and Failure-Path Regressions

Run native Go unit tests and the race detector, explaining that they do not validate execution inside Traefik's plugin engine

cd plugin/traefik-fixture
go test ./... -race -count=20
## ok  	github.com/hackyjs/traefik-fixture	0.418s

Run it with -count=20 so the scheduler actually shuffles. A single-run race test finds almost nothing.

Now the honest caveat: -race instruments compiled code. It does not instrument Yaegi-evaluated code. A clean race run is evidence about your source, not evidence about the plugin under Traefik. Treat it as a prerequisite, never as Gate 4 itself.

Send concurrent requests with distinct synthetic identities to detect cross-request header, authorization, cache, or buffer contamination

This is the test that catches shared-state bugs the fixture's atomic counter would hide.

driver/contamination_test.go (excerpt)
func TestNoCrossRequestContamination(t *testing.T) {
const n = 200
var wg sync.WaitGroup
errs := make(chan string, n)

for i := 0; i < n; i++ {
	wg.Add(1)
	go func(i int) {
		defer wg.Done()
		identity := fmt.Sprintf("tenant-%03d", i)
		req, _ := http.NewRequest("POST", baseURL+"/fixture/echo",
			strings.NewReader("payload-"+identity))
		req.Header.Set("X-Fixture-Key", "k")
		req.Header.Set("X-Tenant", identity)
		req.Header.Set("X-Fixture-Case", identity)

		resp, err := client.Do(req)
		if err != nil {
			errs <- fmt.Sprintf("%s: %v", identity, err)
			return
		}
		io.Copy(io.Discard, resp.Body)
		resp.Body.Close()

		obs := readObsFor(t, identity)
		if obs.Headers["X-Tenant"][0] != identity {
			errs <- fmt.Sprintf("tenant header crossed: sent %s, backend saw %s",
				identity, obs.Headers["X-Tenant"][0])
		}
		want := fmt.Sprintf("%x", sha256.Sum256([]byte("payload-"+identity)))
		if obs.BodySHA256 != want {
			errs <- fmt.Sprintf("body crossed for %s", identity)
		}
	}(i)
}
wg.Wait()
close(errs)
for e := range errs {
	t.Error(e)
}
}

The X-Tenant assertion is the point. A middleware that reuses a package-level http.Header, a bytes.Buffer, or a per-middleware scratch slice will pass serial tests forever and fail here in one run.

Inject bounded dependency failures and isolated middleware errors; assert the intended fail-open or fail-closed contract and continued service health

Write the contract down before you test it.

FailureIntended contractHow to assert
Backend returns 500propagate 500, middleware adds no bodystatus 500, body hash matches control path
Backend unreachable502 from proxystatus 502, backendCalls: 0
Plugin New returns errorplugin fails to build, router returns 5xxstartup/runtime error text recorded
Slow backend exceeds client timeoutclient sees timeout, backend sees cancellationexit code 28 + /slow ctx observation

"Continued service health" means: after each injected failure, a normal request still succeeds. A middleware error that leaks into a broken router is worse than the original failure.

## Bounded backend failure: stop the backend, probe, restart, probe again.
docker compose --env-file .env.candidate stop backend
curl -sS -o /dev/null -w 'after-stop: %{http_code}\n' -H 'X-Fixture-Key: k' http://127.0.0.1:8082/fixture/echo
docker compose --env-file .env.candidate start backend
sleep 2
curl -sS -o /dev/null -w 'after-restart: %{http_code}\n' -H 'X-Fixture-Key: k' http://127.0.0.1:8082/fixture/echo

Expect 502 then 200. If after-restart is still 502, you have a connection-pooling or readiness question that just landed on the upgrade critical path.

Add a small numeric endpoint to the fixture backend — no pprof, just runtime.NumGoroutine() and runtime.ReadMemStats — and sample it across cycles.

for i in $(seq 1 10); do
  go run ./driver -base http://127.0.0.1:8082 -obs http://127.0.0.1:9102 \
    -out "/tmp/cycle-$i.json" >/dev/null
  curl -sS http://127.0.0.1:9102/__stats | jq -c '{goroutines,heapAlloc}'
  sleep 2
done

Read the trend, not the number. Goroutines rising monotonically across ten cycles with no plateau is a signal. Goroutines rising then flattening is GC and connection-pool warm-up. Neither is a confirmed leak until you've run long enough to distinguish a growth curve from a sawtooth, and a rising heap in a Go service under load is not by itself evidence of anything.

Gate Five: Compare Performance Without Hiding the Test Conditions

Measure baseline and candidate with both plugin-enabled and plugin-free controls to separate overall proxy changes from plugin-path differences

The /fixture and /control routers exist for exactly this. Four measurements, not two:

RunStackPathIsolates
Abaseline/controlproxy baseline, no plugin
Bbaseline/fixtureplugin cost on old engine
Ccandidate/controlproxy changes only
Dcandidate/fixtureplugin cost on new engine
  • C vs A = proxy changes, independent of your plugin.
  • D vs B = plugin-path changes.
  • B vs A and D vs C = plugin cost on each engine.

Reporting only "D vs B" and calling it "the plugin engine is slower" conflates the two. That's how a proxy-wide routing change gets blamed on a plugin-engine redesign.

Pin load-generator version, machine resources, protocol, connection reuse, payload mix, warm-up, concurrency, and measurement duration

GOBIN=$PWD/bin go install github.com/tsenart/vegeta/v12@latest
./bin/vegeta -version   # RECORD this. Pin the resolved version in CI.
## 30s warm-up, then 60s measurement. Same machine for both stacks.
printf 'GET http://127.0.0.1:8082/fixture/echo\nX-Fixture-Key: k\n' > /tmp/targets.txt

./bin/vegeta attack \
  -targets /tmp/targets.txt \
  -rate 200 -duration 30s -max-workers 20 \
  -header 'X-Fixture-Middleware: 1' \
  > /dev/null

./bin/vegeta attack \
  -targets /tmp/targets.txt \
  -rate 200 -duration 60s -max-workers 20 \
  | tee artifacts/candidate-fixture.bin \
  | ./bin/vegeta report -type=json > artifacts/candidate-fixture.json

Record alongside every artifact: CPU allocation for each container, GOMAXPROCS for the backend, host kernel and CPU model, vegeta version, protocol (explicitly HTTP/1.1 or HTTP/2, not negotiated), and whether connection reuse is on. A latency number without these is not a result.

Report throughput, latency percentiles, errors, CPU, and memory across repeated runs; measure cold startup separately from steady-state traffic

for run in 1 2 3; do
  ./bin/vegeta attack -targets /tmp/targets.txt -rate 200 -duration 60s \
    | ./bin/vegeta report -type=json \
    | jq --arg run "$run" '{run: $run, rate: .rate, p50: .latencies.p50, p99: .latencies.p99, success: .success}'
done

Report p50, p95, p99, throughput, error rate, container CPU (from docker stats --no-stream), and RSS. Use the median of three runs, not the best. Cold startup is a separate number entirely:

docker compose --env-file .env.candidate down -v
/usr/bin/time -f 'cold-start-seconds: %e' docker compose --env-file .env.candidate up -d --wait

Cold start matters if you autoscale or if a plugin build is slow under the interpreter. Steady-state latency matters for everything else. Do not average them into one number.

Define acceptable regressions before testing and label example output as illustrative unless it comes from an actual recorded run

Write this table before you run a single request. The one you write after seeing numbers is not a threshold, it's a rationalization.

MetricAcceptable changeBlocker if exceeded
p99 latency (plugin path)up to +10%yes
Throughputno more than -5%yes
Error ratemust stay 0.00%yes
Container RSS (steady state)up to +15%review
Cold startup to +20%review
Any Gate 1-4 behavioral diffzero toleranceyes

The artifact from this post's example run is illustrative, not measured. It shows shape, not a result:

{
  "case": "post-1k",
  "status": 200,
  "stableHeaders": { "X-Backend": "fixture", "X-Fixture-Middleware": "3" },
  "bodySha256": "<hash>",
  "bodyBytes": 2,
  "backendCalls": 1,
  "backendPath": "/fixture/echo",
  "backendBodySha256": "<hash>"
}

Diff those with jq or diff, and treat any difference as a candidate finding until investigated:

diff <(jq -S . artifacts/baseline.json) <(jq -S . artifacts/candidate.json) \
  > artifacts/behavioral.diff || true
wc -l artifacts/behavioral.diff

Turn the Regression-Test Results into an Upgrade Decision

Present a pass/fail evidence table with baseline result, candidate result, artifact location, owner, and blocker status

GateCheckBaselineCandidateArtifactOwnerBlocker
1Plugin injects header on /fixturepresentpresentartifacts/*.jsonplatformno
1Control path has no plugin headerabsentabsentartifacts/*.jsonplatformno
1maxBodyBytes: 0 rejected at buildrejectedrejectednotes/gate1.mdpluginno
2Escaped path reaches backend unchangeda%2Fb%20ca%2Fb%20cartifacts/*.jsonplatformno
2deny-missing-key → 403, 0 backend calls403 / 0403 / 0artifacts/*.jsonplatformno
2Body hash preserved for 1 KiB POSTmatchmatchartifacts/*.jsonpluginno
3Redirect returned, not followed302 + Location302 + Locationartifacts/*.jsonplatformno
3Flusher preserved end-to-enduntesteduntested—pluginyes
4200 concurrent identities, no crossover0 errors0 errorscontamination.logpluginno
4Backend 502 after stop, 200 after restart502/200502/200artifacts/gate4.logplatformno
5p99 within +10%reference+7.2%perf/*.jsonperfno
5Throughput within -5%reference-3.1%perf/*.jsonperfno

Every row needs an artifact path. A row with no artifact is a row nobody has actually run.

Reduce failures by testing direct backend access, Traefik without the plugin, and Traefik with the plugin before attributing a regression to the redesigned engine

When something fails, bisect in this order — cheapest first:

  1. Direct to the backend (no proxy). If it fails here, your test or the backend is wrong.
  2. Through Traefik without the plugin (/control). If it fails here, it's a proxy or routing change, not your plugin.
  3. Through Traefik with the plugin (/fixture). Only now is it plausibly your middleware or the engine.

This ordering prevents the most common misdiagnosis in upgrade work: attributing a proxy-level behavior change to the component named in the release headline. Do the cheap test first.

Require explicit approval for intentional behavior changes rather than silently updating golden responses to match the candidate

Sometimes the candidate is right and your baseline was wrong. That's a legitimate outcome — and it needs a person to say so, in writing, with a reason.

<!-- upgrade-notes/behavior-changes.md -->
## Accepted change: `X-Fixture-Deny` value format

- Baseline: `missing-x-fixture-key`
- Candidate: `missing:X-Fixture-Key`
- Reason: <link to release note or your own decision>
- Approved by: <name>, <date>
- Follow-up: update dashboard alert on `X-Fixture-Deny` substring match

What must never happen is running cp artifacts/candidate.json artifacts/baseline.json to make the diff go green. That converts your regression gate into a rubber stamp, and it's a habit that outlives the upgrade.

Roll Out to Traefik 3.8 With a Tested Rollback Path

Canary representative traffic and monitor plugin initialization, routing failures, authorization outcomes, latency, and resource use

Route a small slice — a single canary deployment, not a percentage split with sticky sessions — and watch these five signals specifically:

SignalWhereWhat "bad" looks like
Plugin initializationstartup logs, bounded by your healthcheckcontainer up but plugin absent
Routing failuresaccess log 4xx/5xx by routerone router's error rate diverges
Authorization outcomes401/403 counts by routerdeny rate jumps or drops to zero
Latencyp99 on /fixture-equivalent routesmatches the harness regression, or worse
Resource usecontainer CPU/RSSmonotonic RSS growth, not a plateau

The authorization-count check is the one teams skip. A deny count dropping to zero can mean everything is fine — or it can mean your middleware stopped running. Your harness already proved what the count should look like.

Retain the previous image, plugin revision, and configuration as one rollback unit; verify rollback before broad deployment

The rollback unit is three artifacts, and they only work together:

## rollback-unit/
## traefik-image.txt   <- pinned digest, not a tag
## plugin-commit.txt   <- plugin.lock value
## dynamic.tar.gz      <- the exact dynamic config directory
mkdir -p rollback-unit
cp .env.baseline rollback-unit/traefik-image.txt
cp plugin.lock rollback-unit/plugin-commit.txt
tar -czf rollback-unit/dynamic.tar.gz dynamic/

Then actually run it. A rollback path you haven't executed is a hope.

docker compose --env-file .env.candidate down -v
docker compose --env-file .env.baseline up -d --wait
go run ./driver -base http://127.0.0.1:8081 -obs http://127.0.0.1:9101 -out artifacts/rollback-verify.json
diff <(jq -S . artifacts/baseline.json) <(jq -S . artifacts/rollback-verify.json) && echo "rollback reproduces baseline"

That diff is the most convincing single check in the whole harness. If rollback reproduces the frozen baseline byte-for-byte on your stable fields, you can upgrade with a clear conscience.

Close with the release gate: upgrade only when the middleware contract holds and measured performance stays within agreed limits

The gate is a sentence, and it should be written down:

We upgrade to the pinned 3.8 digest when all Gate 1-4 assertions match baseline exactly (or a documented, approved behavior change exists), and Gate 5 stays within the pre-agreed thresholds across three runs, and rollback has been executed and reproduced the baseline artifact.

Note what is not in that gate: the word "redesigned," any claim about the new engine being better, or a startup log line. The Linuxiac report told us there was a change worth testing. It did not tell us the change is safe for our middleware, and no amount of release-note prose can. Only the harness can, and only for the fixtures you actually wrote.

If Gate 1-4 passes and Gate 5 lands inside thresholds, upgrade — and keep the harness in the repo, because the next engine change is already scheduled.

Further Reading and Verification Sources

Preserve the supplied Linuxiac report as the source of the redesign claim and add verified official Traefik 3.8 release and migration references

  • Linuxiac — "Traefik Proxy 3.8 Released with a Redesigned Go Plugin Engine" (published 2026-11-29). This is the origin of the plugin-engine redesign claim in this post; I have not independently verified the engine internals it describes.
  • Traefik Proxy release notes — read the page for the exact 3.8 patch you intend to run, and record the URL and date in upgrade-notes/sources.txt. Do not substitute a summary for this.
  • Traefik migration guide — check specifically for experimental.plugins and experimental.localPlugins config-shape changes before editing any dynamic config.
  • Traefik plugin documentation — the authoritative source on how plugins are executed, the supported Go subset, and local-plugin source layout. Confirm the layout your harness mounts for the specific image you pin.

I have deliberately not linked specific 3.8 release-note URLs, CVE identifiers, or affected-version ranges: I could not verify them, and a fabricated link in an upgrade checklist is worse than an instruction to go read the real one.

Share this post

More posts

Loading comments…