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 12:41:15 UTC

(camel-kamelets) branch main updated (d5ff9309 -> 4cac12fc)

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 d5ff9309 Move to Camel 4.4.0-SNAPSHOT
     new f486a080 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Sink
     new 6670ca54 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Sink
     new ca421dc7 Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Source
     new 4cac12fc Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Source

The 4 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-eventhubs-sink.kamelet.yaml              | 17 +++++++++++++----
 kamelets/azure-eventhubs-source.kamelet.yaml            | 17 +++++++++++++----
 .../kamelets/azure-eventhubs-sink.kamelet.yaml          | 17 +++++++++++++----
 .../kamelets/azure-eventhubs-source.kamelet.yaml        | 17 +++++++++++++----
 4 files changed, 52 insertions(+), 16 deletions(-)


(camel-kamelets) 03/04: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs 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 ca421dc7753e7b2f417e6695cedb11ac3ee88ca9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 13:36:27 2024 +0100

    Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Source
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-eventhubs-source.kamelet.yaml | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/kamelets/azure-eventhubs-source.kamelet.yaml b/kamelets/azure-eventhubs-source.kamelet.yaml
index 25297d27..e12220be 100644
--- a/kamelets/azure-eventhubs-source.kamelet.yaml
+++ b/kamelets/azure-eventhubs-source.kamelet.yaml
@@ -33,11 +33,13 @@ spec:
     title: "Azure Eventhubs Source"
     description: |-
       Receive events from Azure Event Hubs.
+      
+      There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
       - namespaceName
       - eventhubName
-      - sharedAccessName
-      - sharedAccessKey
       - blobAccountName
       - blobAccessKey
       - blobContainerName
@@ -79,6 +81,12 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
+        default: "CONNECTION_STRING"
   types:
     out:
       mediaType: application/octet-stream
@@ -90,10 +98,11 @@ spec:
     from:
       uri: 'azure-eventhubs://{{namespaceName}}/{{eventhubName}}'
       parameters:
-        sharedAccessName: "{{sharedAccessName}}"
-        sharedAccessKey: "{{sharedAccessKey}}"
+        sharedAccessName: "{{?sharedAccessName}}"
+        sharedAccessKey: "{{?sharedAccessKey}}"
         blobAccountName: "{{blobAccountName}}"
         blobAccessKey: "{{blobAccessKey}}"
         blobContainerName: "{{blobContainerName}}"
+        credentialType: "{{credentialType}}"
       steps:
       - to: "kamelet:sink"


(camel-kamelets) 04/04: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs 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 4cac12fc305cb61404fc5f16ec895be55a1b1de8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 13:37:11 2024 +0100

    Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Source
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../kamelets/azure-eventhubs-source.kamelet.yaml        | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
index 25297d27..e12220be 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
@@ -33,11 +33,13 @@ spec:
     title: "Azure Eventhubs Source"
     description: |-
       Receive events from Azure Event Hubs.
+      
+      There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
       - namespaceName
       - eventhubName
-      - sharedAccessName
-      - sharedAccessKey
       - blobAccountName
       - blobAccessKey
       - blobContainerName
@@ -79,6 +81,12 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
+        default: "CONNECTION_STRING"
   types:
     out:
       mediaType: application/octet-stream
@@ -90,10 +98,11 @@ spec:
     from:
       uri: 'azure-eventhubs://{{namespaceName}}/{{eventhubName}}'
       parameters:
-        sharedAccessName: "{{sharedAccessName}}"
-        sharedAccessKey: "{{sharedAccessKey}}"
+        sharedAccessName: "{{?sharedAccessName}}"
+        sharedAccessKey: "{{?sharedAccessKey}}"
         blobAccountName: "{{blobAccountName}}"
         blobAccessKey: "{{blobAccessKey}}"
         blobContainerName: "{{blobContainerName}}"
+        credentialType: "{{credentialType}}"
       steps:
       - to: "kamelet:sink"


(camel-kamelets) 01/04: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs 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 f486a080e1b4777e6dd4ac4640787b8040cc55cf
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 13:33:15 2024 +0100

    Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Sink
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-eventhubs-sink.kamelet.yaml | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/kamelets/azure-eventhubs-sink.kamelet.yaml b/kamelets/azure-eventhubs-sink.kamelet.yaml
index 15ff0924..e87cb0fb 100644
--- a/kamelets/azure-eventhubs-sink.kamelet.yaml
+++ b/kamelets/azure-eventhubs-sink.kamelet.yaml
@@ -37,11 +37,13 @@ spec:
       The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.
          
       A header is optional. If the header is not set, the partition is assigned by Event Hubs.
+      
+      There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
       - namespaceName
       - eventhubName
-      - sharedAccessName
-      - sharedAccessKey
     type: object
     properties:
       namespaceName:
@@ -65,6 +67,12 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
+        default: "CONNECTION_STRING"
   dependencies:
     - "camel:core"
     - "camel:azure-eventhubs"
@@ -88,5 +96,6 @@ spec:
       - to:
           uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
           parameters:
-            sharedAccessName: "{{sharedAccessName}}"
-            sharedAccessKey: "{{sharedAccessKey}}"
+            sharedAccessName: "{{?sharedAccessName}}"
+            sharedAccessKey: "{{?sharedAccessKey}}"
+            credentialType: "{{credentialType}}"


(camel-kamelets) 02/04: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs 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 6670ca5496eb566aaa870c8284ac415cdef6796a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 13:34:20 2024 +0100

    Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs Sink
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../kamelets/azure-eventhubs-sink.kamelet.yaml          | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
index 15ff0924..e87cb0fb 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
@@ -37,11 +37,13 @@ spec:
       The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.
          
       A header is optional. If the header is not set, the partition is assigned by Event Hubs.
+      
+      There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
       - namespaceName
       - eventhubName
-      - sharedAccessName
-      - sharedAccessKey
     type: object
     properties:
       namespaceName:
@@ -65,6 +67,12 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
+        default: "CONNECTION_STRING"
   dependencies:
     - "camel:core"
     - "camel:azure-eventhubs"
@@ -88,5 +96,6 @@ spec:
       - to:
           uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
           parameters:
-            sharedAccessName: "{{sharedAccessName}}"
-            sharedAccessKey: "{{sharedAccessKey}}"
+            sharedAccessName: "{{?sharedAccessName}}"
+            sharedAccessKey: "{{?sharedAccessKey}}"
+            credentialType: "{{credentialType}}"