• 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.

          [JENKINS-57708] Check if X-Forwarded-For is present

          Owen Wood created issue -
          Owen Wood made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Owen Wood made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Owen Wood made changes -
          Summary Original: Attempt to detect reverse proxy New: Check if X-Forwarded-For is present
          Owen Wood made changes -
          Resolution New: Done [ 10000 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Arnaud Héritier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Denys Digtiar made changes -
          Link New: This issue is related to JENKINS-64667 [ JENKINS-64667 ]

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

              Created:
              Updated:
              Resolved: