how to understand azure key vault access policy?

Huang, Winston-HR 280 Reputation points
2024-04-22T06:45:13.8166667+00:00

hi friend,

i have create a service principal, a azure key vault, a secret scope called A and B under AKV .

now i have grant get/list...permission to that service principal through access principal. it's mean that service principal can access both secret A and B?

How does a similar situation affect the Key scope?

Thanks!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,131 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,622 questions
0 comments No comments
{count} votes

Accepted answer
  1. Helgi Skjortnes 75 Reputation points
    2024-04-22T07:22:11.9433333+00:00

    When you grant an Azure Key Vault access policy to a service principal, it typically allows the principal to perform specified actions across all secrets or keys within the Key Vault, unless otherwise restricted by more granular permissions. In your case, if you have granted 'get' and 'list' permissions to the service principal, it means this principal can indeed access both Secret Scope A and B, as well as any other secrets present in the Key Vault. This access is not limited to specific secrets unless you explicitly define narrower scope restrictions, which Azure Key Vault currently does not support at the secret level (that I know of); access policies are applied at the vault level. Therefore, granting these permissions allows the service principal to interact with all secrets within the vault as specified by the assigned permissions.

    0 comments No comments

0 additional answers

Sort by: Most helpful