Skip to content

Validate proxy peers and redact API errors - #3

Merged
MudassarTariq merged 4 commits into
mainfrom
fix/proxy-trust-and-api-errors
Oct 30, 2026
Merged

MudassarTariq merged 4 commits into
mainfrom
fix/proxy-trust-and-api-errors

Conversation

@MudassarTariq

@MudassarTariq MudassarTariq commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Check the connection peer against trustedProxies before using forwarded headers, including when forwardedDepth is configured. Redact raw and URL-encoded API keys from lookup errors while preserving the underlying error and the existing failure policies.

Update the Traefik examples, tested versions and command descriptions. Bind local test/dashboard ports to loopback, check the requested binary version before reusing it, stop the runner’s Traefik child on exit, and generate database fixtures without reusing cached test results. CI adds supported Go versions, vulnerability scans and Traefik/Compose checks.

Validation:

  • Regression tests reproduce both issues on the original code. Race tests, go vet and Yaegi checks pass with Go 1.26.10 and 1.27.3.
  • API tests cover transport, TLS, timeout, HTTP, malformed-JSON and API-message failures, credential redaction and fail-open/fail-closed behavior.
  • Traefik 3.7.16 and 3.7.17 binary checks pass. CI runs both Compose examples with the 3.7.16 image, including enrichment, blocking, restart and a published-plugin download.
  • Seven Postman HTTP assertions pass against the running Traefik instance. Fixture deletion/regeneration and runner cleanup were also checked.

Compatibility: forwarded-header trust remains disabled by default. When trustedProxies is configured, it must include the proxy that connects to Traefik. Selection without a configured proxy list, API responses, MMDB lookups and fail-open/fail-closed behavior are retained.

@MudassarTariq
MudassarTariq marked this pull request as ready for review October 30, 2026 16:46
@MudassarTariq
MudassarTariq merged commit 43f6916 into main Oct 30, 2026
2 checks passed
@MudassarTariq
MudassarTariq deleted the fix/proxy-trust-and-api-errors branch October 30, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant