Skip to content
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 gcp func to contrib.util #457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mohsin
Copy link

@mohsin mohsin commented Oct 11, 2024

GCP handles each request throw different load balancers and reverse proxies so using remote_addr is unreliable to obtain the client IP. As per their documentation, the client IP is carried on in the X-Forwarded-For header. However, this is an array where each network node of GCP appends it's IP so the first in the list is the client IP (unless it's a spoofed request).

GCP handles each request throw different load balancers and reverse proxies so using remote_addr is unreliable to obtain the client IP. As per [their documentation](https://cloud.google.com/load-balancing/docs/https#x-forwarded-for_header), the client IP is carried on in the X-Forwarded-For header. However, this is an array where each network node of GCP appends it's IP so the first in the list is the client IP (unless it's a spoofed request).
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