AZ-104 Azure RBAC - Assigning access to resources

Secure Azure RBAC

 

Explaining Azure RBAC

 

Azure RBAC is an authorization system

We have to provide this access explicit, there is an implicit deny

image.png

 

Understanding Role Definitions

Contributor

Then we have the next component, which are our DataActions, and our NotDataActions.And these are the same kind of thing as our Actions and NotActions, except for rather than being on the control plane of managing Azure resources, this will take an impact on data-related actionssuch as working with data inside of Azure Storage accounts.

 

image.png

 

For example, if we have this user here in our Azure Active Directory tenant that is assigned the Contributor role at the management group scope here, but also assigned a Reader role at a resource group scope inside of the same hierarchical structure, what we have  to understand when we have overlapping roles like this, and multiple role assignments for a single identity, is that roles follow an additive property. So what we do is we add the effective permissions of each of these role definitions, and by performing this  addition, this will inform us what the effective permissions will be. So in this case, Contributor + Reader = Contributor, because Contributor provides Reader functionality. So effectively, this user will have Contributor at the management group scope, and that will be inherited all the way down. And there's no additional permissions that are being provided by actually having the Reader role  assignment. So this user's permissions will just waterfall all the way down and be inherited to the lowest level.

image.png

 

Assigning access

Lets go to resource groups and select a group (K8s_group in example below) then if we go to roles we can see all role assignments, here we can determine a user can be a contributor (grants full access to manage all roesources bu tdoes not allow you to assign roles in Azure RBAC)

image.png

We select contributor,, then add then add role assignment

image.png

 

image.png

 

image.png

 

image.png

Now back on resources group we can see the role assignments

image.png

 

Same inside those resources it inherited the assignment

image.png

 

 

Authorization system

 


Revision #2
Created 19 February 2024 23:36:22 by Cesar Gzz
Updated 20 February 2024 00:11:25 by Cesar Gzz