Azure Key Vault RBAC (Role Based Access Control) versus Access Policies!

MVP

 

Dear Microsoft Azure Friends,

 

With an Azure Key Vault, RBAC (Role Based Access Control) and Access Policies always leads to confusion. Let me take this opportunity to explain this with a small example. First of all, let me show you with which account I logged into the Azure Portal. You can see this in the graphic on the top right.

_Az.JPG

 

Now let's examine the subscription named "MSDN Platforms" by navigating to (Access Control IAM).

_Az1.JPG

 

In "Check Access" we are looking for a specific person. It is the Jane Ford, we see that Jane has the Contributor right on this subscription. So she can do (almost) everything except change or assign permissions. This is in short the Contributor right.

_Az2.JPG

 

Now we search for the Azure Kay Vault in "All resources", for this it is good to work with a filter.

_Az3.JPG

 

As you can see, Azure Key Vault (twkv77) is part of the "MSDN Platforms" subscription.

_Az4.JPG

 

We check again that Jane Ford has the Contributor Role (Inherited) by navigating to "Access Control IAM) in the Azure Kay Vault and clicking on "Role assignment".

_Az4a.JPG

 

Now we navigate to "Access Policies" in the Azure Key Vault. As you can see there is a policy for the user "Tom" but none for Jane Ford. With an Access Policy you determine who has access to the key, passwords and certificates. This means that if there is no access policy for Jane, she will not have access to keys, passwords, etc.

_Az5.JPG

 

That's exactly what we're about to check. As you can see in the upper right corner I registered as "Jane Ford" (she gave me the authorization ;-)). If I now navigate to the keys we see immediately that the Jane has no right to look at the keys. There is no access policy for Jane where for example the right "List" is included, so she can't access the keys.

 

_Az6.JPG

 

With RBAC you control the so-called Management Plane and with the Access Policies the Data Plane. Now you know the difference between RBAC and an Access Policy in an Azure Key Vault! Sure this wasn't super exciting, but I still wanted to share this information with you.


I hope this article was helpful for you? Thank you for taking the time to read this article.

 

Best regards, Tom Wechsler

0 Replies