role-based access control
An authorization model where permissions are grouped into named roles, such as reader or editor, and people or services are given roles.
In more detail
RBAC is easy to explain and audit. It becomes hard to manage when every exception creates a new role, and it cannot express context such as ownership, which is where attribute-based access control helps. A role must come from trusted data, never from a value the caller types into a request.
Example
In Kubernetes, Roles and ClusterRoles list allowed verbs on resources, and bindings attach them to users, groups or service accounts.Related terms
- attribute-based access control — An authorization model that decides each request from attributes of the subject, the resource and the environment, such as owner, department or time of day.
- authorization — Deciding whether an already identified caller may perform a particular action on a particular resource.
- least privilege — Giving every program and person only the access they need, and nothing more.
- Role — A namespaced RBAC object listing which verbs are allowed on which resources inside one namespace.
- RoleBinding — The RBAC object that grants the permissions of a Role or ClusterRole to subjects within one namespace.
- ClusterRole — An RBAC object like a Role but not tied to a namespace, used for cluster-wide resources or as a set of rules shared by many namespaces.
- ClusterRoleBinding — A Kubernetes RBAC object that grants a ClusterRole's permissions to users, groups or service accounts across the whole cluster.
- kubectl auth can-i — The kubectl command that asks the authorizer whether an identity may perform one verb on one resource, answering yes or no.
- discretionary access control — An access model in which the owner of a resource decides who else may use it.
- policy engine — A component that takes a subject, an action and a resource and answers whether the request is allowed according to written rules.
- IAM — Identity and Access Management: the cloud service that controls who can do what with which resources.
- service account — An identity for a program rather than a person; in Kubernetes each pod runs as one and gets a signed token for it.
- authentication — Establishing who a request represents, for example by checking a password, a session cookie or a signed token.
- type predicate — A return type written param is Type, which tells the compiler that when the function returns true, the argument has that type.
Taught in
- RBAC Contrasted With ABAC — Modern API Architecture: REST, GraphQL & gRPC
- Handling PII And Data Privacy — Modern API Architecture: REST, GraphQL & gRPC
- Should Theo Be An Owner? Azure Roles And Scopes — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Role That Fits: Reading And Writing Role Definitions — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Leeds Share Was Emptied: Azure Files, Snapshots And Identity — Microsoft Azure Administrator (AZ-104) Exam Prep
- Brightside Opticians: A Case Study, Read The Exam's Way — Microsoft Azure Administrator (AZ-104) Exam Prep
- Seventy-Two Percent, Now What? The Full Mock And Your Review Plan — Microsoft Azure Administrator (AZ-104) Exam Prep
- Secrets, Keys And Certificates In Pipelines — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Microsoft Entra ID And Access — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Governance: Policy, Locks And Purview — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Managing And Deploying Resources — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Governance Decision Drill — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Look-Alike Services Sprint — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Template Types: Nine Ways To Do A Step — Certified Argo Project Associate (CAPA) Exam Prep
- Argo CD: Components, Applications And Projects — Certified Argo Project Associate (CAPA) Exam Prep
- A Bake-Off With One Rule: Argo CD And Flux — Certified GitOps Associate (CGOA) Exam Prep
- RBAC: From Everything To Exactly Enough — Certified Kubernetes Administrator (CKA) Exam Prep
- Mock Exam: Seventeen Tasks Against The Clock — Certified Kubernetes Administrator (CKA) Exam Prep
- Monitoring With The Built-in CLI — Certified Kubernetes Application Developer (CKAD) Exam Prep
- ConfigMaps And Secrets — Certified Kubernetes Application Developer (CKAD) Exam Prep
- ServiceAccounts And Tokens — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Authentication, Authorisation And Admission — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Custom Resources And Operators — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Configuration And Security: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Six Seconds, Every Secret — Certified Kubernetes Security Specialist (CKS) Exam Prep
- kube-bench: Ten Failures On A Fresh Cluster — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Verify Binaries: A Hash With No Name — Certified Kubernetes Security Specialist (CKS) Exam Prep
- RBAC: Find The Path To Cluster Admin — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Anonymous Access: The Fix That Kills The API Server — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Secrets In Use: Leaks Through Env, Specs And Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Sandboxed Pods: RuntimeClass And gVisor — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Audit Policy: Choosing What The Cluster Remembers — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Final Review: The Cluster You Would Defend — Certified Kubernetes Security Specialist (CKS) Exam Prep
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Software Composition Analysis with Trivy — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Role-Based & Attribute Access Control: RBAC & ABAC — Production Full-Stack Engineering
- Full-Stack System Verification: Capstone Integration — Production Full-Stack Engineering
- Four Ways To Decide Access — ISC2 Certified in Cybersecurity (CC) Exam Prep
- Wrong Cluster, Wrong Version: Contexts, Upgrades And Skew — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not The Admin Certificate: RBAC And ServiceAccounts — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Fundamentals Sprint: Four Tickets Before The Doors Open — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not As Root, Not In Plain Sight: Pod Security And Secrets — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Bookings That Survive The Pod: Volumes And Claims — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Two Versions Of The Truth: GitOps, Helm And Kustomize — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Forty Four Of Sixty: The Full Mock, And How To Read It — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Festival, End To End: Final Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- One Leaked Kubeconfig: How Far Does It Go? — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Ninety Minutes, Six Domains: Where The Marks Are — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Seven Findings, Two Owners: The 4Cs And Shared Responsibility — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Same Rule, Two Kinds: Controls And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- How Thick Is The Wall? Isolation Techniques — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Eleven Months Of Yes: The API Server — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Open To Every Interface: Controller Manager And Scheduler — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Copied From A Blog Post: The Kubelet — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Pod That Mounts The Node: Runtime, Pods And Storage — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Copy Of The Backup: etcd — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Port 30080 On Every Node: kube-proxy, Networking And Clients — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Component Sprint: The Reference Build — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- There Is No Users Table: Authentication — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Read-Only, Except Secrets: RBAC In Depth — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Encoded Is Not Hidden: Secrets — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Dash Too Many: Segmentation With Network Policy — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Who Read The Gateway Key? Audit Logging — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Fundamentals Sprint: Four Findings, Eight Questions — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Draw The Boundaries: Trust And Data Flow — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- What Outlives The Fix: Persistence And Privilege Escalation — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Pod Away: Network Attackers And Sensitive Data — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Minutes Of Yes: Admission Control — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Which Benchmark, And Who Checked It? Compliance And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- RBAC: Roles, Bindings And Least Privilege — Kubernetes: Production-Grade Container Orchestration
- Pod Security Admission And Pod Security Standards — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Forbidden Requests And Admission Rejections — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: API Server And Control Plane Failures — Kubernetes: Production-Grade Container Orchestration
- A Tiny CRD, Controller And The Operator Pattern — Kubernetes: Production-Grade Container Orchestration
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Least Privilege In IAM And RBAC — Application Security & Threat Modeling for Engineers
- Simulation: Access Policies And Passwords — CompTIA Security+ (SY0-801) Exam Prep
- Custom Type Predicates: Functions Returning is Type — Production TypeScript
- Who Let Femi In? UCP Roles, Grants, LDAP And Client Bundles — Docker Certified Associate (DCA) Exam Prep
- Security Sprint: Eight Questions On Defaults, Trust And Access — Docker Certified Associate (DCA) Exam Prep
- The Night Before: Final Review And Exam Day — Docker Certified Associate (DCA) Exam Prep
References
- NIST: Role Based Access Control
- OWASP Cheat Sheet Series: Authorization
- Kubernetes: using RBAC authorization
- NIST glossary: role-based access control
Certification courses
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- AZ-900 course and practice exam: Microsoft Azure Fundamentals
- CAPA course and practice exam: Certified Argo Project Associate
- CGOA course and practice exam: Certified GitOps Associate
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- ISC2 CC course and practice exam: Certified in Cybersecurity
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- CompTIA Security+ course and practice exam: SY0-801
- DCA course and practice exam: Docker Certified Associate