Check if X-Forwarded-For is present

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Owen Wood
            Reporter:
            Owen Wood
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: