Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Setup Jupyter password during first login #14

Open
tomuben opened this issue Jul 22, 2022 · 0 comments
Open

Setup Jupyter password during first login #14

tomuben opened this issue Jul 22, 2022 · 0 comments
Labels
feature Product feature

Comments

@tomuben
Copy link
Collaborator

tomuben commented Jul 22, 2022

Background

Currently the Jupyter password is set statically by Ansible, see here.
It could be a problem to have a static password for all VM images. It would be better to create a password dynamically during the first boot of the VM and then show it to the user during login.

For that purpose we could create shell script which is executed by systemd. The script checks if the Jupyter password file (under ~/.jupyter/jupyter_notebook_config.json) exists, and if not, creates a new random password.

We can then use motd to show the password to the user during login.

Acceptance Criteria

  1. Remove the static creation of the password via Ansible
  2. Create a script which checks if the Jupyter config file already exists (~/.jupyter/jupyter_notebook_config.json) and if not creates a new random password
  3. Add a systemd service which runs the script during the first boot (via Ansible)
  4. Use Motd to show the Jupyter pasword during login
@tomuben tomuben added the refactoring Code improvement without behavior change label Jul 22, 2022
@redcatbear redcatbear added feature Product feature and removed refactoring Code improvement without behavior change labels Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Product feature
Projects
None yet
Development

No branches or pull requests

2 participants