Skip to content

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

Open
martianzhang wants to merge 5 commits intogithub:masterfrom
martianzhang:master
Open

Hidden password from /proc/{pid}/cmdline or ps command output#837
martianzhang wants to merge 5 commits intogithub:masterfrom
martianzhang:master

Conversation

@martianzhang
Copy link

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:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants