dapr / components-contrib

Community driven, reusable components for distributed apps
Apache License 2.0
543 stars 470 forks source link

Enable standard AAD authentication for Azure EventGrid binding component, specifically on the output binding (create) #2968

Open bb33f opened 1 year ago

bb33f commented 1 year ago

Describe the feature

Currently, it appears that the Azure EventGrid output binding supports authentication with AccessKey only. It is preferable to enable all of the standard AAD authentication methods described in https://docs.dapr.io/developing-applications/integrations/azure/azure-authentication/authenticating-azure/.

Current Work-Around:

  1. Configure an Azure Key Vault secrets component using the AAD authentication method of choice (preferably a managed identity).
  2. Add a KV secret containing the EventGrid access key.
  3. Configure the EventGrid binding component with accessKey using a secretKeyRef to retrieve the value via the KV secrets component.

Release Note

RELEASE NOTE:

ItalyPaleAle commented 1 year ago

I agree this should be improved.