Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57708

Check if X-Forwarded-For is present

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor Minor
    • support-core-plugin
    • None

      We currently include Jenkins outgoing proxy info in the support bundle - https://github.com/jenkinsci/support-core-plugin/blob/master/src/main/java/com/cloudbees/jenkins/support/impl/UpdateCenter.java#L75

      I'm proposing we try detecting reverse proxies as well.

      A simple (but not bulletproof) solution is to look for the presence of the X-Forwarded-For header in responses to the configured Jenkins URL.

      This solution would work for non-anonymous proxy servers.

      Anonymous proxy servers would not include this header (by design).

      Misconfigured proxy servers would potentially also not include this header.

            owood Owen Wood
            owood Owen Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: