This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.22.x by this push:
new 0f662b036e88 [backport camel-4.22.x] CAMEL-28021: camel-pinecone - tls
option now defaults to true (#31324)
0f662b036e88 is described below
commit 0f662b036e88538d5156e875c23e9dcf2aec4757
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Dec 3 20:22:57 2026 +0100
[backport camel-4.22.x] CAMEL-28021: camel-pinecone - tls option now
defaults to true (#31324)
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.
(cherry picked from commit 3fa6ad0797c777caab4c1a6dfdb1250808e4ee45)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
---
.../org/apache/camel/catalog/components/pinecone.json | 4 ++--
.../org/apache/camel/component/pinecone/pinecone.json | 4 ++--
.../component/pinecone/PineconeVectorDbConfiguration.java | 4 ++--
.../pinecone/PineconeComponentConfigurationTest.java | 13 +++++++++++++
.../component/dsl/PineconeComponentBuilderFactory.java | 2 +-
.../dsl/PineconeVectorDbEndpointBuilderFactory.java | 4 ++--
6 files changed, 22 insertions(+), 9 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 82161f535ec4..66af59262cb3 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": "Set the proxy host" },
"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": "Set the proxy port" },
"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 client uses
Transport Layer [...]
+ "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 client uses
Transport Layer S [...]
"token": { "index": 13, "kind": "property", "displayName": "Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" }
},
"headers": {
@@ -70,7 +70,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": "Set the proxy host" },
"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": "Set the proxy port" },
"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 client uses
Transport Layer [...]
+ "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 client uses
Transport Layer [...]
"token": { "index": 12, "kind": "parameter", "displayName": "Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" }
}
}
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 82161f535ec4..66af59262cb3 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": "Set the proxy host" },
"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": "Set the proxy port" },
"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 client uses
Transport Layer [...]
+ "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 client uses
Transport Layer S [...]
"token": { "index": 13, "kind": "property", "displayName": "Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" }
},
"headers": {
@@ -70,7 +70,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": "Set the proxy host" },
"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": "Set the proxy port" },
"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 client uses
Transport Layer [...]
+ "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 client uses
Transport Layer [...]
"token": { "index": 12, "kind": "parameter", "displayName": "Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" }
}
}
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 7aaaef20d18e..1d3c2fc8020a 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
@@ -59,8 +59,8 @@ public class PineconeVectorDbConfiguration implements
Cloneable {
@UriParam(label = "producer")
private Integer proxyPort;
- @UriParam(defaultValue = "false", label = "security", security =
"insecure:ssl", insecureValue = "false")
- private boolean tls;
+ @UriParam(defaultValue = "true", label = "security", security =
"insecure:ssl", insecureValue = "false")
+ private boolean tls = true;
@UriParam(label = "producer")
private String host;
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/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 104751b95b15..a44b92424811 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
@@ -259,7 +259,7 @@ public interface PineconeComponentBuilderFactory {
*
* The option is a: <code>boolean</code> 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 09af9ee571a1..23a2e7e06e7d 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
@@ -225,7 +225,7 @@ public interface PineconeVectorDbEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
+ * Default: true
* Group: security
*
* @param tls the value to set
@@ -241,7 +241,7 @@ public interface PineconeVectorDbEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
+ * Default: true
* Group: security
*
* @param tls the value to set