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 804f0c48978d CAMEL-27761: camel-alibaba-eventbridge - send the
requests over HTTPS, and add the tls option for HTTP (#31082)
804f0c48978d is described below
commit 804f0c48978ddab71974ff6fd316dbe766340245
Author: Saravanakumar Selvaraj <[email protected]>
AuthorDate: Mon Nov 30 08:31:38 2026 +0000
CAMEL-27761: camel-alibaba-eventbridge - send the requests over HTTPS, and
add the tls option for HTTP (#31082)
* CAMEL-27761: camel-alibaba-eventbridge - send the requests over HTTPS,
and add the tls option for HTTP
* CAMEL-27761: camel-alibaba-eventbridge - add the upgrade guide section,
and split the sentences of the HTTPS doc section
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../catalog/components/alibaba-eventbridge.json | 5 ++-
.../docs/alibaba-eventbridge-component.adoc | 8 ++++
.../AlibabaEventBridgeEndpointConfigurer.java | 3 ++
.../AlibabaEventBridgeEndpointUriFactory.java | 3 +-
.../alibaba/eventbridge/alibaba-eventbridge.json | 5 ++-
.../main/docs/alibaba-eventbridge-component.adoc | 8 ++++
.../eventbridge/AlibabaEventBridgeEndpoint.java | 18 ++++++++-
.../eventbridge/AlibabaEventBridgeUtils.java | 1 +
.../alibaba/eventbridge/CreateClientTest.java | 28 +++++++++++++
.../java/org/apache/camel/util/SecurityUtils.java | 1 +
.../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc | 23 +++++++++++
.../modules/ROOT/pages/camel-4x-upgrade-guide.adoc | 1 +
.../AlibabaEventBridgeEndpointBuilderFactory.java | 46 +++++++++++++++++++---
13 files changed, 137 insertions(+), 13 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
index 6c8386164ff7..01436e11bddc 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
@@ -60,9 +60,10 @@
"validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source and event type. The producer calls listEventBuses and listRules to
check this. The producer also checks t [...]
"eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "The time in milliseconds for which the producer caches
the result of listEventBuses and listRules for an event bus. Only used when
validateEventSource or validateEventTyp [...]
"lazyStartProducer": { "index": 12, "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 [...]
- "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with
this client, and the region, endpoint, accessKey, secretKey and serviceKeys
options are not [...]
+ "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends requests with this
client, and the region, endpoint, tls, accessKey, secretKey and serviceKeys
options are no [...]
"accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for the requests that the producer sends to EventBridge.
If not set, the accessKey of the serviceKeys option is used, and one of the two
is required. Not used when t [...]
"secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for the requests that the producer sends to
EventBridge. If not set, the secretKey of the serviceKeys option is used, and
one of the two is required. Not used wh [...]
- "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
+ "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
+ "tls": { "index": 17, "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, "description": "Whether the producer sends its requests to EventBridge
over HTTPS. If false, it sends them over HTTP. Not used when the
eventBridgeClient option is set or autowired." }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-eventbridge-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-eventbridge-component.adoc
index 317217529d8a..ef03cf7b55fe 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-eventbridge-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-eventbridge-component.adoc
@@ -44,6 +44,14 @@ include::partial$component-endpoint-headers.adoc[]
== Usage
+=== HTTPS
+
+The client that the Camel endpoint creates sends its requests over HTTPS by
default. To use HTTP instead, set
+`tls=false`.
+
+A client set or autowired in the `eventBridgeClient` option keeps its own
protocol. If its `Config` sets no protocol,
+that client uses HTTP.
+
=== Message Headers and Properties
The component defines constants in package
`org.apache.camel.component.alibaba.eventbridge.constants`:
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointConfigurer.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointConfigurer.java
index 07d792773091..34f778d5c195 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointConfigurer.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointConfigurer.java
@@ -48,6 +48,7 @@ public class AlibabaEventBridgeEndpointConfigurer extends
PropertyConfigurerSupp
case "secretKey": target.setSecretKey(property(camelContext,
java.lang.String.class, value)); return true;
case "servicekeys":
case "serviceKeys": target.setServiceKeys(property(camelContext,
org.apache.camel.component.alibaba.common.models.ServiceKeys.class, value));
return true;
+ case "tls": target.setTls(property(camelContext, boolean.class,
value)); return true;
case "validateeventsource":
case "validateEventSource":
target.setValidateEventSource(property(camelContext, boolean.class, value));
return true;
case "validateeventspec":
@@ -90,6 +91,7 @@ public class AlibabaEventBridgeEndpointConfigurer extends
PropertyConfigurerSupp
case "secretKey": return java.lang.String.class;
case "servicekeys":
case "serviceKeys": return
org.apache.camel.component.alibaba.common.models.ServiceKeys.class;
+ case "tls": return boolean.class;
case "validateeventsource":
case "validateEventSource": return boolean.class;
case "validateeventspec":
@@ -128,6 +130,7 @@ public class AlibabaEventBridgeEndpointConfigurer extends
PropertyConfigurerSupp
case "secretKey": return target.getSecretKey();
case "servicekeys":
case "serviceKeys": return target.getServiceKeys();
+ case "tls": return target.isTls();
case "validateeventsource":
case "validateEventSource": return target.isValidateEventSource();
case "validateeventspec":
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointUriFactory.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointUriFactory.java
index 68ea893c1a31..c9aca58c6d34 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointUriFactory.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpointUriFactory.java
@@ -24,7 +24,7 @@ public class AlibabaEventBridgeEndpointUriFactory extends
org.apache.camel.suppo
private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
private static final Map<String, String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(17);
+ Set<String> props = new HashSet<>(18);
props.add("accessKey");
props.add("allowedEventSources");
props.add("endpoint");
@@ -39,6 +39,7 @@ public class AlibabaEventBridgeEndpointUriFactory extends
org.apache.camel.suppo
props.add("region");
props.add("secretKey");
props.add("serviceKeys");
+ props.add("tls");
props.add("validateEventSource");
props.add("validateEventSpec");
props.add("validateEventType");
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
index 6c8386164ff7..01436e11bddc 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
@@ -60,9 +60,10 @@
"validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source and event type. The producer calls listEventBuses and listRules to
check this. The producer also checks t [...]
"eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "The time in milliseconds for which the producer caches
the result of listEventBuses and listRules for an event bus. Only used when
validateEventSource or validateEventTyp [...]
"lazyStartProducer": { "index": 12, "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 [...]
- "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with
this client, and the region, endpoint, accessKey, secretKey and serviceKeys
options are not [...]
+ "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends requests with this
client, and the region, endpoint, tls, accessKey, secretKey and serviceKeys
options are no [...]
"accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for the requests that the producer sends to EventBridge.
If not set, the accessKey of the serviceKeys option is used, and one of the two
is required. Not used when t [...]
"secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for the requests that the producer sends to
EventBridge. If not set, the secretKey of the serviceKeys option is used, and
one of the two is required. Not used wh [...]
- "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
+ "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
+ "tls": { "index": 17, "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, "description": "Whether the producer sends its requests to EventBridge
over HTTPS. If false, it sends them over HTTP. Not used when the
eventBridgeClient option is set or autowired." }
}
}
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/docs/alibaba-eventbridge-component.adoc
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/docs/alibaba-eventbridge-component.adoc
index 317217529d8a..ef03cf7b55fe 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/docs/alibaba-eventbridge-component.adoc
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/docs/alibaba-eventbridge-component.adoc
@@ -44,6 +44,14 @@ include::partial$component-endpoint-headers.adoc[]
== Usage
+=== HTTPS
+
+The client that the Camel endpoint creates sends its requests over HTTPS by
default. To use HTTP instead, set
+`tls=false`.
+
+A client set or autowired in the `eventBridgeClient` option keeps its own
protocol. If its `Config` sets no protocol,
+that client uses HTTP.
+
=== Message Headers and Properties
The component defines constants in package
`org.apache.camel.component.alibaba.eventbridge.constants`:
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
index 20ca45024130..d533cdb7a623 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
@@ -74,6 +74,12 @@ public class AlibabaEventBridgeEndpoint extends
DefaultEndpoint {
@Metadata(required = true)
private String endpoint;
+ @UriParam(description = "Whether the producer sends its requests to
EventBridge over HTTPS. If false, it sends them over"
+ + " HTTP. Not used when the eventBridgeClient
option is set or autowired.",
+ displayName = "TLS", label = "security", defaultValue = "true",
security = "insecure:ssl",
+ insecureValue = "false")
+ private boolean tls = true;
+
@UriParam(description = "The AccessKey ID of the AccessKey pair for the
requests that the producer sends to EventBridge. If"
+ " not set, the accessKey of the serviceKeys
option is used, and one of the two is required. Not"
+ " used when the eventBridgeClient option is set
or autowired.",
@@ -169,8 +175,8 @@ public class AlibabaEventBridgeEndpoint extends
DefaultEndpoint {
displayName = "Event Source Cache TTL", label =
"producer,advanced", defaultValue = "300000")
private long eventSourceCacheTtl = 300000L;
- @UriParam(description = "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with"
- + " this client, and the region, endpoint,
accessKey, secretKey and serviceKeys options are not"
+ @UriParam(description = "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends requests with this"
+ + " client, and the region, endpoint, tls,
accessKey, secretKey and serviceKeys options are not"
+ " used. If no client is set or autowired, the
Camel endpoint creates an EventBridgeClient from"
+ " these options. It creates this client when the
producer processes its first message.",
displayName = "EventBridge Client", label = "advanced")
@@ -268,6 +274,14 @@ public class AlibabaEventBridgeEndpoint extends
DefaultEndpoint {
this.endpoint = endpoint;
}
+ public boolean isTls() {
+ return tls;
+ }
+
+ public void setTls(boolean tls) {
+ this.tls = tls;
+ }
+
public String getAccessKey() {
return accessKey;
}
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeUtils.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeUtils.java
index a008ee27829f..4311034dd119 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeUtils.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeUtils.java
@@ -70,6 +70,7 @@ public final class AlibabaEventBridgeUtils {
config.setRegionId(endpoint.getRegion());
}
config.setEndpoint(endpoint.getEndpoint());
+ config.setProtocol(endpoint.isTls() ? "HTTPS" : "HTTP");
return new EventBridgeClient(config);
}
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/test/java/org/apache/camel/component/alibaba/eventbridge/CreateClientTest.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/test/java/org/apache/camel/component/alibaba/eventbridge/CreateClientTest.java
index c5495cc8e36a..f6c139560408 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/test/java/org/apache/camel/component/alibaba/eventbridge/CreateClientTest.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/test/java/org/apache/camel/component/alibaba/eventbridge/CreateClientTest.java
@@ -17,6 +17,8 @@
package org.apache.camel.component.alibaba.eventbridge;
import com.aliyun.eventbridge.EventBridgeClient;
+import org.apache.camel.CamelContext;
+import org.apache.camel.impl.DefaultCamelContext;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
@@ -48,4 +50,30 @@ class CreateClientTest {
assertThat(client._endpoint).isEqualTo("12345.eventbridge.cn-hangzhou.aliyuncs.com");
assertThat(client._regionId).isNull();
}
+
+ @Test
+ void theCreatedClientUsesHttpsByDefault() {
+ AlibabaEventBridgeEndpoint endpoint = new AlibabaEventBridgeEndpoint();
+ endpoint.setEndpoint("12345.eventbridge.cn-hangzhou.aliyuncs.com");
+ endpoint.setAccessKey("accessKey");
+ endpoint.setSecretKey("secretKey");
+
+ EventBridgeClient client =
AlibabaEventBridgeUtils.createClient(endpoint);
+
+ assertThat(client._protocol).isEqualTo("HTTPS");
+ }
+
+ @Test
+ void tlsFalseCreatesAClientThatUsesHttp() throws Exception {
+ try (CamelContext context = new DefaultCamelContext()) {
+ AlibabaEventBridgeEndpoint endpoint = context.getEndpoint(
+
"alibaba-eventbridge:putEvents?endpoint=12345.eventbridge.cn-hangzhou.aliyuncs.com"
+ +
"&accessKey=accessKey&secretKey=secretKey&tls=false",
+ AlibabaEventBridgeEndpoint.class);
+
+ EventBridgeClient client =
AlibabaEventBridgeUtils.createClient(endpoint);
+
+ assertThat(client._protocol).isEqualTo("HTTP");
+ }
+ }
}
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 abe98c559b63..de15fc4be542 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
@@ -242,6 +242,7 @@ public final class SecurityUtils {
"component:scp",
"component:sftp"));
owners.put("tls", Set.of(
+ "component:alibabaeventbridge",
"component:pinecone"));
owners.put("tlsallowinvalidhostnames", Set.of(
"component:mongodb"));
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
new file mode 100644
index 000000000000..4ed623135627
--- /dev/null
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -0,0 +1,23 @@
+= Apache Camel 4.x Upgrade Guide
+
+This document is for helping you upgrade your Apache Camel application
+from Camel 4.x to 4.y. For example, if you are upgrading Camel 4.0 to 4.2,
then you should follow the guides
+from both 4.0 to 4.1 and 4.1 to 4.2.
+
+[NOTE]
+====
+https://github.com/apache/camel-upgrade-recipes/[The Camel Upgrade Recipes
project] provides automated assistance for some common migration tasks.
+Note that manual migration is still required.
+See the xref:camel-upgrade-recipes-tool.adoc[documentation] page for details.
+====
+
+== Upgrading Camel 4.24 to 4.25
+
+=== camel-alibaba-eventbridge - the client that the endpoint creates sends its
requests over HTTPS
+
+The client that the `alibaba-eventbridge` endpoint creates now sends its
requests to EventBridge over HTTPS. Before,
+it sent them over HTTP, the protocol that `EventBridgeClient` of the SDK uses
when its `Config` sets none. The new
+`tls` option, `true` by default, sets the protocol.
+
+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.
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide.adoc
index 91f8f833c7fe..db371322d3b4 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide.adoc
@@ -33,6 +33,7 @@ You can find the upgrade guide for each release in the
following pages:
- xref:camel-4x-upgrade-guide-4_22.adoc[Upgrade guide 4.21 -> 4.22 LTS]
- xref:camel-4x-upgrade-guide-4_23.adoc[Upgrade guide 4.22 -> 4.23]
- xref:camel-4x-upgrade-guide-4_24.adoc[Upgrade guide 4.23 -> 4.24]
+- xref:camel-4x-upgrade-guide-4_25.adoc[Upgrade guide 4.24 -> 4.25]
[NOTE]
====
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
index e1f8f3606900..e8d9073c4160 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
@@ -378,6 +378,40 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
doSetProperty("serviceKeys", serviceKeys);
return this;
}
+ /**
+ * Whether the producer sends its requests to EventBridge over HTTPS.
If
+ * false, it sends them over HTTP. Not used when the eventBridgeClient
+ * option is set or autowired.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: security
+ *
+ * @param tls the value to set
+ * @return the dsl builder
+ */
+ default AlibabaEventBridgeEndpointBuilder tls(boolean tls) {
+ doSetProperty("tls", tls);
+ return this;
+ }
+ /**
+ * Whether the producer sends its requests to EventBridge over HTTPS.
If
+ * false, it sends them over HTTP. Not used when the eventBridgeClient
+ * option is set or autowired.
+ *
+ * The option will be converted to a <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: security
+ *
+ * @param tls the value to set
+ * @return the dsl builder
+ */
+ default AlibabaEventBridgeEndpointBuilder tls(String tls) {
+ doSetProperty("tls", tls);
+ return this;
+ }
}
/**
@@ -480,9 +514,9 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
}
/**
* To use a custom com.aliyun.eventbridge.EventBridgeClient. The
- * producer sends its requests with this client, and the region,
- * endpoint, accessKey, secretKey and serviceKeys options are not used.
- * If no client is set or autowired, the Camel endpoint creates an
+ * producer sends requests with this client, and the region, endpoint,
+ * tls, accessKey, secretKey and serviceKeys options are not used. If
no
+ * client is set or autowired, the Camel endpoint creates an
* EventBridgeClient from these options. It creates this client when
the
* producer processes its first message.
*
@@ -500,9 +534,9 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
}
/**
* To use a custom com.aliyun.eventbridge.EventBridgeClient. The
- * producer sends its requests with this client, and the region,
- * endpoint, accessKey, secretKey and serviceKeys options are not used.
- * If no client is set or autowired, the Camel endpoint creates an
+ * producer sends requests with this client, and the region, endpoint,
+ * tls, accessKey, secretKey and serviceKeys options are not used. If
no
+ * client is set or autowired, the Camel endpoint creates an
* EventBridgeClient from these options. It creates this client when
the
* producer processes its first message.
*