[
https://issues.apache.org/jira/browse/CAMEL-27682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152209#comment-18152209
]
Claus Ibsen commented on CAMEL-27682:
-------------------------------------
Merged in https://github.com/apache/camel/pull/31030 as
https://github.com/apache/camel/commit/b95b21ec6332ba7f798e3ed439b6ed01adff76e5,
fixed in 4.24.0.
_Claude Code on behalf of Claus Ibsen_
> camel-milvus - Add TLS options for the connection
> -------------------------------------------------
>
> Key: CAMEL-27682
> URL: https://issues.apache.org/jira/browse/CAMEL-27682
> Project: Camel
> Issue Type: Improvement
> Components: camel-milvus
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> {{MilvusEndpoint.createClient()}} builds the {{ConnectParam}} of the Milvus
> SDK from the {{host}}, {{port}}, {{timeout}} and {{token}} options only. The
> gRPC connection to Milvus is therefore always plaintext, and the {{token}} (a
> user name and password, or an API key) is sent in clear text. The only way to
> connect with TLS today is to build a {{MilvusClient}} in Java and set it with
> {{MilvusConfiguration.setClient()}}.
> The Milvus SDK (2.6.x) supports TLS on {{ConnectParam.Builder}}:
> {{withSecure(boolean)}}, {{withServerPemPath}} and {{withServerName}}
> (one-way TLS with a given server certificate), and {{withCaPemPath}},
> {{withClientPemPath}} and {{withClientKeyPath}} (mutual TLS).
> h4. Proposed change
> * Add the endpoint options {{secure}} (default false), {{serverPemPath}},
> {{serverName}}, {{caPemPath}}, {{clientPemPath}} and {{clientKeyPath}}, label
> security, and pass them to the {{ConnectParam}} in {{createClient()}}.
> * Fail at startup with a clear message when only some of {{caPemPath}},
> {{clientPemPath}} and {{clientKeyPath}} are set (the SDK then silently falls
> back to a connection without the client certificate).
> * Give the {{token}} option the security label too (item 6 of CAMEL-27680).
> * The SDK takes file paths and builds its own (shaded) Netty SSL context, so
> {{sslContextParameters}} cannot be supported; document this.
> * Document a TLS section in the component doc.
> The default stays plaintext, so nothing changes for existing routes.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)