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:02:32 UTC

(camel-kamelets) branch kamelets-1805-cosmosdb created (now 685ce1d5)

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

acosentino pushed a change to branch kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 685ce1d5 Move to Camel 4.4.0-SNAPSHOT

This branch includes the following new commits:

     new dc0141c4 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
     new f444acb8 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
     new ac7e9035 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
     new 1b4277fd Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Source
     new a5881caf Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
     new 685ce1d5 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.



(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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 1b4277fd5e573f97974079c8f77af4ddceabae49
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: {}


(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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit f444acb8af124bfa825ece87c7f8a4cdd2e87c92
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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit a5881cafe540f0bef1f50d63a1cdaf0c877d847b
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) 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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit dc0141c47a11bcf31a0a7b8ce772f55577d42fe0
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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 685ce1d5affe948199bc711949fad8c85b46adff
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) 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 kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit ac7e9035279bdf0fb52995928f97f78c74c9dd95
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: {}