Add --password-file to init and profile commands - #853
Conversation
Passing the admin password with --password puts it in the process arguments, where it is visible to other users on the machine and ends up in logs of whatever runs the command. Add --password-file to read it from a file instead, which allows automating the initialization without exposing the password. profile add and profile login take the same flag, as they have the same problem. Signed-off-by: Paul Meyer <katexochen0@gmail.com>
|
There are other secrets I'd like to set via file, too. Happy to follow up with that if desired. |
|
I've been thinking about using environment variables to pass in secrets to the They're not mutually exclusive. We could have both, with one of them being authoritative. What do you think? |
|
Also, rather than having a separate file per setting, we could add a
something like This is already somewhat done for missing command line args. |
|
I want to use this with systemd credentials, which are delivered via |
|
ahh. Ok. Now it makes sense. |
Passing the admin password with --password puts it in the process arguments, where it is visible to other users on the machine and ends up in logs of whatever runs the command. Add --password-file to read it from a file instead, which allows automating the initialization without exposing the password. profile add and profile login take the same flag, as they have the same problem.