fix: remove broken request-id middleware with invalid Go template (refs #103)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 4m50s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 1m1s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m36s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

The request-id middleware used {{ .Request.Host }} which is not available
at config load time in the file provider. This template error blocked
the entire file provider from loading, preventing all file-based
middlewares (including grafana-ipwhitelist) from being registered.

The middleware was unused (not referenced by any router or chain) and
the backend already generates X-Request-Id via randomUUID().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-05 20:54:49 -06:00
parent 9ed4afb9a8
commit 38cc8ba5c2

View File

@@ -1,16 +1,5 @@
http: http:
middlewares: middlewares:
# Request ID forwarding middleware
# Note: Traefik v3 lacks native UUID generation
# Backend generates X-Request-Id if not present in request
# This middleware ensures the header is forwarded when present
request-id:
headers:
customRequestHeaders:
X-Forwarded-Host: "{{ .Request.Host }}"
# X-Request-Id forwarded automatically via passthrough
# Backend responsibility: generate UUID if header missing
# Security headers middleware # Security headers middleware
secure-headers: secure-headers:
headers: headers: