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.
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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.