Skip to content

Harden default broker and web console configuration (6.2.x backport)#2035

Merged
jbonofre merged 2 commits into
apache:activemq-6.2.xfrom
jbonofre:harden-default-conf-security-6.2.x
May 22, 2026
Merged

Harden default broker and web console configuration (6.2.x backport)#2035
jbonofre merged 2 commits into
apache:activemq-6.2.xfrom
jbonofre:harden-default-conf-security-6.2.x

Conversation

@jbonofre
Copy link
Copy Markdown
Member

@jbonofre jbonofre commented May 21, 2026

Backport of #2029 to activemq-6.2.x.

Reduces 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, plus an SSL recommendation comment on the default openwire connector.
  • activemq.xml: add a commented <plugins> block wiring JAAS authentication, destination-level authorization and broker-side audit logging, with a 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.

Cherry-picked cleanly from main (8cc45c4, eb2a158).

jbonofre added 2 commits May 21, 2026 21:17
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 <plugins> 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.
@jbonofre jbonofre merged commit df95bf8 into apache:activemq-6.2.x May 22, 2026
3 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Apache ActiveMQ v6.2.6 May 22, 2026
@jbonofre jbonofre deleted the harden-default-conf-security-6.2.x branch May 22, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

2 participants