[ENH] - Create shared directory only if group has permissions #2431
Labels
area: integration/jupyterhub
needs: PR 📬
This item has been scoped and needs to be worked on
project: JATIC
Work item needed for the JATIC project
type: enhancement 💅🏼
New feature or request
Milestone
Feature description
At the moment, when a group is created in Keycloak, a shared directory is created for that group in the NFS, example:
akumar:~ 05:04 $ ls shared/ -ltrh total 8.0K drwxrwxrwx 4 0 0 4.0K Feb 14 12:34 analyst drwxrwxrwx 6 0 0 4.0K Apr 12 06:17 developer
Based on the groups the user is present in, the user have access to those.
We need to change this behaviour such that the shared directory is only created if a keycloak role with following attributes is attached to the group:
Role: create-shared-directory (name is only for example, it could be arbitrary)
write:shared
This issue is part of the permissions RFD: nebari-dev/governance#47
Notes for implementation:
nebari/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py
Line 130 in 3e0f41d
jupyterhub
client. See example below (keycloak screenshot):Value and/or benefit
This gives us the ability to selectively created shared directory for keycloak groups as the user might not want to create shared directory for every group they create in keycloak.
Anything else?
No response
The text was updated successfully, but these errors were encountered: