You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Stephan Austermühle (Jira)" <ji...@apache.org> on 2020/11/24 16:56:00 UTC

[jira] [Created] (ARTEMIS-3011) Use X-Forwarded-Proto header for Hawtio 2

Stephan Austermühle created ARTEMIS-3011:
--------------------------------------------

             Summary: Use X-Forwarded-Proto header for Hawtio 2
                 Key: ARTEMIS-3011
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3011
             Project: ActiveMQ Artemis
          Issue Type: Improvement
          Components: Web Console
    Affects Versions: 2.16.0
            Reporter: Stephan Austermühle


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:

{code}
$ 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
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)