Issue Type: Bug Bug
Affects Versions: current
Assignee: Jesse Glick
Attachments: c934e4d2-bec0-11e2-84fc-952ab3cb691a.png
Components: build-token-root
Created: 19/May/13 8:36 AM
Description:

Builds triggered using per-project token via the API provided by this plugin show their remote host as '127.0.0.1' rather than the real IP the build was started from. In my case, I ran curl(1) to trigger the build from another machine, and it still shows up as 127.0.0.1 (localhost), see attached screenshot.

I am accessing this Jenkins instance via an Apache reverse proxy so that I can use SSL. But I believe my Apache virtual host is configured properly to set proxy headers like X-Forwarded-For, etc. (per http://httpd.apache.org/docs/trunk/mod/mod_proxy.html). My Apache config includes the following:

ProxyRequests On
ProxyPreserveHost On
ProxyPass / http://localhost:8080/ retry=0
ProxyPassReverse / http://localhost:8080/

Is Jenkins not respecting the X-Forwarded-* HTTP headers when determining the remote IP? That may be the root cause here.

Environment: Jenkins 1.514, Oracle Linux, accessed via reverse Apache proxy (for SSL)
Project: Jenkins
Priority: Minor Minor
Reporter: Stuart Montgomery
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to