You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/01/25 11:11:41 UTC
(camel-kamelets) branch main updated (cedc95e5 -> d5ff9309)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
from cedc95e5 MongoDB SSLAwareMongoClient: Use isEmpty method instead of checking for ""
new 19e387a9 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
new 34ff00ed Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
new 89218799 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
new 8542e39a Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
new 931d9bf7 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
new d5ff9309 Move to Camel 4.4.0-SNAPSHOT
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
kamelets/azure-cosmosdb-sink.kamelet.yaml | 14 ++++++++++++--
kamelets/azure-cosmosdb-source.kamelet.yaml | 16 +++++++++++++---
.../camel/kamelets/catalog/KameletsCatalogTest.java | 2 +-
.../resources/kamelets/azure-cosmosdb-sink.kamelet.yaml | 14 ++++++++++++--
.../kamelets/azure-cosmosdb-source.kamelet.yaml | 16 +++++++++++++---
pom.xml | 4 ++--
6 files changed, 53 insertions(+), 13 deletions(-)
(camel-kamelets) 01/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 19e387a92dfa2c644b84d7a58b4c3580367316f1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:50:33 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/azure-cosmosdb-sink.kamelet.yaml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/kamelets/azure-cosmosdb-sink.kamelet.yaml b/kamelets/azure-cosmosdb-sink.kamelet.yaml
index a45cc667..2e077c57 100644
--- a/kamelets/azure-cosmosdb-sink.kamelet.yaml
+++ b/kamelets/azure-cosmosdb-sink.kamelet.yaml
@@ -37,10 +37,13 @@ spec:
In the headers, you can optionally set the `itemPartitionKey` / `ce-itemPartitionKey` property to specify the partition key for a specific item.
If you do not set the property in the header, you'll need to use the static property itemPartitonKey.
+
+ There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `SHARED_ACCOUNT_KEY` accountKey property will be needed.
+
+ In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
required:
- databaseName
- containerName
- - accountKey
- databaseEndpoint
type: object
properties:
@@ -67,6 +70,12 @@ spec:
title: Item Partition Key
description: Represents a partition key value in the Azure Cosmos DB database service. A partition key identifies the partition where the item is stored in.
type: string
+ credentialType:
+ title: Credential Type
+ description: Determines the credential strategy to adopt.
+ type: string
+ enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+ default: "SHARED_ACCOUNT_KEY"
types:
in:
mediaType: application/json
@@ -106,4 +115,5 @@ spec:
databaseEndpoint: "{{databaseEndpoint}}"
itemPartitionKey: "{{?itemPartitionKey}}"
operation: createItem
+ credentialType: "{{credentialType}}"
(camel-kamelets) 06/06: Move to Camel 4.4.0-SNAPSHOT
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit d5ff9309ae9fa970a3c87936d146cce977d4a27e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 12:02:13 2024 +0100
Move to Camel 4.4.0-SNAPSHOT
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java | 2 +-
.../src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml | 2 +-
pom.xml | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index abb5b995..993a7fd6 100644
--- a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++ b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -138,7 +138,7 @@ public class KameletsCatalogTest {
void testSupportedHeaders() throws Exception {
verifyHeaders("aws-s3-source", 20);
verifyHeaders("aws-s3-sink", 27);
- verifyHeaders("aws-cloudtrail-source", 0);
+ verifyHeaders("aws-cloudtrail-source", 4);
verifyHeaders("aws-redshift-source", 0);
verifyHeaders("aws-not-exists", 0);
verifyHeaders("azure-eventhubs-sink", 2);
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
index 2e077c57..29421a05 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
@@ -111,7 +111,7 @@ spec:
- to:
uri: "azure-cosmosdb:{{databaseName}}/{{containerName}}"
parameters:
- accountKey: "{{accountKey}}"
+ accountKey: "{{?accountKey}}"
databaseEndpoint: "{{databaseEndpoint}}"
itemPartitionKey: "{{?itemPartitionKey}}"
operation: createItem
diff --git a/pom.xml b/pom.xml
index 2c3cdf35..94e4b37a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.camel</groupId>
<artifactId>camel-dependencies</artifactId>
- <version>4.3.0</version>
+ <version>4.4.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.camel.kamelets</groupId>
@@ -62,7 +62,7 @@
<apache-rat-plugin.version>0.16</apache-rat-plugin.version>
<cyclonedx-maven-plugin-version>2.7.11</cyclonedx-maven-plugin-version>
- <camel.version>4.3.0</camel.version>
+ <camel.version>4.4.0-SNAPSHOT</camel.version>
<camel.k.crds.version>2.2.0</camel.k.crds.version>
<citrus.version>4.1.0</citrus.version>
(camel-kamelets) 02/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 34ff00edd7ec07a3ac1ca82cedb661f873679be3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:51:44 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
index a45cc667..2e077c57 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-sink.kamelet.yaml
@@ -37,10 +37,13 @@ spec:
In the headers, you can optionally set the `itemPartitionKey` / `ce-itemPartitionKey` property to specify the partition key for a specific item.
If you do not set the property in the header, you'll need to use the static property itemPartitonKey.
+
+ There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `SHARED_ACCOUNT_KEY` accountKey property will be needed.
+
+ In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
required:
- databaseName
- containerName
- - accountKey
- databaseEndpoint
type: object
properties:
@@ -67,6 +70,12 @@ spec:
title: Item Partition Key
description: Represents a partition key value in the Azure Cosmos DB database service. A partition key identifies the partition where the item is stored in.
type: string
+ credentialType:
+ title: Credential Type
+ description: Determines the credential strategy to adopt.
+ type: string
+ enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+ default: "SHARED_ACCOUNT_KEY"
types:
in:
mediaType: application/json
@@ -106,4 +115,5 @@ spec:
databaseEndpoint: "{{databaseEndpoint}}"
itemPartitionKey: "{{?itemPartitionKey}}"
operation: createItem
+ credentialType: "{{credentialType}}"
(camel-kamelets) 05/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 931d9bf7fe71810e77a51def64c72b9f63a8d2ec
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:59:13 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/azure-cosmosdb-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kamelets/azure-cosmosdb-sink.kamelet.yaml b/kamelets/azure-cosmosdb-sink.kamelet.yaml
index 2e077c57..29421a05 100644
--- a/kamelets/azure-cosmosdb-sink.kamelet.yaml
+++ b/kamelets/azure-cosmosdb-sink.kamelet.yaml
@@ -111,7 +111,7 @@ spec:
- to:
uri: "azure-cosmosdb:{{databaseName}}/{{containerName}}"
parameters:
- accountKey: "{{accountKey}}"
+ accountKey: "{{?accountKey}}"
databaseEndpoint: "{{databaseEndpoint}}"
itemPartitionKey: "{{?itemPartitionKey}}"
operation: createItem
(camel-kamelets) 03/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 892187993e10c479762f2c956f92466e6a9a5218
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:55:37 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/azure-cosmosdb-source.kamelet.yaml | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/kamelets/azure-cosmosdb-source.kamelet.yaml b/kamelets/azure-cosmosdb-source.kamelet.yaml
index bcd2b335..f9419609 100644
--- a/kamelets/azure-cosmosdb-source.kamelet.yaml
+++ b/kamelets/azure-cosmosdb-source.kamelet.yaml
@@ -32,11 +32,14 @@ spec:
definition:
title: "Azure CosmosDB Source"
description: |-
- Consume Changes from a CosmosDB instance
+ Consume Changes from a CosmosDB instance.
+
+ There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `SHARED_ACCOUNT_KEY` accountKey property will be needed.
+
+ In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
required:
- databaseName
- containerName
- - accountKey
- databaseEndpoint
type: object
properties:
@@ -77,6 +80,12 @@ spec:
title: Database Endpoint
description: Sets the Azure Cosmos database endpoint the component will connect to.
type: string
+ credentialType:
+ title: Credential Type
+ description: Determines the credential strategy to adopt.
+ type: string
+ enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+ default: "SHARED_ACCOUNT_KEY"
types:
out:
mediaType: application/json
@@ -90,10 +99,11 @@ spec:
parameters:
leaseDatabaseName: "{{?leaseDatabaseName}}"
leaseContainerName: "{{?leaseContainerName}}"
- accountKey: "{{accountKey}}"
+ accountKey: "{{?accountKey}}"
createLeaseDatabaseIfNotExists: "{{createLeaseDatabaseIfNotExists}}"
createLeaseContainerIfNotExists: "{{createLeaseContainerIfNotExists}}"
databaseEndpoint: "{{databaseEndpoint}}"
+ credentialType: "{{credentialType}}"
steps:
- marshal:
json: {}
(camel-kamelets) 04/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 8542e39aba2d35b2740aa64362b352abfcd056de
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:56:26 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../kamelets/azure-cosmosdb-source.kamelet.yaml | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
index bcd2b335..f9419609 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
@@ -32,11 +32,14 @@ spec:
definition:
title: "Azure CosmosDB Source"
description: |-
- Consume Changes from a CosmosDB instance
+ Consume Changes from a CosmosDB instance.
+
+ There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `SHARED_ACCOUNT_KEY` accountKey property will be needed.
+
+ In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
required:
- databaseName
- containerName
- - accountKey
- databaseEndpoint
type: object
properties:
@@ -77,6 +80,12 @@ spec:
title: Database Endpoint
description: Sets the Azure Cosmos database endpoint the component will connect to.
type: string
+ credentialType:
+ title: Credential Type
+ description: Determines the credential strategy to adopt.
+ type: string
+ enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+ default: "SHARED_ACCOUNT_KEY"
types:
out:
mediaType: application/json
@@ -90,10 +99,11 @@ spec:
parameters:
leaseDatabaseName: "{{?leaseDatabaseName}}"
leaseContainerName: "{{?leaseContainerName}}"
- accountKey: "{{accountKey}}"
+ accountKey: "{{?accountKey}}"
createLeaseDatabaseIfNotExists: "{{createLeaseDatabaseIfNotExists}}"
createLeaseContainerIfNotExists: "{{createLeaseContainerIfNotExists}}"
databaseEndpoint: "{{databaseEndpoint}}"
+ credentialType: "{{credentialType}}"
steps:
- marshal:
json: {}