components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

Azure Functions as output binding

Open artursouza opened this issue 3 years ago • 6 comments

Describe the proposal

Create a new binding component that will trigger a function in Azure Functions

artursouza avatar Mar 14 '22 05:03 artursouza

Can't this be done with an HTTP binding?

yaron2 avatar Mar 14 '22 05:03 yaron2

Exactly. You'd just use the HTTP binding to call Azure Functions (can have a private API key as query string param).

https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp

I do not think this component is necessary.

Thoughts @artursouza ?

berndverst avatar Mar 14 '22 16:03 berndverst

What about the different auth solutions for Azure? That would need a component to support those, right?

artursouza avatar Mar 15 '22 02:03 artursouza

Also, could we enable the call without requiring a webhook if we use the Azure SDK?

artursouza avatar Mar 15 '22 02:03 artursouza

Also, could we enable the call without requiring a webhook if we use the Azure SDK?

You can't invoke functions using an SDK, the HTTP endpoint is the only way, and auth is defined on the endpoint.

yaron2 avatar Mar 15 '22 02:03 yaron2

At this point, Azure Functions can only be invoked with a Webhook that (when not anonymous) uses auth via a shared secret. I don't believe there's support for AAD auth (unless that gets implemented as part of the Function code by the user).

However, that would be a good thing to ask the Functions team. There's certainly value in exploring stronger auth for Functions.

ItalyPaleAle avatar Mar 15 '22 02:03 ItalyPaleAle

Closing this issue as there is nothing that can be implemented.

berndverst avatar Jan 18 '23 21:01 berndverst

@berndverst releated proposal: https://github.com/dapr/proposals/pull/16

ItalyPaleAle avatar Jan 18 '23 22:01 ItalyPaleAle