Wire Rancher to Authentik ak_groups + akP-rancher global roles #2
Reference in New Issue
Block a user
Delete Branch "benvin/rancher-akgroups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Complete the two-tier Authentik RBAC (terraform-authentik#7) for Rancher: read the hierarchical
ak_groupsclaim and grant Rancher global roles to theakP-rancher-*permission groups. Members ofakR-global-admin/akR-standard-userinherit these.Change
scopes+=ak_groups;groups_field: ak_groups(read groups from that claim instead of the defaultgroups).akP-rancher-admin→admin,akP-rancher-user→user, viarancher2_global_role_bindingwith principalkeycloakoidc_group://<name>.Depends on
terraform-authentik#7 (creates
akP-rancher-*, the access binding, and theak_groupsmapping).Validation
tofu validatepasses. Note: the group principal id format (keycloakoidc_group://<name>) can only be confirmed on a liveapply/login — if the binding errors, that prefix is the knob to adjust.