Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3011

Use X-Forwarded-Proto header for Hawtio 2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.0
    • 2.17.0
    • Web Console
    • None

    Description

      ARTEMIS-2838 introduced Hawtio 2 for Artemis 2.16. While this is much appreciated, it would help with reverse proxies if Hawtio respects the header X-Forwarded-Proto for URL/redirect generation.

      At the moment, the console just returns HTTP redirects instead of HTTPS despite the X-Forwarded-Proto header inserted by the Kubernetes Nginx Ingress Controller:

      $ curl -k -v https://artemis-console-primary-0.cluster.company.com/console
      *   Trying 10.160.20.55...
      […]
      > GET /console HTTP/2
      > Host: artemis-console-primary-0.cluster.company.com
      > User-Agent: curl/7.58.0
      > Accept: */*
      > 
      < HTTP/2 302 
      < date: Tue, 24 Nov 2020 16:33:51 GMT
      < content-length: 0
      < location: http://artemis-console-primary-0.cluster.company.com/console/
      < strict-transport-security: max-age=15724800; includeSubDomains
      

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              stephan2020 Stephan Austermühle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: