davsclaus opened a new pull request, #31048: URL: https://github.com/apache/camel/pull/31048
JIRA: [CAMEL-27735](https://issues.apache.org/jira/browse/CAMEL-27735) The `sslContextParameters` option of `tahu-edge` and `tahu-host`, and `useGlobalSslContextParameters` of their components, never had an effect. `TahuConfiguration.parseFromUrlString()` builds Tahu's `MqttServerDefinition`, which (Tahu 1.0.21) has no field for TLS settings, and Tahu creates its `TahuClient`s itself with new `MqttConnectOptions`. So an `ssl://` server was checked with the default trust store of the JVM, and a configured trust store or client certificate was ignored without any message. Changes: - `TahuDefaultEndpoint.doStart()` fails with an `IllegalArgumentException` when `sslContextParameters` is set, on the endpoint or from the global one with `useGlobalSslContextParameters=true`. The message says the option cannot be applied and that `ssl://` servers use the default trust store of the JVM (`javax.net.ssl.*` system properties). This covers both schemes. - The descriptions of `sslContextParameters` and `useGlobalSslContextParameters` and the doc page say so (the doc said TLS could be configured with an `SSLContextParameters` instance). - Upgrade guide entry, as routes that set the option now fail to start. - `TahuSslContextParametersTest`: start fails with `sslContextParameters` on tahu-edge and tahu-host, and with `useGlobalSslContextParameters=true` plus a global instance; endpoints start without them and when the global instance exists but the flag is off. Three of the five tests fail without the fix. All 25 unit tests of the module pass. - Regenerated the component JSON, the catalog copies and the endpoint/component DSL. Wiring the TLS settings into Tahu's clients is not part of this change. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
