Skip to content

Dump.go Log.infof the args #407

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

Closed
nxjkho opened this issue Aug 7, 2019 · 2 comments · Fixed by #608
Closed

Dump.go Log.infof the args #407

nxjkho opened this issue Aug 7, 2019 · 2 comments · Fixed by #608

Comments

@nxjkho
Copy link

nxjkho commented Aug 7, 2019

https://github.com/siddontang/go-mysql/blob/master/dump/dump.go#L203

args = append(args, fmt.Sprintf("--user=%s", d.User))
args = append(args, fmt.Sprintf("--password=%s", d.Password))

log.Infof("exec mysqldump with %v", args)
would this also send the credentials to the log?

Seem dangerous

@nxjkho
Copy link
Author

nxjkho commented Oct 22, 2019

follow up on this. @siddontang
I can do a pull request for this to comment the log.info out

@Christian-Lemieux
Copy link

@siddontang Seconding this as well. I'd prefer to avoid having production DB username/passwords logged in plaintext. Would it be cool to open a PR to add an optional flag to disable this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants