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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 3fa6ad0797c7 CAMEL-28021: camel-pinecone - tls option now defaults to 
true (#31254)
3fa6ad0797c7 is described below

commit 3fa6ad0797c777caab4c1a6dfdb1250808e4ee45
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Dec 2 12:46:53 2026 +0100

    CAMEL-28021: camel-pinecone - tls option now defaults to true (#31254)
    
    The tls endpoint option now defaults to true, so the data plane (gRPC)
    connection to the index uses TLS, matching the default of the Pinecone
    client. Set tls=false for a local server that does not use TLS, such as
    Pinecone Local.
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../apache/camel/catalog/components/pinecone.json  |  4 ++--
 .../apache/camel/component/pinecone/pinecone.json  |  4 ++--
 .../pinecone/PineconeVectorDbConfiguration.java    | 11 ++++-----
 .../PineconeComponentConfigurationTest.java        | 13 ++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc    |  9 +++++++
 .../dsl/PineconeComponentBuilderFactory.java       | 14 +++++------
 .../PineconeVectorDbEndpointBuilderFactory.java    | 28 ++++++++++------------
 7 files changed, 49 insertions(+), 34 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
index 46a5f90cd104..48c154b596cf 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
@@ -36,7 +36,7 @@
     "proxyHost": { "index": 9, "kind": "property", "displayName": "Proxy 
Host", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The host name or IP 
address of an HTTP proxy that the control plane (REST) and data plane (gRPC)  
[...]
     "proxyPort": { "index": 10, "kind": "property", "displayName": "Proxy 
Port", "group": "producer", "label": "producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The port of the HTTP 
proxy that the control plane (REST) and data plane (gRPC) requests go thr [...]
     "autowiredEnabled": { "index": 11, "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  [...]
-    "tls": { "index": 12, "kind": "property", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection [...]
+    "tls": { "index": 12, "kind": "property", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
true, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection  [...]
     "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.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The API key of the 
Pinecone project. The client sends it in the Api-Key header of th [...]
   },
   "headers": {
@@ -75,7 +75,7 @@
     "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy 
Host", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The host name or IP 
address of an HTTP proxy that the control plane (REST) and data plane (gRPC) 
[...]
     "proxyPort": { "index": 9, "kind": "parameter", "displayName": "Proxy 
Port", "group": "producer", "label": "producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The port of the HTTP 
proxy that the control plane (REST) and data plane (gRPC) requests go thr [...]
     "lazyStartProducer": { "index": 10, "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 produ [...]
-    "tls": { "index": 11, "kind": "parameter", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connectio [...]
+    "tls": { "index": 11, "kind": "parameter", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
true, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection [...]
     "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.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The API key of the 
Pinecone project. The client sends it in the Api-Key header of t [...]
   }
 }
diff --git 
a/components/camel-ai/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
 
b/components/camel-ai/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
index 46a5f90cd104..48c154b596cf 100644
--- 
a/components/camel-ai/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
+++ 
b/components/camel-ai/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
@@ -36,7 +36,7 @@
     "proxyHost": { "index": 9, "kind": "property", "displayName": "Proxy 
Host", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The host name or IP 
address of an HTTP proxy that the control plane (REST) and data plane (gRPC)  
[...]
     "proxyPort": { "index": 10, "kind": "property", "displayName": "Proxy 
Port", "group": "producer", "label": "producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The port of the HTTP 
proxy that the control plane (REST) and data plane (gRPC) requests go thr [...]
     "autowiredEnabled": { "index": 11, "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  [...]
-    "tls": { "index": 12, "kind": "property", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection [...]
+    "tls": { "index": 12, "kind": "property", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
true, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection  [...]
     "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.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The API key of the 
Pinecone project. The client sends it in the Api-Key header of th [...]
   },
   "headers": {
@@ -75,7 +75,7 @@
     "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy 
Host", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The host name or IP 
address of an HTTP proxy that the control plane (REST) and data plane (gRPC) 
[...]
     "proxyPort": { "index": 9, "kind": "parameter", "displayName": "Proxy 
Port", "group": "producer", "label": "producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The port of the HTTP 
proxy that the control plane (REST) and data plane (gRPC) requests go thr [...]
     "lazyStartProducer": { "index": 10, "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 produ [...]
-    "tls": { "index": 11, "kind": "parameter", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connectio [...]
+    "tls": { "index": 11, "kind": "parameter", "displayName": "Tls", "group": 
"security", "label": "security", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": 
true, "configurationClass": 
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "Whether the data plane 
(gRPC) connection [...]
     "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.pinecone.PineconeVectorDbConfiguration", 
"configurationField": "configuration", "description": "The API key of the 
Pinecone project. The client sends it in the Api-Key header of t [...]
   }
 }
diff --git 
a/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbConfiguration.java
 
b/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbConfiguration.java
index b714bd45bd44..3578b9401a52 100644
--- 
a/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbConfiguration.java
+++ 
b/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbConfiguration.java
@@ -88,14 +88,13 @@ public class PineconeVectorDbConfiguration implements 
Cloneable {
                             + NOT_WITH_CLIENT)
     private Integer proxyPort;
 
-    @UriParam(defaultValue = "false", label = "security", security = 
"insecure:ssl", insecureValue = "false",
-              description = "Whether the data plane (gRPC) connection to the 
index uses TLS. Default false, unlike the"
-                            + " Pinecone client, which enables TLS by default: 
with false, the vectors, and the API key in the"
-                            + " api-key metadata, are sent in clear text. Set 
it to true for an index in the Pinecone cloud; false is for"
-                            + " a local server such as Pinecone Local. The 
control plane (REST) uses the scheme of the host"
+    @UriParam(defaultValue = "true", label = "security", security = 
"insecure:ssl", insecureValue = "false",
+              description = "Whether the data plane (gRPC) connection to the 
index uses TLS. Default true, matching the"
+                            + " Pinecone client, which enables TLS by default. 
Set it to false only for a local server that"
+                            + " does not use TLS, such as Pinecone Local. The 
control plane (REST) uses the scheme of the host"
                             + " option instead."
                             + NOT_WITH_CLIENT)
-    private boolean tls;
+    private boolean tls = true;
 
     @UriParam(label = "producer",
               description = "The base URL of the Pinecone control plane 
(REST), such as http://localhost:5080 for Pinecone"
diff --git 
a/components/camel-ai/camel-pinecone/src/test/java/org/apache/camel/component/pinecone/PineconeComponentConfigurationTest.java
 
b/components/camel-ai/camel-pinecone/src/test/java/org/apache/camel/component/pinecone/PineconeComponentConfigurationTest.java
index 1b129c7b2762..12bdddc73ab8 100644
--- 
a/components/camel-ai/camel-pinecone/src/test/java/org/apache/camel/component/pinecone/PineconeComponentConfigurationTest.java
+++ 
b/components/camel-ai/camel-pinecone/src/test/java/org/apache/camel/component/pinecone/PineconeComponentConfigurationTest.java
@@ -66,4 +66,17 @@ public class PineconeComponentConfigurationTest extends 
CamelTestSupport {
         assertEquals("http://www.foobar.com";, 
endpoint.getConfiguration().getHost());
     }
 
+    @Test
+    void createEndpointDefaultsTlsToTrue() throws Exception {
+        PineconeVectorDbComponent component = context.getComponent("pinecone", 
PineconeVectorDbComponent.class);
+
+        PineconeVectorDbEndpoint endpoint = (PineconeVectorDbEndpoint) 
component
+                .createEndpoint("pinecone://test-collection");
+        assertEquals(true, endpoint.getConfiguration().isTls());
+
+        PineconeVectorDbEndpoint endpointWithTlsFalse = 
(PineconeVectorDbEndpoint) component
+                .createEndpoint("pinecone://test-collection?tls=false");
+        assertEquals(false, endpointWithTlsFalse.getConfiguration().isTls());
+    }
+
 }
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index 7557724d5727..c442c332dfe6 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -177,6 +177,15 @@ it sent them over HTTP, the protocol that 
`EventBridgeClient` of the SDK uses wh
 A route whose `endpoint` option names a host that accepts only HTTP needs 
`tls=false` now. A client that is set or
 autowired in the `eventBridgeClient` option keeps its own protocol.
 
+=== camel-pinecone - the tls option now defaults to true
+
+The `tls` endpoint option of `camel-pinecone` now defaults to `true`, so the 
data plane (gRPC) connection to the index
+uses TLS, matching the default of the Pinecone client. Before, it defaulted to 
`false`.
+
+A route that connects to a local server that does not use TLS, such as 
Pinecone Local, must now set `tls=false`
+explicitly. A route that connects to an index in the Pinecone cloud needs no 
change. The control plane (REST) is
+unaffected: it still uses the scheme of the `host` option.
+
 === camel-alibaba-sms - sendSms fails the exchange for a Code other than OK
 
 The `sendSms` operation of `alibaba-sms` now fails the exchange for a response 
with a `Code` other than `OK`. A
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PineconeComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PineconeComponentBuilderFactory.java
index 45805b29309a..4352f8d46ebf 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PineconeComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PineconeComponentBuilderFactory.java
@@ -288,17 +288,15 @@ public interface PineconeComponentBuilderFactory {
         
         /**
          * Whether the data plane (gRPC) connection to the index uses TLS.
-         * Default false, unlike the Pinecone client, which enables TLS by
-         * default: with false, the vectors, and the API key in the api-key
-         * metadata, are sent in clear text. Set it to true for an index in the
-         * Pinecone cloud; false is for a local server such as Pinecone Local.
-         * The control plane (REST) uses the scheme of the host option instead.
-         * Not used when a Pinecone client is set with
-         * PineconeVectorDbConfiguration.setClient().
+         * Default true, matching the Pinecone client, which enables TLS by
+         * default. Set it to false only for a local server that does not use
+         * TLS, such as Pinecone Local. The control plane (REST) uses the 
scheme
+         * of the host option instead. Not used when a Pinecone client is set
+         * with PineconeVectorDbConfiguration.setClient().
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
          * 
-         * Default: false
+         * Default: true
          * Group: security
          * 
          * @param tls the value to set
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PineconeVectorDbEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PineconeVectorDbEndpointBuilderFactory.java
index 5ec4d2cc629d..9ec52a97cd76 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PineconeVectorDbEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PineconeVectorDbEndpointBuilderFactory.java
@@ -259,17 +259,15 @@ public interface PineconeVectorDbEndpointBuilderFactory {
         }
         /**
          * Whether the data plane (gRPC) connection to the index uses TLS.
-         * Default false, unlike the Pinecone client, which enables TLS by
-         * default: with false, the vectors, and the API key in the api-key
-         * metadata, are sent in clear text. Set it to true for an index in the
-         * Pinecone cloud; false is for a local server such as Pinecone Local.
-         * The control plane (REST) uses the scheme of the host option instead.
-         * Not used when a Pinecone client is set with
-         * PineconeVectorDbConfiguration.setClient().
+         * Default true, matching the Pinecone client, which enables TLS by
+         * default. Set it to false only for a local server that does not use
+         * TLS, such as Pinecone Local. The control plane (REST) uses the 
scheme
+         * of the host option instead. Not used when a Pinecone client is set
+         * with PineconeVectorDbConfiguration.setClient().
          * 
          * The option is a: <code>boolean</code> type.
          * 
-         * Default: false
+         * Default: true
          * Group: security
          * 
          * @param tls the value to set
@@ -281,17 +279,15 @@ public interface PineconeVectorDbEndpointBuilderFactory {
         }
         /**
          * Whether the data plane (gRPC) connection to the index uses TLS.
-         * Default false, unlike the Pinecone client, which enables TLS by
-         * default: with false, the vectors, and the API key in the api-key
-         * metadata, are sent in clear text. Set it to true for an index in the
-         * Pinecone cloud; false is for a local server such as Pinecone Local.
-         * The control plane (REST) uses the scheme of the host option instead.
-         * Not used when a Pinecone client is set with
-         * PineconeVectorDbConfiguration.setClient().
+         * Default true, matching the Pinecone client, which enables TLS by
+         * default. Set it to false only for a local server that does not use
+         * TLS, such as Pinecone Local. The control plane (REST) uses the 
scheme
+         * of the host option instead. Not used when a Pinecone client is set
+         * with PineconeVectorDbConfiguration.setClient().
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
-         * Default: false
+         * Default: true
          * Group: security
          * 
          * @param tls the value to set

Reply via email to