django1/django/db/backends/mysql
Simon Charette 384ac0990f Refs #32061 -- Prevented password leak on MySQL dbshell crash.
The usage of the --password flag when invoking the mysql CLI has the
potential of exposing the password in plain text if the command happens
to crash due to the inclusion of args provided to
subprocess.run(check=True) in the string representation of the
subprocess.CalledProcessError exception raised on non-zero return code.

Since this has the potential of leaking the password to logging
facilities configured to capture crashes (e.g. sys.excepthook, Sentry)
it's safer to rely on the MYSQL_PWD environment variable instead even
if its usage is discouraged due to potential leak through the ps
command on old flavors of Unix.

Thanks Charlie Denton for reporting the issue to the security team.

Refs #24999.
2020-10-30 10:12:52 +01:00
..
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00
base.py Combined MySQL backend server info queries. 2020-06-22 09:58:46 +02:00
client.py Refs #32061 -- Prevented password leak on MySQL dbshell crash. 2020-10-30 10:12:52 +01:00
compiler.py Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB. 2020-08-31 08:11:28 +02:00
creation.py Refs #32061 -- Unified DatabaseClient.runshell() in db backends. 2020-10-29 22:22:58 +01:00
features.py Fixed #31777 -- Added support for database collations to Char/TextFields. 2020-09-21 18:24:56 +02:00
introspection.py Fixed #31777 -- Added support for database collations to Char/TextFields. 2020-09-21 18:24:56 +02:00
operations.py Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a specific timezone. 2020-10-14 20:06:26 +02:00
schema.py Fixed #31777 -- Added support for database collations to Char/TextFields. 2020-09-21 18:24:56 +02:00
validation.py Fixed #31144 -- Relaxed system check for max_length of CharFields on MySQL/MariaDB by turning into a warning. 2020-03-20 12:28:10 +01:00