pt-stalk --log fills logfile with password Warning

Bug #1502024 reported by Tim Vaillancourt
8
This bug affects 1 person
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/pt-stalk.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/pt-stalk.log
336
-bash-4.1$ grep -vc 'Warning: Using a password on the command line interface can be insecure.' /var/log/pt-stalk.log
24

While the 'mysql' binary Warning is valid, I don't think it is useful here. Could this be suppressed?

Thanks!

Tim

Revision history for this message
Tim Vaillancourt (tim.vaillancourt) wrote :

My environment/version:

-bash-4.1$ rpm -qa|grep percona
percona-toolkit-2.2.15-1.noarch

Cheers,

Tim

Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Confirmed with 2.2.15

nilnandan@desktop:/var/log$ tail -f /var/log/pt-stalk.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.
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.
^C
nilnandan@desktop:/var/log$ pt-stalk --version
pt-stalk 2.2.15
nilnandan@desktop:/var/log$

Changed in percona-toolkit:
status: New → Confirmed
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-1307

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.