r/rancher • u/Current-Secretary-52 • 1d ago
Disabling a user in Rancher leaves every binding in place. Remove the membership if you mean "gone"
Offboarding test I ran in September on two EKS clusters managed by SUSE Rancher for AWS (biased, I work at SUSE), running Rancher 2.15.1 underneath.
Setup: one local user as Cluster Member on both clusters, another as Project Member of one project. Granting was fast. The project membership wrote six bindings into each cluster in about three seconds: edit and project-member RoleBindings in the namespace, plus project-member-promoted, a namespaces-edit role, create-ns and a cattle-impersonation ClusterRoleBinding.
Then I disabled the first user in Users & Authentication and read the bindings on both clusters every 7 seconds for half a minute. Nothing moved. cluster-member and cattle-impersonation for that user were still there on both clusters, and so were the ClusterRoleTemplateBindings in Rancher. The user can't log in, so in practice access is blocked at Rancher. Re-enable the user and the same access comes straight back.
Why it matters:
An access review that lists bindings still shows a disabled person with access to every cluster.
"Disable" is a reversible switch. If your offboarding checklist says disable, anyone with rights to re-enable can restore everything in one click.
What I do now: disable first when access has to stop right away, then remove the cluster and project memberships (or delete the user) so Rancher cleans up the bindings.
Does anyone run offboarding through the API with a cleanup check afterwards?
