-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password shown in plain text #58
Comments
This is a good idea. It has been on TODO list for a long time. I have to do some testing and see what library dependencies it introduces (trying to keep it minimal). |
Prompting definitely rules out the "server maintenance scripts" portion of the raison-d'etre. Preferred methods for automation would be passing a filename (where the password is in the file) as a variable (e.g Docker Secrets method), or as an environment variable.
|
Can't you just use this?
|
For what it's worth, the password and port are both stored in plaintext in the It might be a useful feature for |
The ./mcrcon -H localhost -p "$(awk -F '=' '$1 == "rcon.password" { print $2; exit }' /path/to/server.properties)" |
Currently the password is specified in plain text when invoking mcrcon.
Example:
./mcrcon -H localhost -P 25575 -p MY_PASSWORD
This obviously allows anyone to see the password on the screen while typing it in and also saves the password to ~/.bash_history.
A solution to this is to allow entering the password via a prompt when -p is not specified.
Pull Request #50 implements this kind of prompt (haven't tested it yet, but looks very promising)
The text was updated successfully, but these errors were encountered: