[
https://issues.apache.org/jira/browse/CAMEL-27218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27218:
--------------------------------
Fix Version/s: 4.22.3
> camel-mongodb - the tls and tlsAllowInvalidHostnames options are not applied
> to the client created from hosts or connectionUriString
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27218
> URL: https://issues.apache.org/jira/browse/CAMEL-27218
> Project: Camel
> Issue Type: Bug
> Components: camel-mongodb
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.22.3, 4.24.0
>
>
> The mongodb endpoint creates its own MongoClient when hosts or
> connectionUriString is set. The tls and tlsAllowInvalidHostnames endpoint
> options are not applied to that client; only sslContextParameters is. An
> endpoint with tls=true and no sslContextParameters therefore connects without
> TLS.
> The TLS options should be applied on top of the connection string, the same
> way for hosts and connectionUriString. When none of them is set, the TLS
> settings of the connection string should be kept.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)