-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] - Keycloak Group attributes to control JupyterLab profile access #1191
Comments
@danlester I think this is great functionality to have and we could control dask profiles the same way. I was able to get this working as a test but haven't actually implemented it. Settings some group and user attributesI've used profiles but I agree we should use a more specific name like Next set a mapper on the jupyterhub oauth clientTesting it within keycloak |
Yes, that's the same as the approach I was suggesting. But I think you need to specify lists like this:
In my tests, the mapper merged as hoped - just one long list of all profiles (not duplicated). |
Oh awesome much better didn't know about that option https://stackoverflow.com/questions/61132928/keycloak-user-attributes-with-multiple-values-list |
Also longer term I think this is the correct way we should encourage admins to manage profile access. I'd be in favor of dropping |
Actually, the behavior is getting very confusing once we mix all these ways to control permissions. I will add a field called If If If |
Basically if a profile has any |
Feature description
This functionality has been dropped in the recent refactor.
If a Keycloak group had a
profile
attribute containing a list of JupyterLab profiles then members of that group would be able to access the profiles. This check only came into effect for profiles defined withgroups:
(which could be empty) in theqhub-config.yaml
file. That choice was because profiles defined with nogroups:
(orusers:
) would be available to all users - i.e. no access control - so this ability to override dynamically by setting Keycloak group attributes is not wanted for those groups.I would like to reinstate this functionality. It is possible that some usage of roles in keycloak would be better, but as a short term solution at least, this functionality can be easily reinstated by adding a mapper to the jupyterhub client as follows:
We would also need to reinstate the code that checks for this in
jupyterhub_config.py
or similar.I propose we change the attribute name from
profiles
tojupyterlabprofiles
though.Value and/or benefit
This allows profiles to be assigned to groups dynamically using Keycloak without a full redeploy.
Anything else?
No response
The text was updated successfully, but these errors were encountered: