You are configuring mutual TLS (mTLS) authentication between an Azure API Management (APIM) gateway and a backend API hosted on an Azure App Service. The client certificate used for authentication must be securely stored in Azure Key Vault and dynamically retrieved by APIM. You have already enabled a system-assigned managed identity for the APIM instance.
Which two configurations are required to ensure the APIM gateway successfully retrieves the certificate and authenticates with the backend API? (Select two.)
- Grant the API Management system-assigned managed identity Key Vault Secret User (or GET secret) permissions on the Azure Key Vault.Cevap
- Add the `<authentication-certificate certificate-id="my-cert" />` policy inside the `<inbound>` element of the API policy configuration.Cevap
- CAdd the `<authentication-certificate certificate-id="my-cert" />` policy inside the `<outbound>` element of the API policy configuration.
- DGrant the backend App Service's system-assigned managed identity GET certificate permissions on the Azure Key Vault.
- EAdd the `<authentication-certificate certificate-id="my-cert" />` policy inside the `<on-error>` element of the API policy configuration.
Cevap
Grant the API Management system-assigned managed identity Key Vault Secret User (or GET secret) permissions on the Azure Key Vault, and add the `<authentication-certificate certificate-id="my-cert" />` policy inside the `<inbound>` element of the API policy configuration.
To secure the backend connection using mutual TLS (mTLS) with a certificate stored in Azure Key Vault, two main configurations are required: first, the API Management instance must have access to retrieve the certificate's private key from Key Vault, which requires granting its system-assigned managed identity Secret User or Secret GET permissions (as the private key is stored as a secret). Second, the `<authentication-certificate>` policy must be applied in the `<inbound>` policy block to attach the certificate to the outgoing backend request during the TLS handshake.
Adım Adım Çözüm
Anahtar Kavram
Configuring mutual TLS authentication between Azure API Management and backend services using Key Vault integration and inbound policies.