You are configuring security for an API hosted on an Azure API Management (APIM) gateway. The business requirement states that all incoming client requests must be authenticated using client certificates (mutual TLS). The allowed certificate thumbprints must be stored securely in an Azure Key Vault rather than hardcoded in the policy. The APIM instance has a system-assigned managed identity enabled.
Which two of the following configuration steps must you perform to meet these requirements?
- Create a Named Value in the API Management instance that references the Azure Key Vault secret containing the allowed certificate thumbprint.Cevap
- In the inbound section of the API policy, add a conditional policy that validates the incoming client certificate's thumbprint against the Named Value.Cevap
- CIn the outbound section of the API policy, add a conditional policy that validates the incoming client certificate's thumbprint against the Named Value.
- DCreate a Named Value in the API Management instance that references the Key Vault secret, without granting the system-assigned managed identity any permissions in the Key Vault.
- EEnable a user-assigned managed identity on the API Management instance to bypass Key Vault access policy requirements for secret retrieval.
Cevap
Create a Named Value in the API Management instance that references the Azure Key Vault secret containing the allowed certificate thumbprint, and in the inbound section of the API policy, add a conditional policy that validates the incoming client certificate's thumbprint against the Named Value.
To secure the API Management gateway with client certificates, the APIM instance must validate the certificate incoming in the request. Storing the certificate thumbprints in Azure Key Vault ensures security and maintainability. A Named Value in API Management can be configured to fetch the secret using the system-assigned managed identity. The inbound policy section must then contain a conditional check (such as using the choose policy) to inspect the client certificate thumbprint from the context and ensure it matches the thumbprint retrieved from Key Vault. This blocks unauthorized requests before reaching the backend.
Adım Adım Çözüm
Anahtar Kavram
Securing APIM endpoints with client certificate validation and Key Vault integration