This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch CAMEL-27682-milvus-tls
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ae8dca96c826910a06f18b36e3537ac136addc3f
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 16:48:53 2026 +0100

    CAMEL-27682: camel-milvus - Add TLS options for the connection
    
    The endpoint built the ConnectParam from host, port, timeout and token
    only, so the gRPC connection was always plaintext and the token was sent
    in clear text. Add the options secure, serverPemPath, serverName,
    caPemPath, clientPemPath and clientKeyPath (label security) and pass them
    to the ConnectParam of the Milvus SDK. Incomplete mutual TLS settings
    fail at startup with a clear message. The token option gets the security
    label too. The default stays plaintext.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/catalog/components/milvus.json    |  20 ++-
 .../camel/catalog/docs/milvus-component.adoc       |  26 +++
 .../milvus/MilvusComponentConfigurer.java          |  33 ++++
 .../milvus/MilvusConfigurationConfigurer.java      |  33 ++++
 .../component/milvus/MilvusEndpointConfigurer.java |  33 ++++
 .../component/milvus/MilvusEndpointUriFactory.java |   8 +-
 .../org/apache/camel/component/milvus/milvus.json  |  20 ++-
 .../src/main/docs/milvus-component.adoc            |  26 +++
 .../component/milvus/MilvusConfiguration.java      |  88 +++++++++-
 .../camel/component/milvus/MilvusEndpoint.java     |  44 ++++-
 .../component/milvus/MilvusConnectParamTest.java   | 182 +++++++++++++++++++++
 .../dsl/MilvusComponentBuilderFactory.java         | 155 +++++++++++++++---
 .../endpoint/dsl/MilvusEndpointBuilderFactory.java | 126 +++++++++++++-
 13 files changed, 763 insertions(+), 31 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
index 2def72daa0c9..55e8c72e2a08 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
@@ -30,8 +30,14 @@
     "lazyStartProducer": { "index": 3, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
     "port": { "index": 4, "kind": "property", "displayName": "Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 19530, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The gRPC port of the Milvus server. Not used 
when a MilvusClient is set with MilvusConfiguration.setClient()." },
     "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", 
"configurationField": "configuration", "description": "The timeout in 
milliseconds for connecting to the Milvus server, 10000 if not set. The value 
must be greater than 0. It is not a time [...]
-    "token": { "index": 6, "kind": "property", "displayName": "Token", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by a colon,  [...]
-    "autowiredEnabled": { "index": 7, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
+    "autowiredEnabled": { "index": 6, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
+    "caPemPath": { "index": 7, "kind": "property", "displayName": "Ca Pem 
Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate 
authority that the client trusts for mutual TLS. Set it together [...]
+    "clientKeyPath": { "index": 8, "kind": "property", "displayName": "Client 
Key Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the private key 
(PKCS#8) of the client for mutual TLS. Set it together w [...]
+    "clientPemPath": { "index": 9, "kind": "property", "displayName": "Client 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the client for mutual TLS. Set it together with caPem [...]
+    "secure": { "index": 10, "kind": "property", "displayName": "Secure", 
"group": "security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "Whether to connect to the Milvus server with 
TLS. If not set, the connection is plaintext, and the t [...]
+    "serverName": { "index": 11, "kind": "property", "displayName": "Server 
Name", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The name that the client expects in the 
certificate of the Milvus server (the authority of the gRPC channe [...]
+    "serverPemPath": { "index": 12, "kind": "property", "displayName": "Server 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the Milvus server, or of the certificate authority t [...]
+    "token": { "index": 13, "kind": "property", "displayName": "Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by  [...]
   },
   "headers": {
     "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", 
"QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The action that the producer performs. It wins over the action 
option. The milvus:embeddings transformer reads it too, and accepts only INSERT 
and UPSERT.", "constantNam [...]
@@ -53,7 +59,13 @@
     "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "localhost", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The host name or IP address of the Milvus 
server. Not used when a MilvusClient is set with MilvusC [...]
     "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 19530, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The gRPC port of the Milvus server. Not used 
when a MilvusClient is set with MilvusConfiguration.setClient()." },
     "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", 
"configurationField": "configuration", "description": "The timeout in 
milliseconds for connecting to the Milvus server, 10000 if not set. The value 
must be greater than 0. It is not a tim [...]
-    "token": { "index": 5, "kind": "parameter", "displayName": "Token", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by a colon, [...]
-    "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
+    "lazyStartProducer": { "index": 5, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
+    "caPemPath": { "index": 6, "kind": "parameter", "displayName": "Ca Pem 
Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate 
authority that the client trusts for mutual TLS. Set it togethe [...]
+    "clientKeyPath": { "index": 7, "kind": "parameter", "displayName": "Client 
Key Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the private key 
(PKCS#8) of the client for mutual TLS. Set it together  [...]
+    "clientPemPath": { "index": 8, "kind": "parameter", "displayName": "Client 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the client for mutual TLS. Set it together with caPe [...]
+    "secure": { "index": 9, "kind": "parameter", "displayName": "Secure", 
"group": "security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "Whether to connect to the Milvus server with 
TLS. If not set, the connection is plaintext, and the t [...]
+    "serverName": { "index": 10, "kind": "parameter", "displayName": "Server 
Name", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The name that the client expects in the 
certificate of the Milvus server (the authority of the gRPC chann [...]
+    "serverPemPath": { "index": 11, "kind": "parameter", "displayName": 
"Server Pem Path", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the Milvus server, or of the certificate authority  [...]
+    "token": { "index": 12, "kind": "parameter", "displayName": "Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc
index 19d863dcfa39..d61c12d5515f 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc
@@ -34,6 +34,32 @@ include::partial$component-endpoint-options.adoc[]
 include::partial$component-endpoint-headers.adoc[]
 // component options: END
 
+== TLS
+
+By default, the component connects to Milvus over plaintext gRPC, and the 
`token` is sent in clear text.
+The following options of the endpoint (or of the component configuration) 
connect with TLS:
+
+[width="100%",cols="1,3",options="header"]
+|===
+| Options | Connection
+| `secure=true` | TLS, trusting the certificate authorities of the JVM, such 
as a Zilliz Cloud endpoint.
+| `serverPemPath` | One-way TLS, trusting the server certificate (or the 
certificate authority that signed it) in the PEM file. `serverName` sets the 
name expected in the certificate when it differs from `host`.
+| `caPemPath`, `clientPemPath` and `clientKeyPath` | Mutual TLS: the client 
trusts the certificate authority in `caPemPath`, and presents the certificate 
in `clientPemPath` with its private key (PKCS#8) in `clientKeyPath`. The three 
options must be set together. `serverName` sets the name expected in the server 
certificate when it differs from `host`.
+|===
+
+The file options connect with TLS also when `secure` is not set.
+The component fails at startup when only some of `caPemPath`, `clientPemPath` 
and `clientKeyPath` are set, when `serverPemPath` is set together with them, or 
when `serverName` is set without them or `serverPemPath`.
+
+[source,java]
+----
+from("direct:search")
+    .to("milvus:myCollection?action=SEARCH&host=milvus.example.com&secure=true"
+        + 
"&serverPemPath=/etc/milvus/certs/server.pem&token=RAW({{milvus.token}})");
+----
+
+The Milvus SDK reads the certificates and the key from files and builds its 
own SSL context, so the component does not support `sslContextParameters`.
+For other TLS settings, create a `MilvusServiceClient` with your own 
`ConnectParam` and set it with `MilvusConfiguration.setClient()`: the TLS 
options are then not used.
+
 == Examples
 
 === Collection Examples
diff --git 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusComponentConfigurer.java
 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusComponentConfigurer.java
index 724c964e6755..05106f564989 100644
--- 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusComponentConfigurer.java
+++ 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusComponentConfigurer.java
@@ -34,11 +34,22 @@ public class MilvusComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "action": 
getOrCreateConfiguration(target).setAction(property(camelContext, 
org.apache.camel.component.milvus.MilvusAction.class, value)); return true;
         case "autowiredenabled":
         case "autowiredEnabled": 
target.setAutowiredEnabled(property(camelContext, boolean.class, value)); 
return true;
+        case "capempath":
+        case "caPemPath": 
getOrCreateConfiguration(target).setCaPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "clientkeypath":
+        case "clientKeyPath": 
getOrCreateConfiguration(target).setClientKeyPath(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "clientpempath":
+        case "clientPemPath": 
getOrCreateConfiguration(target).setClientPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "configuration": target.setConfiguration(property(camelContext, 
org.apache.camel.component.milvus.MilvusConfiguration.class, value)); return 
true;
         case "host": 
getOrCreateConfiguration(target).setHost(property(camelContext, 
java.lang.String.class, value)); return true;
         case "lazystartproducer":
         case "lazyStartProducer": 
target.setLazyStartProducer(property(camelContext, boolean.class, value)); 
return true;
         case "port": 
getOrCreateConfiguration(target).setPort(property(camelContext, int.class, 
value)); return true;
+        case "secure": 
getOrCreateConfiguration(target).setSecure(property(camelContext, 
boolean.class, value)); return true;
+        case "servername":
+        case "serverName": 
getOrCreateConfiguration(target).setServerName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "serverpempath":
+        case "serverPemPath": 
getOrCreateConfiguration(target).setServerPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "timeout": 
getOrCreateConfiguration(target).setTimeout(property(camelContext, long.class, 
value)); return true;
         case "token": 
getOrCreateConfiguration(target).setToken(property(camelContext, 
java.lang.String.class, value)); return true;
         default: return false;
@@ -51,11 +62,22 @@ public class MilvusComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "action": return 
org.apache.camel.component.milvus.MilvusAction.class;
         case "autowiredenabled":
         case "autowiredEnabled": return boolean.class;
+        case "capempath":
+        case "caPemPath": return java.lang.String.class;
+        case "clientkeypath":
+        case "clientKeyPath": return java.lang.String.class;
+        case "clientpempath":
+        case "clientPemPath": return java.lang.String.class;
         case "configuration": return 
org.apache.camel.component.milvus.MilvusConfiguration.class;
         case "host": return java.lang.String.class;
         case "lazystartproducer":
         case "lazyStartProducer": return boolean.class;
         case "port": return int.class;
+        case "secure": return boolean.class;
+        case "servername":
+        case "serverName": return java.lang.String.class;
+        case "serverpempath":
+        case "serverPemPath": return java.lang.String.class;
         case "timeout": return long.class;
         case "token": return java.lang.String.class;
         default: return null;
@@ -69,11 +91,22 @@ public class MilvusComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "action": return getOrCreateConfiguration(target).getAction();
         case "autowiredenabled":
         case "autowiredEnabled": return target.isAutowiredEnabled();
+        case "capempath":
+        case "caPemPath": return 
getOrCreateConfiguration(target).getCaPemPath();
+        case "clientkeypath":
+        case "clientKeyPath": return 
getOrCreateConfiguration(target).getClientKeyPath();
+        case "clientpempath":
+        case "clientPemPath": return 
getOrCreateConfiguration(target).getClientPemPath();
         case "configuration": return target.getConfiguration();
         case "host": return getOrCreateConfiguration(target).getHost();
         case "lazystartproducer":
         case "lazyStartProducer": return target.isLazyStartProducer();
         case "port": return getOrCreateConfiguration(target).getPort();
+        case "secure": return getOrCreateConfiguration(target).isSecure();
+        case "servername":
+        case "serverName": return 
getOrCreateConfiguration(target).getServerName();
+        case "serverpempath":
+        case "serverPemPath": return 
getOrCreateConfiguration(target).getServerPemPath();
         case "timeout": return getOrCreateConfiguration(target).getTimeout();
         case "token": return getOrCreateConfiguration(target).getToken();
         default: return null;
diff --git 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusConfigurationConfigurer.java
 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusConfigurationConfigurer.java
index 30a7206eda61..aa756e239833 100644
--- 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusConfigurationConfigurer.java
+++ 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusConfigurationConfigurer.java
@@ -25,9 +25,20 @@ public class MilvusConfigurationConfigurer extends 
org.apache.camel.support.comp
         org.apache.camel.component.milvus.MilvusConfiguration target = 
(org.apache.camel.component.milvus.MilvusConfiguration) obj;
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": target.setAction(property(camelContext, 
org.apache.camel.component.milvus.MilvusAction.class, value)); return true;
+        case "capempath":
+        case "caPemPath": target.setCaPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "client": target.setClient(property(camelContext, 
io.milvus.client.MilvusClient.class, value)); return true;
+        case "clientkeypath":
+        case "clientKeyPath": target.setClientKeyPath(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "clientpempath":
+        case "clientPemPath": target.setClientPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "host": target.setHost(property(camelContext, 
java.lang.String.class, value)); return true;
         case "port": target.setPort(property(camelContext, int.class, value)); 
return true;
+        case "secure": target.setSecure(property(camelContext, boolean.class, 
value)); return true;
+        case "servername":
+        case "serverName": target.setServerName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "serverpempath":
+        case "serverPemPath": target.setServerPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "timeout": target.setTimeout(property(camelContext, long.class, 
value)); return true;
         case "token": target.setToken(property(camelContext, 
java.lang.String.class, value)); return true;
         default: return false;
@@ -38,9 +49,20 @@ public class MilvusConfigurationConfigurer extends 
org.apache.camel.support.comp
     public Class<?> getOptionType(String name, boolean ignoreCase) {
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": return 
org.apache.camel.component.milvus.MilvusAction.class;
+        case "capempath":
+        case "caPemPath": return java.lang.String.class;
         case "client": return io.milvus.client.MilvusClient.class;
+        case "clientkeypath":
+        case "clientKeyPath": return java.lang.String.class;
+        case "clientpempath":
+        case "clientPemPath": return java.lang.String.class;
         case "host": return java.lang.String.class;
         case "port": return int.class;
+        case "secure": return boolean.class;
+        case "servername":
+        case "serverName": return java.lang.String.class;
+        case "serverpempath":
+        case "serverPemPath": return java.lang.String.class;
         case "timeout": return long.class;
         case "token": return java.lang.String.class;
         default: return null;
@@ -52,9 +74,20 @@ public class MilvusConfigurationConfigurer extends 
org.apache.camel.support.comp
         org.apache.camel.component.milvus.MilvusConfiguration target = 
(org.apache.camel.component.milvus.MilvusConfiguration) obj;
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": return target.getAction();
+        case "capempath":
+        case "caPemPath": return target.getCaPemPath();
         case "client": return target.getClient();
+        case "clientkeypath":
+        case "clientKeyPath": return target.getClientKeyPath();
+        case "clientpempath":
+        case "clientPemPath": return target.getClientPemPath();
         case "host": return target.getHost();
         case "port": return target.getPort();
+        case "secure": return target.isSecure();
+        case "servername":
+        case "serverName": return target.getServerName();
+        case "serverpempath":
+        case "serverPemPath": return target.getServerPemPath();
         case "timeout": return target.getTimeout();
         case "token": return target.getToken();
         default: return null;
diff --git 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointConfigurer.java
 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointConfigurer.java
index ded5a4555ce0..6d1ec3405a3e 100644
--- 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointConfigurer.java
+++ 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointConfigurer.java
@@ -25,10 +25,21 @@ public class MilvusEndpointConfigurer extends 
PropertyConfigurerSupport implemen
         MilvusEndpoint target = (MilvusEndpoint) obj;
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": 
target.getConfiguration().setAction(property(camelContext, 
org.apache.camel.component.milvus.MilvusAction.class, value)); return true;
+        case "capempath":
+        case "caPemPath": 
target.getConfiguration().setCaPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "clientkeypath":
+        case "clientKeyPath": 
target.getConfiguration().setClientKeyPath(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "clientpempath":
+        case "clientPemPath": 
target.getConfiguration().setClientPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "host": target.getConfiguration().setHost(property(camelContext, 
java.lang.String.class, value)); return true;
         case "lazystartproducer":
         case "lazyStartProducer": 
target.setLazyStartProducer(property(camelContext, boolean.class, value)); 
return true;
         case "port": target.getConfiguration().setPort(property(camelContext, 
int.class, value)); return true;
+        case "secure": 
target.getConfiguration().setSecure(property(camelContext, boolean.class, 
value)); return true;
+        case "servername":
+        case "serverName": 
target.getConfiguration().setServerName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "serverpempath":
+        case "serverPemPath": 
target.getConfiguration().setServerPemPath(property(camelContext, 
java.lang.String.class, value)); return true;
         case "timeout": 
target.getConfiguration().setTimeout(property(camelContext, long.class, 
value)); return true;
         case "token": 
target.getConfiguration().setToken(property(camelContext, 
java.lang.String.class, value)); return true;
         default: return false;
@@ -39,10 +50,21 @@ public class MilvusEndpointConfigurer extends 
PropertyConfigurerSupport implemen
     public Class<?> getOptionType(String name, boolean ignoreCase) {
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": return 
org.apache.camel.component.milvus.MilvusAction.class;
+        case "capempath":
+        case "caPemPath": return java.lang.String.class;
+        case "clientkeypath":
+        case "clientKeyPath": return java.lang.String.class;
+        case "clientpempath":
+        case "clientPemPath": return java.lang.String.class;
         case "host": return java.lang.String.class;
         case "lazystartproducer":
         case "lazyStartProducer": return boolean.class;
         case "port": return int.class;
+        case "secure": return boolean.class;
+        case "servername":
+        case "serverName": return java.lang.String.class;
+        case "serverpempath":
+        case "serverPemPath": return java.lang.String.class;
         case "timeout": return long.class;
         case "token": return java.lang.String.class;
         default: return null;
@@ -54,10 +76,21 @@ public class MilvusEndpointConfigurer extends 
PropertyConfigurerSupport implemen
         MilvusEndpoint target = (MilvusEndpoint) obj;
         switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : name) {
         case "action": return target.getConfiguration().getAction();
+        case "capempath":
+        case "caPemPath": return target.getConfiguration().getCaPemPath();
+        case "clientkeypath":
+        case "clientKeyPath": return 
target.getConfiguration().getClientKeyPath();
+        case "clientpempath":
+        case "clientPemPath": return 
target.getConfiguration().getClientPemPath();
         case "host": return target.getConfiguration().getHost();
         case "lazystartproducer":
         case "lazyStartProducer": return target.isLazyStartProducer();
         case "port": return target.getConfiguration().getPort();
+        case "secure": return target.getConfiguration().isSecure();
+        case "servername":
+        case "serverName": return target.getConfiguration().getServerName();
+        case "serverpempath":
+        case "serverPemPath": return 
target.getConfiguration().getServerPemPath();
         case "timeout": return target.getConfiguration().getTimeout();
         case "token": return target.getConfiguration().getToken();
         default: return null;
diff --git 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointUriFactory.java
 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointUriFactory.java
index a99e47c53b20..cf7415c7232f 100644
--- 
a/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointUriFactory.java
+++ 
b/components/camel-ai/camel-milvus/src/generated/java/org/apache/camel/component/milvus/MilvusEndpointUriFactory.java
@@ -24,12 +24,18 @@ public class MilvusEndpointUriFactory extends 
org.apache.camel.support.component
     private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
     private static final Map<String, String> MULTI_VALUE_PREFIXES;
     static {
-        Set<String> props = new HashSet<>(7);
+        Set<String> props = new HashSet<>(13);
         props.add("action");
+        props.add("caPemPath");
+        props.add("clientKeyPath");
+        props.add("clientPemPath");
         props.add("collection");
         props.add("host");
         props.add("lazyStartProducer");
         props.add("port");
+        props.add("secure");
+        props.add("serverName");
+        props.add("serverPemPath");
         props.add("timeout");
         props.add("token");
         PROPERTY_NAMES = Collections.unmodifiableSet(props);
diff --git 
a/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json
 
b/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json
index 2def72daa0c9..55e8c72e2a08 100644
--- 
a/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json
+++ 
b/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json
@@ -30,8 +30,14 @@
     "lazyStartProducer": { "index": 3, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
     "port": { "index": 4, "kind": "property", "displayName": "Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 19530, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The gRPC port of the Milvus server. Not used 
when a MilvusClient is set with MilvusConfiguration.setClient()." },
     "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", 
"configurationField": "configuration", "description": "The timeout in 
milliseconds for connecting to the Milvus server, 10000 if not set. The value 
must be greater than 0. It is not a time [...]
-    "token": { "index": 6, "kind": "property", "displayName": "Token", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by a colon,  [...]
-    "autowiredEnabled": { "index": 7, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
+    "autowiredEnabled": { "index": 6, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
+    "caPemPath": { "index": 7, "kind": "property", "displayName": "Ca Pem 
Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate 
authority that the client trusts for mutual TLS. Set it together [...]
+    "clientKeyPath": { "index": 8, "kind": "property", "displayName": "Client 
Key Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the private key 
(PKCS#8) of the client for mutual TLS. Set it together w [...]
+    "clientPemPath": { "index": 9, "kind": "property", "displayName": "Client 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the client for mutual TLS. Set it together with caPem [...]
+    "secure": { "index": 10, "kind": "property", "displayName": "Secure", 
"group": "security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "Whether to connect to the Milvus server with 
TLS. If not set, the connection is plaintext, and the t [...]
+    "serverName": { "index": 11, "kind": "property", "displayName": "Server 
Name", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The name that the client expects in the 
certificate of the Milvus server (the authority of the gRPC channe [...]
+    "serverPemPath": { "index": 12, "kind": "property", "displayName": "Server 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the Milvus server, or of the certificate authority t [...]
+    "token": { "index": 13, "kind": "property", "displayName": "Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by  [...]
   },
   "headers": {
     "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", 
"QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The action that the producer performs. It wins over the action 
option. The milvus:embeddings transformer reads it too, and accepts only INSERT 
and UPSERT.", "constantNam [...]
@@ -53,7 +59,13 @@
     "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "localhost", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The host name or IP address of the Milvus 
server. Not used when a MilvusClient is set with MilvusC [...]
     "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 19530, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The gRPC port of the Milvus server. Not used 
when a MilvusClient is set with MilvusConfiguration.setClient()." },
     "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", 
"configurationField": "configuration", "description": "The timeout in 
milliseconds for connecting to the Milvus server, 10000 if not set. The value 
must be greater than 0. It is not a tim [...]
-    "token": { "index": 5, "kind": "parameter", "displayName": "Token", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by a colon, [...]
-    "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
+    "lazyStartProducer": { "index": 5, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
+    "caPemPath": { "index": 6, "kind": "parameter", "displayName": "Ca Pem 
Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate 
authority that the client trusts for mutual TLS. Set it togethe [...]
+    "clientKeyPath": { "index": 7, "kind": "parameter", "displayName": "Client 
Key Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the private key 
(PKCS#8) of the client for mutual TLS. Set it together  [...]
+    "clientPemPath": { "index": 8, "kind": "parameter", "displayName": "Client 
Pem Path", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the client for mutual TLS. Set it together with caPe [...]
+    "secure": { "index": 9, "kind": "parameter", "displayName": "Secure", 
"group": "security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "Whether to connect to the Milvus server with 
TLS. If not set, the connection is plaintext, and the t [...]
+    "serverName": { "index": 10, "kind": "parameter", "displayName": "Server 
Name", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The name that the client expects in the 
certificate of the Milvus server (the authority of the gRPC chann [...]
+    "serverPemPath": { "index": 11, "kind": "parameter", "displayName": 
"Server Pem Path", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The path of a PEM file with the certificate of 
the Milvus server, or of the certificate authority  [...]
+    "token": { "index": 12, "kind": "parameter", "displayName": "Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": 
"configuration", "description": "The token that the client sends to 
authenticate with Milvus: a user name and password joined by [...]
   }
 }
diff --git 
a/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc 
b/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc
index 19d863dcfa39..d61c12d5515f 100644
--- a/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc
+++ b/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc
@@ -34,6 +34,32 @@ include::partial$component-endpoint-options.adoc[]
 include::partial$component-endpoint-headers.adoc[]
 // component options: END
 
+== TLS
+
+By default, the component connects to Milvus over plaintext gRPC, and the 
`token` is sent in clear text.
+The following options of the endpoint (or of the component configuration) 
connect with TLS:
+
+[width="100%",cols="1,3",options="header"]
+|===
+| Options | Connection
+| `secure=true` | TLS, trusting the certificate authorities of the JVM, such 
as a Zilliz Cloud endpoint.
+| `serverPemPath` | One-way TLS, trusting the server certificate (or the 
certificate authority that signed it) in the PEM file. `serverName` sets the 
name expected in the certificate when it differs from `host`.
+| `caPemPath`, `clientPemPath` and `clientKeyPath` | Mutual TLS: the client 
trusts the certificate authority in `caPemPath`, and presents the certificate 
in `clientPemPath` with its private key (PKCS#8) in `clientKeyPath`. The three 
options must be set together. `serverName` sets the name expected in the server 
certificate when it differs from `host`.
+|===
+
+The file options connect with TLS also when `secure` is not set.
+The component fails at startup when only some of `caPemPath`, `clientPemPath` 
and `clientKeyPath` are set, when `serverPemPath` is set together with them, or 
when `serverName` is set without them or `serverPemPath`.
+
+[source,java]
+----
+from("direct:search")
+    .to("milvus:myCollection?action=SEARCH&host=milvus.example.com&secure=true"
+        + 
"&serverPemPath=/etc/milvus/certs/server.pem&token=RAW({{milvus.token}})");
+----
+
+The Milvus SDK reads the certificates and the key from files and builds its 
own SSL context, so the component does not support `sslContextParameters`.
+For other TLS settings, create a `MilvusServiceClient` with your own 
`ConnectParam` and set it with `MilvusConfiguration.setClient()`: the TLS 
options are then not used.
+
 == Examples
 
 === Collection Examples
diff --git 
a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java
 
b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java
index e83bac2e52cb..c6ab0a78abad 100644
--- 
a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java
+++ 
b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java
@@ -41,7 +41,8 @@ public class MilvusConfiguration implements Cloneable {
     private int port = 19530;
 
     @Metadata(security = "secret")
-    @UriParam(description = "The token that the client sends to authenticate 
with Milvus: a user name and password joined"
+    @UriParam(label = "security",
+              description = "The token that the client sends to authenticate 
with Milvus: a user name and password joined"
                             + " by a colon, or an API key of Zilliz Cloud. If 
not set, the client sends"
                             + " no credentials."
                             + " Not used when a MilvusClient is set with 
MilvusConfiguration.setClient().")
@@ -52,6 +53,43 @@ public class MilvusConfiguration implements Cloneable {
                             + " Not used when a MilvusClient is set with 
MilvusConfiguration.setClient().")
     private long timeout = 10000L;
 
+    @UriParam(label = "security", description = "Whether to connect to the 
Milvus server with TLS. If not set, the"
+                                                + " connection is plaintext, 
and the token is sent in clear text, unless"
+                                                + " serverPemPath, or 
caPemPath with clientPemPath and clientKeyPath, is"
+                                                + " set. Without these 
options, the client trusts the certificate"
+                                                + " authorities of the JVM."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private boolean secure;
+
+    @UriParam(label = "security", description = "The path of a PEM file with 
the certificate of the Milvus server, or of"
+                                                + " the certificate authority 
that signed it, that the client trusts for"
+                                                + " one-way TLS. Setting it 
connects with TLS."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private String serverPemPath;
+
+    @UriParam(label = "security", description = "The name that the client 
expects in the certificate of the Milvus server"
+                                                + " (the authority of the gRPC 
channel), when it differs from the host."
+                                                + " Only used with 
serverPemPath, where the host is used if not set,"
+                                                + " or with mutual TLS."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private String serverName;
+
+    @UriParam(label = "security", description = "The path of a PEM file with 
the certificate authority that the client"
+                                                + " trusts for mutual TLS. Set 
it together with clientPemPath and"
+                                                + " clientKeyPath; for one-way 
TLS use serverPemPath instead."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private String caPemPath;
+
+    @UriParam(label = "security", description = "The path of a PEM file with 
the certificate of the client for mutual TLS."
+                                                + " Set it together with 
caPemPath and clientKeyPath."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private String clientPemPath;
+
+    @UriParam(label = "security", description = "The path of a PEM file with 
the private key (PKCS#8) of the client for"
+                                                + " mutual TLS. Set it 
together with caPemPath and clientPemPath."
+                                                + " Not used when a 
MilvusClient is set with MilvusConfiguration.setClient().")
+    private String clientKeyPath;
+
     @Metadata(autowired = true)
     private MilvusClient client;
 
@@ -95,6 +133,54 @@ public class MilvusConfiguration implements Cloneable {
         this.timeout = timeout;
     }
 
+    public boolean isSecure() {
+        return secure;
+    }
+
+    public void setSecure(boolean secure) {
+        this.secure = secure;
+    }
+
+    public String getServerPemPath() {
+        return serverPemPath;
+    }
+
+    public void setServerPemPath(String serverPemPath) {
+        this.serverPemPath = serverPemPath;
+    }
+
+    public String getServerName() {
+        return serverName;
+    }
+
+    public void setServerName(String serverName) {
+        this.serverName = serverName;
+    }
+
+    public String getCaPemPath() {
+        return caPemPath;
+    }
+
+    public void setCaPemPath(String caPemPath) {
+        this.caPemPath = caPemPath;
+    }
+
+    public String getClientPemPath() {
+        return clientPemPath;
+    }
+
+    public void setClientPemPath(String clientPemPath) {
+        this.clientPemPath = clientPemPath;
+    }
+
+    public String getClientKeyPath() {
+        return clientKeyPath;
+    }
+
+    public void setClientKeyPath(String clientKeyPath) {
+        this.clientKeyPath = clientKeyPath;
+    }
+
     public MilvusClient getClient() {
         return client;
     }
diff --git 
a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java
 
b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java
index 70363a91d7fc..61679992f22d 100644
--- 
a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java
+++ 
b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java
@@ -35,6 +35,7 @@ import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
 import org.apache.camel.support.DefaultEndpoint;
+import org.apache.camel.util.ObjectHelper;
 
 /**
  * Create collections and indexes, and insert, upsert, delete, search and 
query entities in the Milvus vector database.
@@ -185,7 +186,10 @@ public class MilvusEndpoint extends DefaultEndpoint 
implements EndpointServiceLo
     }
 
     private MilvusClient createClient() {
+        return new MilvusServiceClient(createConnectParam());
+    }
 
+    ConnectParam createConnectParam() {
         ConnectParam.Builder parameters = 
ConnectParam.newBuilder().withHost(configuration.getHost())
                 
.withPort(configuration.getPort()).withConnectTimeout(configuration.getTimeout(),
 TimeUnit.MILLISECONDS);
 
@@ -193,6 +197,44 @@ public class MilvusEndpoint extends DefaultEndpoint 
implements EndpointServiceLo
             parameters.withToken(configuration.getToken());
         }
 
-        return new MilvusServiceClient(parameters.build());
+        parameters.withSecure(configuration.isSecure());
+
+        String caPemPath = configuration.getCaPemPath();
+        String clientPemPath = configuration.getClientPemPath();
+        String clientKeyPath = configuration.getClientKeyPath();
+        boolean mutualTls = ObjectHelper.isNotEmpty(caPemPath) || 
ObjectHelper.isNotEmpty(clientPemPath)
+                || ObjectHelper.isNotEmpty(clientKeyPath);
+        if (mutualTls && (ObjectHelper.isEmpty(caPemPath) || 
ObjectHelper.isEmpty(clientPemPath)
+                || ObjectHelper.isEmpty(clientKeyPath))) {
+            // the SDK ignores them unless all three are set
+            throw new IllegalArgumentException(
+                    "The options caPemPath, clientPemPath and clientKeyPath 
must be set together for mutual TLS");
+        }
+        if (mutualTls && 
ObjectHelper.isNotEmpty(configuration.getServerPemPath())) {
+            // the SDK uses serverPemPath and ignores the client certificate
+            throw new IllegalArgumentException(
+                    "The option serverPemPath (one-way TLS) cannot be set 
together with caPemPath, clientPemPath and"
+                                               + " clientKeyPath (mutual 
TLS)");
+        }
+
+        if (ObjectHelper.isNotEmpty(configuration.getServerPemPath())) {
+            parameters.withServerPemPath(configuration.getServerPemPath());
+            // the SDK always overrides the authority with the server name for 
one-way TLS
+            
parameters.withServerName(ObjectHelper.isNotEmpty(configuration.getServerName())
+                    ? configuration.getServerName() : configuration.getHost());
+        } else if (ObjectHelper.isNotEmpty(configuration.getServerName())) {
+            if (!mutualTls) {
+                // the SDK ignores it without serverPemPath or mutual TLS
+                throw new IllegalArgumentException(
+                        "The option serverName can only be used with 
serverPemPath, or with caPemPath, clientPemPath"
+                                                   + " and clientKeyPath");
+            }
+            parameters.withServerName(configuration.getServerName());
+        }
+        if (mutualTls) {
+            
parameters.withCaPemPath(caPemPath).withClientPemPath(clientPemPath).withClientKeyPath(clientKeyPath);
+        }
+
+        return parameters.build();
     }
 }
diff --git 
a/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/MilvusConnectParamTest.java
 
b/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/MilvusConnectParamTest.java
new file mode 100644
index 000000000000..b851b238c0ea
--- /dev/null
+++ 
b/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/MilvusConnectParamTest.java
@@ -0,0 +1,182 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.milvus;
+
+import java.io.InputStream;
+import java.net.InetAddress;
+import java.net.ServerSocket;
+import java.net.Socket;
+import java.nio.charset.StandardCharsets;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+
+import io.milvus.client.MilvusServiceClient;
+import io.milvus.param.ConnectParam;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.junit.jupiter.api.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+/**
+ * The TLS options of the endpoint reach the ConnectParam of the Milvus SDK. 
No Milvus server is needed.
+ */
+public class MilvusConnectParamTest extends CamelTestSupport {
+
+    @Test
+    public void plaintextByDefault() {
+        ConnectParam param = 
connectParam("milvus:test?host=milvus.example.com&port=19531&token=user:secret");
+
+        assertThat(param.getHost()).isEqualTo("milvus.example.com");
+        assertThat(param.getPort()).isEqualTo(19531);
+        assertThat(param.isSecure()).isFalse();
+        assertThat(param.getServerPemPath()).isNull();
+        assertThat(param.getServerName()).isNull();
+        assertThat(param.getCaPemPath()).isNull();
+        assertThat(param.getClientPemPath()).isNull();
+        assertThat(param.getClientKeyPath()).isNull();
+    }
+
+    @Test
+    public void secure() {
+        ConnectParam param = 
connectParam("milvus:test?host=milvus.example.com&secure=true");
+
+        assertThat(param.isSecure()).isTrue();
+        assertThat(param.getServerPemPath()).isNull();
+        assertThat(param.getCaPemPath()).isNull();
+    }
+
+    @Test
+    public void serverPemPath() {
+        ConnectParam param = 
connectParam("milvus:test?host=milvus.example.com&secure=true&serverPemPath=/certs/server.pem");
+
+        assertThat(param.isSecure()).isTrue();
+        assertThat(param.getServerPemPath()).isEqualTo("/certs/server.pem");
+        // the SDK overrides the authority with the server name, so the host 
is the default
+        assertThat(param.getServerName()).isEqualTo("milvus.example.com");
+    }
+
+    @Test
+    public void serverPemPathAndServerName() {
+        ConnectParam param = connectParam(
+                
"milvus:test?host=10.0.0.1&secure=true&serverPemPath=/certs/server.pem&serverName=milvus.example.com");
+
+        assertThat(param.getServerPemPath()).isEqualTo("/certs/server.pem");
+        assertThat(param.getServerName()).isEqualTo("milvus.example.com");
+    }
+
+    @Test
+    public void mutualTls() {
+        ConnectParam param = 
connectParam("milvus:test?host=10.0.0.1&secure=true&caPemPath=/certs/ca.pem"
+                                          + 
"&clientPemPath=/certs/client.pem&clientKeyPath=/certs/client.key"
+                                          + "&serverName=milvus.example.com");
+
+        assertThat(param.isSecure()).isTrue();
+        assertThat(param.getCaPemPath()).isEqualTo("/certs/ca.pem");
+        assertThat(param.getClientPemPath()).isEqualTo("/certs/client.pem");
+        assertThat(param.getClientKeyPath()).isEqualTo("/certs/client.key");
+        assertThat(param.getServerName()).isEqualTo("milvus.example.com");
+        assertThat(param.getServerPemPath()).isNull();
+    }
+
+    @Test
+    public void mutualTlsWithoutClientKey() {
+        MilvusEndpoint endpoint = context.getEndpoint(
+                
"milvus:test?secure=true&caPemPath=/certs/ca.pem&clientPemPath=/certs/client.pem",
 MilvusEndpoint.class);
+
+        assertThatThrownBy(endpoint::createConnectParam)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("caPemPath, clientPemPath and 
clientKeyPath must be set together");
+    }
+
+    @Test
+    public void serverPemPathWithMutualTls() {
+        MilvusEndpoint endpoint = context.getEndpoint(
+                
"milvus:test?serverPemPath=/certs/server.pem&caPemPath=/certs/ca.pem&clientPemPath=/certs/client.pem"
+                                                      + 
"&clientKeyPath=/certs/client.key",
+                MilvusEndpoint.class);
+
+        assertThatThrownBy(endpoint::createConnectParam)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("serverPemPath");
+    }
+
+    @Test
+    public void serverNameAlone() {
+        MilvusEndpoint endpoint = 
context.getEndpoint("milvus:test?secure=true&serverName=milvus.example.com",
+                MilvusEndpoint.class);
+
+        assertThatThrownBy(endpoint::createConnectParam)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("serverName");
+    }
+
+    @Test
+    public void plaintextConnection() throws Exception {
+        // a plaintext gRPC channel starts with the HTTP/2 connection preface
+        byte[] first = firstBytes("milvus:test?host=127.0.0.1&timeout=2000");
+
+        assertThat(new String(first, 
StandardCharsets.US_ASCII)).isEqualTo("PRI *");
+    }
+
+    @Test
+    public void secureConnection() throws Exception {
+        // a TLS channel starts with a TLS handshake record (content type 22)
+        byte[] first = 
firstBytes("milvus:test?host=127.0.0.1&timeout=2000&secure=true");
+
+        assertThat(first[0]).isEqualTo((byte) 0x16);
+        assertThat(first[1]).isEqualTo((byte) 0x03);
+    }
+
+    private ConnectParam connectParam(String uri) {
+        return context.getEndpoint(uri, 
MilvusEndpoint.class).createConnectParam();
+    }
+
+    /**
+     * Lets the Milvus client connect to a local socket that is not a Milvus 
server, and returns the first bytes that
+     * the client sends.
+     */
+    private byte[] firstBytes(String uri) throws Exception {
+        ExecutorService executor = Executors.newSingleThreadExecutor();
+        try (ServerSocket server = new ServerSocket(0, 1, 
InetAddress.getLoopbackAddress())) {
+            server.setSoTimeout(20000);
+            ConnectParam param = context.getEndpoint(uri + "&port=" + 
server.getLocalPort(), MilvusEndpoint.class)
+                    .createConnectParam();
+            // the client connects in the constructor and fails, as the server 
does not answer
+            Future<?> client = executor.submit(() -> {
+                try {
+                    new MilvusServiceClient(param).close();
+                } catch (Exception e) {
+                    // expected
+                }
+            });
+            byte[] first;
+            try (Socket socket = server.accept()) {
+                socket.setSoTimeout(20000);
+                InputStream in = socket.getInputStream();
+                first = in.readNBytes(5);
+            }
+            server.close();
+            client.get(30, TimeUnit.SECONDS);
+            return first;
+        } finally {
+            executor.shutdownNow();
+        }
+    }
+}
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java
index 8f2035a4a0ec..c20bcb7acd1c 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java
@@ -167,24 +167,6 @@ public interface MilvusComponentBuilderFactory {
             return this;
         }
     
-        /**
-         * The token that the client sends to authenticate with Milvus: a user
-         * name and password joined by a colon, or an API key of Zilliz Cloud.
-         * If not set, the client sends no credentials. Not used when a
-         * MilvusClient is set with MilvusConfiguration.setClient().
-         * 
-         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
-         * 
-         * Group: producer
-         * 
-         * @param token the value to set
-         * @return the dsl builder
-         */
-        default MilvusComponentBuilder token(java.lang.String token) {
-            doSetProperty("token", token);
-            return this;
-        }
-    
         
         /**
          * Whether autowiring is enabled. This is used for automatic autowiring
@@ -206,6 +188,135 @@ public interface MilvusComponentBuilderFactory {
             doSetProperty("autowiredEnabled", autowiredEnabled);
             return this;
         }
+    
+        /**
+         * The path of a PEM file with the certificate authority that the 
client
+         * trusts for mutual TLS. Set it together with clientPemPath and
+         * clientKeyPath; for one-way TLS use serverPemPath instead. Not used
+         * when a MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param caPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder caPemPath(java.lang.String caPemPath) {
+            doSetProperty("caPemPath", caPemPath);
+            return this;
+        }
+    
+        /**
+         * The path of a PEM file with the private key (PKCS#8) of the client
+         * for mutual TLS. Set it together with caPemPath and clientPemPath. 
Not
+         * used when a MilvusClient is set with 
MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param clientKeyPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder clientKeyPath(java.lang.String 
clientKeyPath) {
+            doSetProperty("clientKeyPath", clientKeyPath);
+            return this;
+        }
+    
+        /**
+         * The path of a PEM file with the certificate of the client for mutual
+         * TLS. Set it together with caPemPath and clientKeyPath. Not used when
+         * a MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param clientPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder clientPemPath(java.lang.String 
clientPemPath) {
+            doSetProperty("clientPemPath", clientPemPath);
+            return this;
+        }
+    
+        
+        /**
+         * Whether to connect to the Milvus server with TLS. If not set, the
+         * connection is plaintext, and the token is sent in clear text, unless
+         * serverPemPath, or caPemPath with clientPemPath and clientKeyPath, is
+         * set. Without these options, the client trusts the certificate
+         * authorities of the JVM. Not used when a MilvusClient is set with
+         * MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: security
+         * 
+         * @param secure the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder secure(boolean secure) {
+            doSetProperty("secure", secure);
+            return this;
+        }
+    
+        /**
+         * The name that the client expects in the certificate of the Milvus
+         * server (the authority of the gRPC channel), when it differs from the
+         * host. Only used with serverPemPath, where the host is used if not
+         * set, or with mutual TLS. Not used when a MilvusClient is set with
+         * MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param serverName the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder serverName(java.lang.String serverName) 
{
+            doSetProperty("serverName", serverName);
+            return this;
+        }
+    
+        /**
+         * The path of a PEM file with the certificate of the Milvus server, or
+         * of the certificate authority that signed it, that the client trusts
+         * for one-way TLS. Setting it connects with TLS. Not used when a
+         * MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param serverPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder serverPemPath(java.lang.String 
serverPemPath) {
+            doSetProperty("serverPemPath", serverPemPath);
+            return this;
+        }
+    
+        /**
+         * The token that the client sends to authenticate with Milvus: a user
+         * name and password joined by a colon, or an API key of Zilliz Cloud.
+         * If not set, the client sends no credentials. Not used when a
+         * MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param token the value to set
+         * @return the dsl builder
+         */
+        default MilvusComponentBuilder token(java.lang.String token) {
+            doSetProperty("token", token);
+            return this;
+        }
     }
 
     class MilvusComponentBuilderImpl
@@ -233,8 +344,14 @@ public interface MilvusComponentBuilderFactory {
             case "lazyStartProducer": ((MilvusComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "port": getOrCreateConfiguration((MilvusComponent) 
component).setPort((int) value); return true;
             case "timeout": getOrCreateConfiguration((MilvusComponent) 
component).setTimeout((long) value); return true;
-            case "token": getOrCreateConfiguration((MilvusComponent) 
component).setToken((java.lang.String) value); return true;
             case "autowiredEnabled": ((MilvusComponent) 
component).setAutowiredEnabled((boolean) value); return true;
+            case "caPemPath": getOrCreateConfiguration((MilvusComponent) 
component).setCaPemPath((java.lang.String) value); return true;
+            case "clientKeyPath": getOrCreateConfiguration((MilvusComponent) 
component).setClientKeyPath((java.lang.String) value); return true;
+            case "clientPemPath": getOrCreateConfiguration((MilvusComponent) 
component).setClientPemPath((java.lang.String) value); return true;
+            case "secure": getOrCreateConfiguration((MilvusComponent) 
component).setSecure((boolean) value); return true;
+            case "serverName": getOrCreateConfiguration((MilvusComponent) 
component).setServerName((java.lang.String) value); return true;
+            case "serverPemPath": getOrCreateConfiguration((MilvusComponent) 
component).setServerPemPath((java.lang.String) value); return true;
+            case "token": getOrCreateConfiguration((MilvusComponent) 
component).setToken((java.lang.String) value); return true;
             default: return false;
             }
         }
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
index fc2370553d19..d58b6b38e6db 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
@@ -159,6 +159,130 @@ public interface MilvusEndpointBuilderFactory {
             doSetProperty("timeout", timeout);
             return this;
         }
+        /**
+         * The path of a PEM file with the certificate authority that the 
client
+         * trusts for mutual TLS. Set it together with clientPemPath and
+         * clientKeyPath; for one-way TLS use serverPemPath instead. Not used
+         * when a MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param caPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder caPemPath(String caPemPath) {
+            doSetProperty("caPemPath", caPemPath);
+            return this;
+        }
+        /**
+         * The path of a PEM file with the private key (PKCS#8) of the client
+         * for mutual TLS. Set it together with caPemPath and clientPemPath. 
Not
+         * used when a MilvusClient is set with 
MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param clientKeyPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder clientKeyPath(String clientKeyPath) {
+            doSetProperty("clientKeyPath", clientKeyPath);
+            return this;
+        }
+        /**
+         * The path of a PEM file with the certificate of the client for mutual
+         * TLS. Set it together with caPemPath and clientKeyPath. Not used when
+         * a MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param clientPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder clientPemPath(String clientPemPath) {
+            doSetProperty("clientPemPath", clientPemPath);
+            return this;
+        }
+        /**
+         * Whether to connect to the Milvus server with TLS. If not set, the
+         * connection is plaintext, and the token is sent in clear text, unless
+         * serverPemPath, or caPemPath with clientPemPath and clientKeyPath, is
+         * set. Without these options, the client trusts the certificate
+         * authorities of the JVM. Not used when a MilvusClient is set with
+         * MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: security
+         * 
+         * @param secure the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder secure(boolean secure) {
+            doSetProperty("secure", secure);
+            return this;
+        }
+        /**
+         * Whether to connect to the Milvus server with TLS. If not set, the
+         * connection is plaintext, and the token is sent in clear text, unless
+         * serverPemPath, or caPemPath with clientPemPath and clientKeyPath, is
+         * set. Without these options, the client trusts the certificate
+         * authorities of the JVM. Not used when a MilvusClient is set with
+         * MilvusConfiguration.setClient().
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: security
+         * 
+         * @param secure the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder secure(String secure) {
+            doSetProperty("secure", secure);
+            return this;
+        }
+        /**
+         * The name that the client expects in the certificate of the Milvus
+         * server (the authority of the gRPC channel), when it differs from the
+         * host. Only used with serverPemPath, where the host is used if not
+         * set, or with mutual TLS. Not used when a MilvusClient is set with
+         * MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param serverName the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder serverName(String serverName) {
+            doSetProperty("serverName", serverName);
+            return this;
+        }
+        /**
+         * The path of a PEM file with the certificate of the Milvus server, or
+         * of the certificate authority that signed it, that the client trusts
+         * for one-way TLS. Setting it connects with TLS. Not used when a
+         * MilvusClient is set with MilvusConfiguration.setClient().
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param serverPemPath the value to set
+         * @return the dsl builder
+         */
+        default MilvusEndpointBuilder serverPemPath(String serverPemPath) {
+            doSetProperty("serverPemPath", serverPemPath);
+            return this;
+        }
         /**
          * The token that the client sends to authenticate with Milvus: a user
          * name and password joined by a colon, or an API key of Zilliz Cloud.
@@ -167,7 +291,7 @@ public interface MilvusEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Group: producer
+         * Group: security
          * 
          * @param token the value to set
          * @return the dsl builder

Reply via email to