gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

Hidden password from /proc/{pid}/cmdline or ps command output

Open martianzhang opened this issue 6 years ago • 1 comments

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/cibuild returns with no formatting errors, build errors or unit test errors.

martianzhang avatar Apr 10 '20 16:04 martianzhang

bump

kian-boom avatar Apr 21 '26 20:04 kian-boom