Add changepassword function to peach-config #53
Reference in New Issue
Block a user
No description provided.
Delete Branch "change-password"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a utility function to peach-config that works like this:
If a password is not supplied as an argument, it asks the user to enter a password via the command line, using the rpassword crate.
This is a useful utility as a fallback if you get locked out of the web interface,
and can also be used by peach-img-builder to easily initialize the peachcloud with a default password during the setup script.
In this PR I also removed peach-probe from the workspace temporarily, as its throwing compilation errors which were interfering with my work on this, and can be fixed in a separate PR.
In the future, we could also have the user enter an "initialization flow" for peach-web, if it starts and config.yml does not exist yet, and in this flow, they could enter their password.
But setting the default password in the image creation seems like a working method for now.