Skip to content

Harden default broker and web console configuration (5.19.x backport)#2036

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

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

Conversation

@jbonofre

@jbonofre jbonofre commented May 21, 2026

Copy link
Copy Markdown
Member

Backport of #2029 to activemq-5.19.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 from main (8cc45c4, eb2a158); jetty.xml auto-merged cleanly around the 5.19.x-specific HashLoginService / role differences.

jbonofre added 2 commits May 21, 2026 21:19
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 8cd761a into apache:activemq-5.19.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 v5.19.8 May 22, 2026
@jbonofre jbonofre deleted the harden-default-conf-security-5.19.x branch May 22, 2026 13:48
@github-project-automation github-project-automation Bot moved this from Todo to Done in Apache ActiveMQ v5.19.7 May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants