Score:0

Azure Function App - Azure Defender compliance

al flag

Azure Defender on Azure has two policies for Azure Function authentication that I'm not able to implement from other azure resources that support http calls.

  • Function apps should have Client Certificates (Incoming client certificates) enabled
  • Function apps should have authentication enabled

On Azure Datafactory if I choose authentication as system managed identity and I try to pass a certificate on the headers it is not supported by microsoft (as they told me in a support ticket "there are very rare occasions where you can authenticate with 2 different type of auth at the same time, MSI auth should be enough.")

system managed identity authentication

Has anyone successfully enabled client certificates and authentication on a function app and got the client authenticating? Can you share the config on client side for a logic app or datafactory?

Score:0
va flag

It would be easier to answer to your question if you could provide more details about your use case. Nevertheless I'll try to answer it with my assumptions. ( in bold )

Using a Web Activity in Azure Data Factory to call an Azure Function.

Unfortunately, you can not use the System Assigned Managed Identity and Client Certificate authentication methods in the Web Activity simultaneously.

If you still want to use both methods simultaneously then

  1. you need to turn on the Managed Identity authentication in the Web Activity and
  2. pass the certificate in a custom header and validate it in the Azure Function's code.

Please note that passing the certificate in a custom header has nothing to do with the built-in Azure Function's Client certificate mode. You should leave the Client certificate mode on Ignore state under the Azure Function's General settings. In this case the Azure Function's frontend load balancer will forward the headers transparently to the client code.

Providing two independent methods to authenticate to Azure Function

If you are going to allow the Azure Function to provide the two methods for its clients independently then you should select the allow option under the Client certificate mode settings in the Azure Function. In this case the clients will be prompted by the frontend load balancer for a certificate first. If no certificate is provided the load balancers forwards the request to the Easy-Auth middleware to authenticate the caller. Unauthenticated requests will be blocked by the middleware.

With this fallback method you can provide two authentication methods independently. Please let me know if my assumptions are correct or if you need more details how to configure the components to accomplish the suggested solutions.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.