Skip to content

Backport: Preserve forwarded IP address for trusted proxy chains#1343

Merged
eileencodes merged 1 commit intorack:2-0-stablefrom
larsxschneider:ls/forward-fix
Feb 19, 2019
Merged

Backport: Preserve forwarded IP address for trusted proxy chains#1343
eileencodes merged 1 commit intorack:2-0-stablefrom
larsxschneider:ls/forward-fix

Conversation

@larsxschneider
Copy link
Copy Markdown

This is a backport to 2-0-stable of @SamSaffron's fix which was merged to master with #1224

@eileencodes @tenderlove it would be super awesome if you could make a new rack release with this backport 😊 .


Sometimes proxies make requests to Rack applications, for example
HAProxy health checks and so on.

Previously the forwarded IP implementation ate up these IP addresses,
making it hard to tell in Rack applications who made the request

Sometimes proxies make requests to Rack applications, for example
HAProxy health checks and so on.

Previously the forwarded IP implementation ate up these IP addresses,
making it hard to tell in Rack applications who made the request
@eileencodes eileencodes merged commit ea57610 into rack:2-0-stable Feb 19, 2019
@larsxschneider larsxschneider deleted the ls/forward-fix branch February 20, 2019 13:28
tigefa4u pushed a commit to tigefa4u/gitlabhq that referenced this pull request Apr 5, 2019
This update has two important fixes:

1. It reverts the monkey patch introduced in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23385 since
rack/rack#1201 is now part of the release.

2. Preserve forwarded IP address for trusted proxy chains
(rack/rack#1343).
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.

3 participants