Managing membership
RCS manages tenant membership in Keycloak. Each tenant has a Keycloak group named after its Cloud RAP group, and RCS adds and removes users in it on request. PI self-service through the Cloud RAP in CCDB is planned but not live yet.
- Requests come from the PI holding the Cloud RAP, or a delegate. Students, postdocs and staff can’t add themselves.
- Every member has the
adminrole in every tenant namespace. There are no per-member roles and no read-only access, so membership is all or nothing. - Neither CCDB sponsorship nor being listed on the Cloud RAP grants Kestrel access. RCS must add each user to the Keycloak group.
Adding a user
Section titled “Adding a user”The user needs a CCDB account first; for students, postdocs, staff and external collaborators that means a role you sponsor. Keycloak federates its users from Alliance LDAP, so RCS can’t add an account until it exists in CCDB and has synced. See Requesting access for the full flow.
- Open a ticket with RCS with the user’s CCDB username or CCRI and your tenant name.
- RCS adds the user to the tenant’s Keycloak group and confirms on the ticket.
- The user logs in with kubelogin.
kubectl auth whoamishould listoidc:<RAP group>underGroups.
Removing a user
Section titled “Removing a user”- Open a ticket with RCS asking to remove the user.
- RCS removes the user from the tenant’s Keycloak group.
- Once the user’s current token expires, their requests to tenant namespaces are denied.
Removal doesn’t touch running workloads; the user can no longer create, change or delete anything in the tenant.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
kubectl get ns returns nothing | Normal: a new tenant has no namespaces | Check kubectl auth whoami shows oidc:<RAP group>. If it does, access works. |
| Group still missing after RCS confirms the add | Stale cached token | kubectl oidc-login clean, then any kubectl command |
| RCS can’t find the user in Keycloak | The CCDB account doesn’t exist or hasn’t synced yet | Confirm the CCDB account and role are active, wait for the sync, then follow up on the ticket |
| Removed user can still run commands | Their cached token hasn’t expired | It expires on its own; ask RCS if it’s urgent |
For how the group reaches the cluster, see Identity chain.
Contacts: CCDB accounts and roles, accounts@tech.alliancecan.ca. Cloud RAP applications and allocations, cloud@tech.alliancecan.ca. Membership and anything Kestrel-specific, RCS.