StaffCoder
Kubernetes
15 modules · 60 challengesSign up
Module 15 of 15 · 4 challenges

Certified Kubernetes Application Developer (CKAD) RBAC & ServiceAccounts

Learn to grant least-privilege access with Roles, ClusterRoles and their bindings, and to authenticate automation as a ServiceAccount.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Roles & RoleBindings

Sign up to unlock
—No data yetmedium
About this challenge

Replace namespace-wide admin with two namespaced Roles, bind them to a user, a group and a ServiceAccount, and prove with access reviews what is granted, what is refused and what a revoked binding takes away.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

ClusterRoles & Scope

Sign up to unlock
—No data yetmedium
About this challenge

Replace a Role pasted into every namespace with one ClusterRole, bind it cluster-wide and again inside a single namespace, and prove where each grant reaches and where the cluster-scoped rule stops.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

ServiceAccounts & Tokens

Sign up to unlock
—No data yetmedium
About this challenge

Give release automation its own ServiceAccounts, mint tokens for them, call the API as each account to prove where its binding stops, run a pod as one of them, and revoke an inherited account's access.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Least-Privilege Rollout

STAR
Solving it completes the module
—No data yetmedium
About this challenge

Put a namespace on least privilege in one release - Roles for the app team, one auditor ClusterRole bound cluster-wide and namespace-wide, ServiceAccount tokens for the automation, a revoked god-mode binding, and an access report re-derived from the cluster on every run.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.