chore: configure Traefik X-Request-Id header forwarding (#83) #89

Merged
egullickson merged 1 commits from issue-83-traefik-request-id into main 2026-02-04 01:47:47 +00:00
Owner

Summary

Fixes #83

  • Configure Traefik access logs to include X-Request-Id header for request correlation
  • Add request-id middleware documenting that backend generates UUID if header missing (Traefik v3 lacks native UUID generation)
  • Add X-Request-Id to CORS allowed headers so clients can send request IDs

Acceptance Criteria

  • X-Request-Id header forwarded if present in request
  • Access logs configured to include X-Request-Id field
  • Existing middleware chains unchanged
  • Traefik restarts without errors (to be verified in staging)

Test Plan

  • Deploy to staging environment
  • Verify Traefik starts without configuration errors
  • Send request with X-Request-Id header, verify it appears in access logs
  • Send request without X-Request-Id header, verify backend generates one

Files Changed

  • config/traefik/traefik.yml - Added X-Request-Id to access log headers
  • config/traefik/dynamic/middleware.yml - Added request-id middleware, X-Request-Id to CORS

Generated with Claude Code

## Summary Fixes #83 - Configure Traefik access logs to include X-Request-Id header for request correlation - Add request-id middleware documenting that backend generates UUID if header missing (Traefik v3 lacks native UUID generation) - Add X-Request-Id to CORS allowed headers so clients can send request IDs ## Acceptance Criteria - [x] X-Request-Id header forwarded if present in request - [x] Access logs configured to include X-Request-Id field - [x] Existing middleware chains unchanged - [ ] Traefik restarts without errors (to be verified in staging) ## Test Plan - [ ] Deploy to staging environment - [ ] Verify Traefik starts without configuration errors - [ ] Send request with X-Request-Id header, verify it appears in access logs - [ ] Send request without X-Request-Id header, verify backend generates one ## Files Changed - `config/traefik/traefik.yml` - Added X-Request-Id to access log headers - `config/traefik/dynamic/middleware.yml` - Added request-id middleware, X-Request-Id to CORS --- Generated with [Claude Code](https://claude.com/claude-code)
egullickson added 1 commit 2026-02-04 01:41:35 +00:00
chore: configure Traefik X-Request-Id header forwarding (refs #83)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 30s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 31s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m19s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
2ecefc1e10
- Add X-Request-Id to access log fields for request correlation
- Add request-id middleware documenting backend UUID generation
- Add X-Request-Id to CORS allowed headers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
egullickson merged commit 5593459090 into main 2026-02-04 01:47:47 +00:00
egullickson deleted branch issue-83-traefik-request-id 2026-02-04 01:47:47 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#89