Add changepassword function to peach-config #53

Merged
notplants merged 1 commits from change-password into main 2021-12-22 14:51:27 +00:00
Owner

This PR adds a utility function to peach-config that works like this:

peach@peach:~$ peach-config changepassword -h
peach-config-changepassword 0.1.13
Changes the password for the peach-web interface

USAGE:
    peach-config changepassword [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -p, --password <password>    Optional argument to specify password as CLI argument. If not specified, this command asks for user input for the passwords.

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.

This PR adds a utility function to peach-config that works like this: ``` peach@peach:~$ peach-config changepassword -h peach-config-changepassword 0.1.13 Changes the password for the peach-web interface USAGE: peach-config changepassword [OPTIONS] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: -p, --password <password> Optional argument to specify password as CLI argument. If not specified, this command asks for user input for the passwords. ``` 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.
notplants added 1 commit 2021-12-17 21:27:40 +00:00
Author
Owner

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 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.
notplants requested review from glyph 2021-12-17 21:28:49 +00:00
Author
Owner

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.

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.
notplants merged commit f43fbf19f5 into main 2021-12-22 14:51:27 +00:00
notplants deleted branch change-password 2021-12-22 14:51:39 +00:00
Sign in to join this conversation.
No description provided.