From 2e205a576fee191e71fdf9ed7e4a924098cbc95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Wed, 20 May 2026 16:32:07 +0200 Subject: [PATCH 1/2] Harden default broker and web console configuration Reduce the attack surface of the sample broker shipped in the binary assembly: * activemq.xml: enable only the openwire TCP transportConnector by default; amqp, stomp, mqtt and ws are commented out with a note pointing to the SSL-secured variants. * activemq.xml: add a commented block wiring JAAS authentication, destination-level authorization and broker-side audit logging, with a prominent reminder to rotate the default admin=admin credentials and an ACTIVEMQ_OPTS hint for restricting ObjectMessage deserialization. * jetty.xml: suppress X-Powered-By and Date response headers in addition to the already-disabled Server header. * jetty.xml: add Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy and Cross-Origin-Resource-Policy response headers alongside the existing CSP/XFO/XSS rules. --- assembly/src/release/conf/activemq.xml | 57 ++++++++++++++++++++++++-- assembly/src/release/conf/jetty.xml | 22 ++++++++++ 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/assembly/src/release/conf/activemq.xml b/assembly/src/release/conf/activemq.xml index 39ba30d7ae6..e6b5749b0ac 100644 --- a/assembly/src/release/conf/activemq.xml +++ b/assembly/src/release/conf/activemq.xml @@ -54,6 +54,50 @@ + + + - - - - + + + + + diff --git a/assembly/src/release/conf/jetty.xml b/assembly/src/release/conf/jetty.xml index c32f0ac02c0..025783845c1 100644 --- a/assembly/src/release/conf/jetty.xml +++ b/assembly/src/release/conf/jetty.xml @@ -21,6 +21,8 @@ + + From b13b3405d7df38a34d0d95afcf0bc875a7f6b1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Wed, 20 May 2026 18:04:27 +0200 Subject: [PATCH 2/2] Add SSL recommendation comment on default openwire connector --- assembly/src/release/conf/activemq.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/assembly/src/release/conf/activemq.xml b/assembly/src/release/conf/activemq.xml index e6b5749b0ac..d5658cd7f49 100644 --- a/assembly/src/release/conf/activemq.xml +++ b/assembly/src/release/conf/activemq.xml @@ -147,12 +147,19 @@ http://activemq.apache.org/configuring-transports.html --> - +