Closed (outdated)
Project:
Backup and Migrate
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jun 2014 at 07:16 UTC
Updated:
26 Nov 2025 at 11:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aron novaka better patch, unlink the file always
Comment #2
morgantocker commentedThe open bug on the MySQL side not withstanding (#66546 is marked as verified), there is actually a small window of time when the password will appear in the operating system's processlist and visible via 'ps'.
I wonder if there is a way to flag drupal's Backup and Migrate functionality as incompatible with those in higher security environments (for example those in ecommerce requiring PCI compliance).
Comment #3
morgantocker commentedI have filed a bug for mysqldump (separate from 'mysql' cli) here: http://bugs.mysql.com/bug.php?id=72923
Comment #4
yesct commentedComment #5
aron novakWell, but do you think that it's really only an upstream bug? Is it a normal behaviour that we save the stderr of the command? I don't think so. Mysqldump does not mix the error with the SQL commands, in Drupal, we do. Would not be better to catch stderr separately, if there's meaningful output on stdout, save it and serve it and show the stderr output to the user? Or something like this. There may be other legitimate cases when mysql says something via stderr but the dump is generated successfully or partially successfully.
Comment #6
morgantocker commented@Aron: The upstream bug is really an upstream feature request: provide an easy way for programs such as Drupal to be secure. This is of relevance because the recommended way to secure a deployment is to use mysql_config_editor, but this program will not work non-interactive.
In the interim, I think it is diligent to plan ahead with a solution similar to your proposed patch. The warning is not-bogus though (there is a small risk of the password being captured on the processlist). If there is a way to warn users in high security environments, it makes sense to do so.
Comment #7
aron novakOk, thanks for the explanation, so would you like me to work further on the patch, for example to retrieve the warning and log it for example to dblog, instead of discarding it?
Comment #8
morgantocker commentedYes, I like that solution.
Comment #9
couturier commentedThis issue is so old that I am going to go ahead and close it. If this is still a problem with newer versions of Backup and Migrate and MySQL, please re-open under the correct version.
Comment #10
ivnish