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 <anco...@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 <anco...@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: {}