-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add XFF header for external-auth requests #2851
Conversation
Thanks! We should consider whether we really want to rewrite the header or rather append to it with Any opinion in favour or against it? |
I am not well versed with On the server side of the external-auth, I would expect to see |
Most web proxies append the IP address of the previous hop separated by a comma to the The rationale is that you can have a chain of web proxies and each of them can determine from the header:
I said "friendly" because of course any proxy in the chain can deliberately spoof the header (like you did 🙂). I found that page as the first Google result, but I know there are many others. |
maybe we should follow what we have for main location block? i.e
here |
Even better, let's be consistent. |
@Miouge1 does the solution suggested by @ElvinEfendi sound good to you? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, Miouge1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR also fixes #2938 |
What this PR does / why we need it:
The source IP of the request can be useful for the external-auth to make a decision.
Special notes for your reviewer:
fixes #2938