SonarQube
  1. SonarQube
  2. SONAR-2296

Sonar behind a HTTPS reverse proxy sometimes fall back to HTTP

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Infrastructure, Web
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Using sonar through a https connection causes fall back to HTTP instead of HTTPS

      Some of the cases where this fall back is happening are:
      *login/logout
      *operations with filters
      *operations with quality profiles (save, copy and make default)

      (as a workaround it should be possible to configure reverse-proxy to redirect all requests for Sonar without SSL to Sonar with SSL)

        Issue Links

          Activity

          Hide
          André Ribeiro added a comment -

          Same happens in:

          • Edit user
          Show
          André Ribeiro added a comment - Same happens in: Edit user
          Hide
          Julien Lancelot added a comment -

          The login/logout still redirect to HTTP

          Show
          Julien Lancelot added a comment - The login/logout still redirect to HTTP
          Hide
          Freddy Mallet added a comment -

          In fact fixing this issue doesn't require any update on Sonar server side : the proxy must be configured to set the value "X_FORWARDED_PROTO: https" in each HTTP request header. This parameter is required by the Ruby On Rails stack to correctly perform redirection.

          Show
          Freddy Mallet added a comment - In fact fixing this issue doesn't require any update on Sonar server side : the proxy must be configured to set the value "X_FORWARDED_PROTO: https" in each HTTP request header. This parameter is required by the Ruby On Rails stack to correctly perform redirection.

            People

            • Assignee:
              Freddy Mallet
              Reporter:
              André Ribeiro
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: