I’m using LDAP authentication to authenticate users for our Jupyterhub running in Kubernetes (using z2jh helm chart).
Currently, I’m trying to get the singleuser servers to run as the user, with the proper UID and GID provided from LDAP. I can set that up just fine using
auth_state_attributes and can pull that in through
extraConfig to set
NB_GID but am still running into issues getting the singleuser server to run with those respectively.
I’ve tried following the solution provided in Starting single-user notebook with our custom ldap docker image - #4 by manics but I’m still unable to actually get the UID and GID correct.
When trying to run with the singleuser UID set to 0, I get
[C 2021-04-29 19:24:22.134 SingleUserNotebookApp notebookapp:2204] Running as root is not recommended. Use --allow-root to bypass.
extraEnv: GRANT_SUDO: "yes" NOTEBOOK_ARGS: "--allow-root"
Doesn’t seem to resolve it. Any ideas what the issue might be? Also are there ways to do this without starting as root? Possibly with custom images?