activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Moreno Martin (JIRA)" <>
Subject [jira] [Created] (AMQ-6951) Hide embedded jetty version
Date Mon, 23 Apr 2018 16:49:00 GMT
Marcos Moreno Martin created AMQ-6951:

             Summary: Hide embedded jetty version
                 Key: AMQ-6951
             Project: ActiveMQ
          Issue Type: New Feature
            Reporter: Marcos Moreno Martin


sorry in advance if this is clear for jetty experts. 

We have not seen anywhere in the documentation how to hide the embedded jetty version. This
is marked as a security thread by our penetration testers when we are using a web sockets
transport on port 80. We have been playing around with the configuration file jetty.xml and
the parameters, but no success. It has been addressed for other projects (see

 So far we have been trying to change the configuration in jetty.xml.

As far as we know, this should be the configuration for the property:
<bean id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
<property name="sendServerVersion" value="false">
However, this has no effect in the exposing of the version. We tried further and tried with
a connection factory, but this also had no effect:
<bean id="invokeConnectors" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="Server" />
<property name="targetMethod" value="setConnectors" />
<property name="arguments">
<bean id="Connector" class="org.eclipse.jetty.server.ServerConnector">
<constructor-arg ref="Server" />
      <bean id="httpConnectionFactory"       class="org.eclipse.jetty.server.HttpConnectionFactory">
      <constructor-arg ref="httpConfig"/>

<!-- see the jettyPort bean -->
<property name="host" value="#{systemProperties['']}" />
<property name="port" value="#{systemProperties['jetty.port']}" />

Are we on the right track, or does it need to be addressed by the codebase of ActiveMQ? 

This is how we show the version:
#nmap -sV -p80 localhost
Starting Nmap 7.70 ( ) at 2018-04-23 18:16 CEST
Nmap scan report for localhost (
Host is up (0.000098s latency).

80/tcp open http Jetty 9.2.22.v20170606

Service detection performed. Please report any incorrect results at
Nmap done: 1 IP address (1 host up) scanned in 11.34 seconds

This message was sent by Atlassian JIRA

View raw message