Identity & Zero Trust for Platform Engineers›09 · Human access: least privilege, JIT and reviews

Lesson 09 of 14 · Human and application identity

Human access: least privilege, JIT and reviews

Give engineers exactly the access they need, only while they need it, and prove it afterwards. Design access around IdP groups, standard roles and GitOps, add just-in-time elevation and break-glass for incidents, and automate reviews and evidence.

Advanced → Architect
Key wordsleast privilegeidentity governanceIdP groupsRBACjust-in-time accessJITbreak-glassprivileged accessaccess reviewsjoiner mover leaverseparation of dutiesaudit logsstanding privilege

Standing privilege is the risk

Most serious incidents involve a human credential: phished, reused, left active after someone moved teams, or simply too powerful. The goal is no standing privilege: people hold the minimum access day to day, and anything more is temporary, approved and recorded.

Teachers don't carry keys to every room all day. They have keys for their own classroom. If they need the server room, they sign out the key at the office, it must come back by the end of the day, and the office book records who took it and why.

Design from the identity provider outwards

HR system ──► IdP (users + groups) ──► cloud IAM (roles per group)
                    │                ──► Kubernetes RBAC (RoleBindings to groups)
                    │                ──► CI/CD, Git, observability, databases
                    └─ SCIM provisioning to apps, MFA, conditional access
  • Groups, not individuals. team-shop-dev, team-shop-oncall, platform-admins. A leaver disabled in the IdP loses everything at once.
  • Standard roles per persona, created by the platform when a team is onboarded (golden path), not hand-made:
Persona Non-production Production
Developer edit in own namespaces view (no Secrets)
On-call engineer edit view + JIT elevation
Platform engineer admin on platform namespaces view + JIT elevation
GitOps controller (machine) apply apply
  • Short-lived credentials everywhere: OIDC login for kubectl, SSO into cloud consoles with session limits, no shared kubeconfigs or long-lived access keys.

Production changes through Git

In a GitOps platform the deploy identity, not a person, has write access to production. Engineers change production by pull request: reviewed, approved, recorded. That gives separation of duties (the author is not the approver) and a complete change history without extra tooling.

Just-in-time elevation and break-glass

Incidents still need hands-on access. Make it temporary:

  1. The engineer requests elevation (portal, chat command or CLI) with a reason and an incident or ticket link.
  2. Policy decides: auto-approve for on-call during an active incident, otherwise a second person approves.
  3. The IdP adds the engineer to an elevated group for, say, one hour.
  4. All actions are logged; the membership expires automatically.
  5. Elevated sessions are reviewed afterwards.

Break-glass accounts are for when the IdP itself is down: credentials sealed in a vault, usable by two people together, alerting loudly when used, and rotated after every use.

The forgotten super-user

A cluster-admin binding created during an outage two years ago, still active, for someone who has left. Detect these with regular scans of ClusterRoleBindings and cloud admin roles, and alert on new ones.

Access reviews: keep verifying

Access drifts. Reviews put a human decision on it regularly:

  • Who reviews: managers for their reports' group memberships; resource owners for who can reach their systems.
  • How often: quarterly for privileged access, at least yearly for the rest; immediately when someone moves teams (the mover case is the one most often missed).
  • Make it easy: show what the access is used for. Unused permissions for 90 days are strong candidates to remove.
  • Act on it: revocations flow back automatically through the IdP and SCIM.

Evidence without screenshots

Auditors (SOC 2, ISO 27001 and similar) ask the same questions every year. Answer them from systems:

  • IdP group membership history and SCIM provisioning logs.
  • JIT grants with requester, approver, reason and duration.
  • Kubernetes audit logs and cloud audit logs shipped to a central, tamper-resistant store.
  • Git history and pull-request approvals for production changes.
  • Completed access-review campaigns with decisions.

Going deeper

Identity governance tools automate much of this: role mining from actual usage, certification campaigns, segregation-of-duties rules ("nobody may both approve and deploy payments code"), and privileged access management for JIT sessions. A platform team that integrates with them early saves weeks of audit preparation every year.

Try it

In a kind cluster with OIDC login (or using --as and --as-group impersonation), create the persona roles from the table for one namespace. Verify with kubectl auth can-i --list that the developer persona cannot read Secrets in production and the on-call persona can only exec after being added to the elevated group. Enable an audit policy and find your own exec in the log.

Recap

  • Remove standing privilege: groups from the IdP, standard roles per persona, short-lived credentials.
  • Production writes through GitOps; humans read-only, with JIT elevation and audited break-glass.
  • Review access regularly (especially movers), remove unused permissions, and keep evidence in systems, not screenshots.

This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.