Sai Chaithanya
Sai Chaithanya

Reputation: 1

Configure path route path specific SSL profile in Azure Application Gateway

We have an Azure APIM behind Application Gateway, we want to implement the Certificate based authentication for the incoming requests to an specific API(s).

As per the latest update from MS, we can pass the certificate from APP Gateway to backend APIM by configuring SSL profiles and rewriting the Custom Headers X-ARR-ClientCert.

Problem in our scenario, we have a single listner to our APIM instance configured in Azure App Gateway. In a case of configuring the SSL Profile and attaching to the Listener.

  1. Will Azure App gateway will ask for client certificate for all the incoming requests
  2. Will it create any impact on API(s) which doesnt require Certificate based Authentication.
  3. Is there any way the App Gateway can forward the certificates to Azure API Management without SSL Profile.

Best Regards: Sai

We have tried to rewrite the headers with a Custom Header name X-ARR-ClientCert with value {var_client_certificate} in App gateway using route-path based rule and without SSL Profile configured as we do not have idea on impact it would be create in a case of attaching the SSL profile to listener

Upvotes: 0

Views: 643

Answers (1)

Imran
Imran

Reputation: 5570

As per your scenario, we have a single listener to our APIM instance configured in Azure App Gateway. In a case of configuring the SSL Profile and attaching to the Listener.

  1. If you configure an SSL profile on the listener of Azure Application Gateway and enable client certificate authentication, it will ask for a client certificate for all incoming requests to that listener.

enter image description here

Application Gateway supports certificates issued from both public and privately established certificate authorities. Therefore, CA certificates must be uploaded. Ensure that the client certificate's immediate issuer is verified and only permits that issuer to be trusted by your application gateway.

By default, this option is disabled, but if you want to use the application Gateway to validate the client, you can enable it through the portal.

  1. Configuring SSL profiles and rewriting the Custom Headers X-ARR-ClientCert in Azure Application Gateway will not impact the APIs that do not require certificate-based authentication

enter image description here

  1. Without an SSL profile it's not possible to forward the certificates to Azure API Management you need SSL profile with the certificates and then associated it to a listener

enter image description here

To know more in detail, check these references.

Overview of mutual authentication on Azure Application Gateway | Microsoft Learn

Rewrite HTTP headers and URL with Azure Application Gateway | Microsoft Learn

Upvotes: 0

Related Questions