Skip to content
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

(re)Starting K8s cluster with lab charts resets Jupyter Token #179

Open
dwolfson opened this issue Aug 18, 2022 · 3 comments
Open

(re)Starting K8s cluster with lab charts resets Jupyter Token #179

dwolfson opened this issue Aug 18, 2022 · 3 comments

Comments

@dwolfson
Copy link
Member

Experimenting with the new approach to starting Jupyter in the development version of the Egeria-lab charts I found that each time the k8s cluster restarts, a new token is generated (and would thus have to be conveyed to users). This may be inconvenient for demo and non-developer usage. Suggest further investigation and discussion on Jupyter Server authentication approaches?

@planetf1
Copy link
Member

planetf1 commented Aug 18, 2022

Agree, it would be good for this token to be stable once the chart is deployed.

The Jupyter token is generated at startup if it does not exist.

When the password is generated Jupyter adds it into a file in the ~/.jupyter directory called jupyter_notebook_config.py

This directory is not persisted in the current deployment, so the next time Jupyter starts the same thing happens.

Possible fixes include

  • Making this directory (any others?) persistent, just as we do for ~/work (which holds the notebooks)
  • Allowing the password to be explicitly set (defaults to existing behaviour if not)

Ideally both probably make sense.

There are also other authentication related settings, and general jupyer settings, so possibly an option to specify other overriding values could be useful, though more complex as they'd need to be merged in.

@planetf1 planetf1 self-assigned this Aug 18, 2022
@dwolfson
Copy link
Member Author

One additional thought to consider is that Jupyter allows a user defined password to be created using the token - perhaps we should do that to make it easier for users to login?

@planetf1
Copy link
Member

Yes - that's what I'm suggesting in the previous entry (second bullet) :-)
Allowing the installer to specify a password is fine. I would not create a default password - so having an auto-generated token and persisting should be default.

planetf1 added a commit to planetf1/egeria-charts that referenced this issue Sep 6, 2022
Signed-off-by: Nigel Jones <nigel.l.jones+git@gmail.com>
planetf1 added a commit that referenced this issue Sep 6, 2022
#179 add option to set password for jupyter
@planetf1 planetf1 removed their assignment Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Todo
Development

No branches or pull requests

2 participants