summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-03-12 11:22:29 -0700
committerStan Hu <stanhu@gmail.com>2019-03-12 12:46:40 -0700
commit01203e7188374b2df1246950bffa7fbb2ea87628 (patch)
tree13c59993c910cd11a756aff14b2346effe28453a /changelogs
parent30e52b239ce9ac7ba83778e00f4b45d65e61a4a0 (diff)
downloadgitlab-ce-01203e7188374b2df1246950bffa7fbb2ea87628.tar.gz
Fix health checks not working behind load balancers
The change in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24199 caused requests coming from a load balancer to arrive as 127.0.0.1 instead of the actual IP. `Rack::Request#ip` behaves slightly differently different than `ActionDispatch::Request#remote_ip`: the former will return the first X-Forwarded-For IP if all of the IPs are trusted proxies, while the second one filters out all proxies and falls back to REMOTE_ADDR, which is 127.0.0.1. For now, we can revert back to using `Rack::Request` because these middlewares don't manipulate parameters. The actual fix problem involves fixing Rails: https://github.com/rails/rails/issues/28436. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58573
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/sh-revert-rack-request-health-checks.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-revert-rack-request-health-checks.yml b/changelogs/unreleased/sh-revert-rack-request-health-checks.yml
new file mode 100644
index 00000000000..5dd5e5b731c
--- /dev/null
+++ b/changelogs/unreleased/sh-revert-rack-request-health-checks.yml
@@ -0,0 +1,5 @@
+---
+title: Fix health checks not working behind load balancers
+merge_request: 26055
+author:
+type: fixed