Actions
Feature #1799
closedRespect HTTP_X_FORWARDED_FOR for configured list of ip addresses.
Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Description
Hi
app/controllers/unattended_controller.rb
contains:
elsif (ip = request.env['REMOTE_ADDR']) =~ /127.0.0/ ip = request.env["HTTP_X_FORWARDED_FOR"] unless request.env["HTTP_X_FORWARDED_FOR"].nil? end
i.e if connecting from localhost then respect the HTTP_X_FORWARDED_FOR for requests for e.g.
http://judy.cern.ch/unattended/built
Having set up a remote http load balencer in front of two foreman hosts this 127.0.0 needs to be configured to whatever
that remote host is. After editing unattended_controller.rb to contain my balencers ip address the unattended scripts
work as expected.
Actions