Compare commits

...

3 Commits

Author SHA1 Message Date
1580fadcf3 Merge pull request 'fix: rename ipWhiteList to ipAllowList for Traefik v3 (#103)' (#104) from issue-103-fix-grafana-ipwhitelist into main
All checks were successful
Deploy to Staging / Build Images (push) Successful in 4m22s
Deploy to Staging / Deploy to Staging (push) Successful in 52s
Deploy to Staging / Verify Staging (push) Successful in 2m41s
Deploy to Staging / Notify Staging Ready (push) Successful in 7s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
Reviewed-on: #104
2026-02-06 03:21:47 +00:00
Eric Gullickson
38cc8ba5c2 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>
2026-02-05 20:54:49 -06:00
Eric Gullickson
9ed4afb9a8 fix: rename ipWhiteList to ipAllowList for Traefik v3 compatibility (refs #103)
Some checks failed
Deploy to Staging / Build Images (pull_request) Successful in 33s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 52s
Deploy to Staging / Verify Staging (pull_request) Failing after 6m8s
Deploy to Staging / Notify Staging Ready (pull_request) Has been skipped
Deploy to Staging / Notify Staging Failure (pull_request) Failing after 9s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 20:40:28 -06:00
2 changed files with 2 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
http:
middlewares:
grafana-ipwhitelist:
ipWhiteList:
ipAllowList:
sourceRange:
- "10.0.0.0/8"
- "172.16.0.0/12"

View File

@@ -1,16 +1,5 @@
http:
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
secure-headers:
headers:
@@ -96,7 +85,7 @@ http:
# IP whitelist for development (optional)
local-ips:
ipWhiteList:
ipAllowList:
sourceRange:
- "127.0.0.1/32"
- "10.0.0.0/8"