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 bf10be5683ee CAMEL-23877: Fix camel-pinecone tls option documented
default and add insecure:ssl annotation
bf10be5683ee is described below
commit bf10be5683ee6c3e847b7fd8ec65a50ae6527eef
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jul 13 21:32:53 2026 +0200
CAMEL-23877: Fix camel-pinecone tls option documented default and add
insecure:ssl annotation
Fix the tls option's @UriParam(defaultValue) from "true" to "false" to
match the actual
Java field default. Add security = "insecure:ssl" annotation to flag
TLS-disabled as an
insecure configuration. Simplify TLS handling in createClient() to always
pass the
configured value. No behavioral change — the runtime default was already
false.
Closes #24661
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.../resources/org/apache/camel/catalog/components/pinecone.json | 4 ++--
.../META-INF/org/apache/camel/component/pinecone/pinecone.json | 4 ++--
.../camel/component/pinecone/PineconeVectorDbConfiguration.java | 2 +-
.../apache/camel/component/pinecone/PineconeVectorDbEndpoint.java | 6 +-----
.../src/main/java/org/apache/camel/util/SecurityUtils.java | 1 +
.../user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc | 6 ++++++
.../builder/component/dsl/PineconeComponentBuilderFactory.java | 2 +-
.../endpoint/dsl/PineconeVectorDbEndpointBuilderFactory.java | 4 ++--
8 files changed, 16 insertions(+), 13 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 b34490d6d392..0a293341dd63 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, "defaultValue": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Whether the client uses
Transport Layer Security (TLS) to secure communications" },
+ "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 [...]
"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, "defaultValue": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Whether the client uses
Transport Layer Security (TLS) to secure communications" },
+ "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 [...]
"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 b34490d6d392..0a293341dd63 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, "defaultValue": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Whether the client uses
Transport Layer Security (TLS) to secure communications" },
+ "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 [...]
"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, "defaultValue": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Whether the client uses
Transport Layer Security (TLS) to secure communications" },
+ "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 [...]
"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 5831fec4fd40..7aaaef20d18e 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,7 +59,7 @@ public class PineconeVectorDbConfiguration implements
Cloneable {
@UriParam(label = "producer")
private Integer proxyPort;
- @UriParam(defaultValue = "true", label = "security")
+ @UriParam(defaultValue = "false", label = "security", security =
"insecure:ssl", insecureValue = "false")
private boolean tls;
@UriParam(label = "producer")
diff --git
a/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbEndpoint.java
b/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbEndpoint.java
index b7dc17547fe1..31576cad5c3c 100644
---
a/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbEndpoint.java
+++
b/components/camel-ai/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDbEndpoint.java
@@ -102,11 +102,7 @@ public class PineconeVectorDbEndpoint extends
DefaultEndpoint {
builder = builder.withHost(getConfiguration().getHost());
}
- // if TLS is false, set it
- boolean tls = configuration.isTls();
- if (!tls) {
- builder = builder.withTlsEnabled(tls);
- }
+ builder = builder.withTlsEnabled(configuration.isTls());
// Check to see if a proxyHost/proxyPort pair is configured
if ((getConfiguration().getProxyHost() != null) &&
diff --git
a/core/camel-util/src/main/java/org/apache/camel/util/SecurityUtils.java
b/core/camel-util/src/main/java/org/apache/camel/util/SecurityUtils.java
index b2478af9bf0a..67446db925ac 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/SecurityUtils.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/SecurityUtils.java
@@ -70,6 +70,7 @@ public final class SecurityUtils {
map.put("sendenabled", new SecurityOption(INSECURE_DEV, "true"));
map.put("skiptlsverify", new SecurityOption(INSECURE_SSL, "true"));
map.put("stricthostkeychecking", new SecurityOption(INSECURE_SSL, ""));
+ map.put("tls", new SecurityOption(INSECURE_SSL, VALUE_FALSE));
map.put("transferexception", new
SecurityOption(INSECURE_SERIALIZATION, "true"));
map.put("transferexchange", new SecurityOption(INSECURE_SERIALIZATION,
"true"));
map.put("trustallcertificates", new SecurityOption(INSECURE_SSL,
"true"));
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
index 44014f2466d3..e6825039dc1f 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -182,6 +182,12 @@ the message, consistent with the inbound header filtering
already performed by t
Ordinary application headers are unaffected. If a route relied on `Camel*`
headers being propagated from the MIME
content, set them explicitly after unmarshalling.
+=== camel-pinecone
+
+The `tls` endpoint option now correctly documents its default as `false`
(previously the catalog
+listed the default as `true`, but the runtime value was always `false`). No
behavioral change — the
+runtime default was already `false`.
+
=== camel-platform-http-main
When `authenticationEnabled=true` but neither a basic-auth properties file
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 a44b92424811..104751b95b15 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: true
+ * Default: false
* 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 23a2e7e06e7d..09af9ee571a1 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: true
+ * Default: false
* 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: true
+ * Default: false
* Group: security
*
* @param tls the value to set