// zero trust · just-in-time access
Just-in-time access to Kubernetes
In Kubernetes, a RoleBinding has no end date: whoever got admin on prod-eu for an incident last spring probably still has it. Just-in-time access turns that around. You hold a permission while you need it, and then it ends without anyone having to remember. With kubelatch, that is how every permission works by default.
// grant
Every permission starts with an end date
- An administrator grants a role on a namespace or a whole cluster, for
8 h,7 days,30 days,90 daysor a date.30 daysis the default. - Never is offered for every role but
cluster-admin, and you have to pick it on purpose. The Permissions screen counts the ones with no expiry so you can bring them to zero. - In Pro, an environment such as
prodsets a maximum and a default length for the permissions on its clusters.
// ask, don’t borrow
Asking for access is a request, not a favor
In Pro, when you need a role you don’t have, you ask for it from kubelatch itself, for a while, with a reason and, where the environment asks for one, a ticket: from Home, from the link a cluster’s 403 carries, or with kubelatch request. The owners of that namespace, cluster or environment, or an administrator, decide, and what you get ends on its own. A request asks for 30 days at most and never for a permission without an end.
// extend and revoke
More time, or none, in seconds
// emergencies
cluster-admin for an incident, for 8 hours at most
For an urgent intervention, grant cluster-admin with a reason and the incident’s ticket. It never lasts past 8 hours, the control log keeps who granted it and to whom, and every request made with it is in the audit. Revoke it as soon as the work is done.
// questions
Questions about just-in-time access
Is just-in-time access in Free?
Permissions with an end date, extending and revoking are in Free. Access requests with approval, environments and owners are in Pro.
What happens to the groups my cluster’s SSO already uses?
The bindings your cluster already gives those groups stay as they are. A kubelatch permission can make someone a member of one of those groups for as long as the permission lasts.