gh-ost
gh-ost copied to clipboard
Hidden password from /proc/{pid}/cmdline or ps command output
Description
This PR [briefly explain what it does]
If the user sets the password with a command-line argument, when gh-ost running, another user can get the password from /proc/{pid}/cmdline file or from ps command. It seems to be not secure. As mysql client does, it will be more secure to replace the password with several x letters.
In case this PR introduced Go code changes:
- [x] contributed code is using same conventions as original code
- [x]
script/cibuildreturns with no formatting errors, build errors or unit test errors.
bump