So here’s my situation. I’m provisioning JupyterHub on a Kubernetes cluster using the helm chart (version 1.2.0) which uses the docker image (jupyterhub/k8s-hub:1.2.0). I’m using NativeAuthenticator.
I’ve configured the app such that I’ve made the user with name “root_admin” a valid admin in JupyterHub.
Now my trouble comes from how I can setup this user’s credentials. I want to use secrets provisioned separately so ideally I don’t want to use the UI.
From what I’ve learned, I can use adduser
command to add a user. Which is great for the moment, but the docker container starts with the user jovyan
so now I don’t have inherent root access to create the new user. I can potentially have the docker container run as root but that can always cause problems down the line. The other thing I’ve thought of is creating a user in the dockerfile who only has permissions to create user accounts, that way we can use this user to create the JuypterHub admin account, only that I don’t know 1 if this is possible or 2 if it poses any security risks.
So I’ve gone back to the original issue where I am unable to automatically create the admin account.
Are there any tips for this? Or advice as to how others provision JupyterHub for their org? Any thoughts or advice will be helpful.
Thanks in advance!