pt-stalk --log fills logfile with password Warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi Percona,
Thanks a lot for pt-stalk! I am sure this has already been reported, but I was not able to find another ticket. Apologies if this is a duplicate.
When using pt-stalk with --daemonize and --log, the logfile specified is filled with Warnings from the 'mysql' binary due to passwords being used on the command line.
Here is an example:
-bash-4.1$ tail /var/log/
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
And you can see here that all but 24 lines of my log file are this warning:
-bash-4.1$ grep -c 'Warning: Using a password on the command line interface can be insecure.' /var/log/
336
-bash-4.1$ grep -vc 'Warning: Using a password on the command line interface can be insecure.' /var/log/
24
While the 'mysql' binary Warning is valid, I don't think it is useful here. Could this be suppressed?
Thanks!
Tim
My environment/ version:
-bash-4.1$ rpm -qa|grep percona toolkit- 2.2.15- 1.noarch
percona-
Cheers,
Tim