What is Role-based access control?
Granting permissions to roles (such as "payroll clerk" or "SOC analyst") and then assigning people to roles, instead of giving permissions to each person individually. It makes access easier to grant, review and remove.
With RBAC, a joiner gets the roles for their job and inherits the right access; a mover swaps roles; a leaver loses them in one step. Reviews become manageable, because auditors can check role definitions and memberships rather than thousands of individual grants. The failure modes are role explosion (hundreds of overlapping roles nobody understands) and roles so broad they defeat least privilege. Cloud platforms implement RBAC with their own role definitions, and many organisations combine it with attribute-based rules (department, location, device) for finer decisions.
Source: NIST CSRC Glossary (NIST SP 800-95).
Practice it in a lab
Free, hands-on labs that teach Role-based access control. 10 more labs also cover it.
- Audit Kubernetes RBAC for risky permissions with rbac-tool (intermediate, ~50 min)
- Role-based access control with Linux groups (beginner, ~45 min)
- Build Attribute-Based Access Control (ABAC) — and see where RBAC runs out (intermediate, ~50 min)
- Enforce multi-tenant RBAC with Casbin (RBAC with domains) -- and test it like code (intermediate, ~75 min)
- Lock down a Kubernetes cluster with RBAC: give a workload exactly the permissions it needs (intermediate, ~60 min)
- Enforce zero-trust east-west traffic with Istio: STRICT mTLS + default-deny authorization (prove 'RBAC: access denied') (advanced, ~90 min)
- Escalate privileges through Kubernetes RBAC — and lock the paths down (advanced, ~75 min)
- Reimplement Azure RBAC evaluation from scratch: Actions, NotActions, DataActions, deny assignments and scope inheritance (offline) (advanced, ~90 min)
Related terms
Related
- Audit Kubernetes RBAC for risky permissions with rbac-tool
- Role-based access control with Linux groups
- Build Attribute-Based Access Control (ABAC) — and see where RBAC runs out
- Enforce multi-tenant RBAC with Casbin (RBAC with domains) -- and test it like code
- Lock down a Kubernetes cluster with RBAC: give a workload exactly the permissions it needs
- Enforce zero-trust east-west traffic with Istio: STRICT mTLS + default-deny authorization (prove 'RBAC: access denied')
- Escalate privileges through Kubernetes RBAC — and lock the paths down
- Reimplement Azure RBAC evaluation from scratch: Actions, NotActions, DataActions, deny assignments and scope inheritance (offline)
- Least privilege
- Audit log
- Privilege Escalation
- Vulnerability
- Cybersecurity glossary
- Free cyber labs