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

nginx: config should include the usual "trust" the proxy in front things for IPs etc #621

Open
samip5 opened this issue Oct 17, 2024 · 0 comments

Comments

@samip5
Copy link

samip5 commented Oct 17, 2024

Setup information

GitOps via Helm

Describe the bug
The app itself doesn't seem to see the right IP address

To reproduce
Steps to reproduce the behavior:

  1. Deploy app
  2. Go to the Web UI
  3. See logs of app and notice that it's not showing the right client ip, despite nginx logging it.

Expected behavior
I would have expected that the X-Real-IP or X-Forwarded-For would replace the remote-addr or whatever laravel uses for the IP.

Screenshots/logs

10.244.2.170 - - [17/Oct/2024:15:37:08 +0000] "GET /api/v1/task_statuses?sort=id%7Cdesc&per_page=10&page=1&filter=&status=active HTTP/1.1" 200  1383 "https://invoice.<snip>.com/settings/task_settings" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0" "10.10.11.109"
10.244.1.80 -  17/Oct/2024:15:37:05 +0000 "GET /index.php" 200

Docker/Kubernetes/Helm:

  • Output of helm version:
version.BuildInfo{Version:"v3.16.1", GitCommit:"5a5449dc42be07001fd5771d56429132984ab3ab", GitTreeState:"clean", GoVersion:"go1.22.7"}
  • Output of kubectl version:
Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.3
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

No branches or pull requests

1 participant