AMQP: TLS is insecure by default (no cert/hostname verification, no truststore/mTLS)
Author: nthmost-orkesCreated Sep 25, 2026Updated Sep 25, 2026
Labelsenhancementjavasecurity
When useSslProtocol=true, the connection factory calls factory.useSslProtocol() with no arguments (AMQPObservableQueue.java:506). That uses the RabbitMQ client's trust-all TrustManager -- it accepts any certificate and does no hostname verification. There is also no way to configure a truststore, keystore, or client certificate (mutual TLS).
Result: TLS "works" but provides encryption without authentication, so it does not protect against MITM.
Scope
- Verify the broker cert against a configurable truststore (JVM default when unset).
- Enable hostname verification (
enableHostnameVerification). - Support a keystore / client cert for mutual TLS.
- Keep the current trust-all path available behind an explicit opt-in flag (dev/test only).
Source: conductor-oss/conductor