liveBook · Manning

Authorization

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

Authorization is the process of determining which actions an authenticated subject may perform on protected resources.

After a request is authenticated, authorization determines which Kubernetes API actions its user, group, or Service Account may perform. RBAC uses roles and role bindings to control access to resources. section 3.1 section 9.3.2

Choose the permission scope that matches the task:

  • Use Roles for permissions within a namespace, and bind them to users, groups, or Service Accounts. section 9.3.2
  • Use ClusterRoles for cluster-wide permissions, and bind them to users, groups, or Service Accounts. section 9.3.2

Restricting access to pods

A user can be limited to viewing pods; a role can also allow listing pods in the kube-system namespace. section 3.1 section 9.3.2

Figure 3.3 The RBAC mechanism uses roles and role bindings to prevent unauthorized requests from accessing the Kubernetes API and persisting in etcd.
figure

Use the diagram to trace how RBAC roles and bindings restrict requests to the Kubernetes API. section 3.1

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Links authentication to RBAC permissions and identifies roles and bindings as access controls.
Examples
Demonstrates listing kube-system pods and limiting a user to viewing pods.
What it assumes
Assumes API requests authenticate first and distinguishes certificate-authenticated users from Service Account-authenticated pods.
What you can do after
Configure permissions for users, groups, and Service Accounts using roles and bindings.
How it connects
Connects authentication, RBAC, roles, role bindings, Service Accounts, and the Kubernetes API.

Also explained in

Compare how 28 books explain authorization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.