jbonofre opened a new pull request, #2036: URL: https://github.com/apache/activemq/pull/2036
## Summary 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` (8cc45c4509, eb2a158ad6); `jetty.xml` auto-merged cleanly around the 5.19.x-specific `HashLoginService` / role differences. ## Test plan - [ ] Verify default assembly starts with only openwire enabled - [ ] Confirm jetty serves the new security headers and no longer leaks `Server`/`X-Powered-By`/`Date` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
