Skip to content

Why does ForwardedHeadersTrustedIPs exists ? Isn't it Traefik's forwardedHeaders->trustedIPs job ? #264

@buixor

Description

@buixor

Hello,

I see that the traefik plugin has a ForwardedHeadersTrustedIPs directive that seems to be required when working with an upstream (lb, rp, cdn etc.).

However, Traefik itself has both forwardedHeaders.trustedIPs and proxyProtocol.trustedIPs directives.

I would have expected the latest to override the source IP (as it commonly happens in ie. nginx when x-forwarded-for is configured). If the natif traefik directives are used, is ForwardedHeadersTrustedIPs still needed ?

It might simply be my lack of knowledge about traefik, Thanks!

PS: I'm asking because I'm trying to update CrowdSec's official Traefik documentation, and this seems like a common pitfall.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions