Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21100

camel-azure-eventhubs: sharedAccessName & sharedAccessKey should not be required for credential type AZURE_IDENTITY

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.8.0
    • camel-azure-eventhubs
    • None
    • Unknown

    Description

      Unless I misunderstand something, if you choose to use AZURE_IDENTITY as the credentialType option, then there should be no need to supply either a sharedAccessName or sharedAccessKey. Those are only required when the component automatically builds a connection string (E.g CONNECTION_STRING credentialType option).

      But when AZURE_IDENTITY is used, you get a validation error:

      Caused by: java.lang.IllegalArgumentException: Azure EventHubs SharedAccessName/SharedAccessKey, ProducerAsyncClient, ConnectionString or TokenCredential must be specified.
      	at org.apache.camel.component.azure.eventhubs.EventHubsComponent.validateConfigurations(EventHubsComponent.java:82)
      

      I think we can skip this validation for AZURE_IDENTITY, given that all of the authentication info should get discovered by the azure-identity internals.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: