<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/django.git/tests/dbshell, branch 3.2</title>
<subtitle>github.com: django/django.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/'/>
<entry>
<title>Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows.</title>
<updated>2020-11-03T10:38:40+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2020-11-03T10:38:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=009fddc96b88a9aee1232d6a2637f2970fdcfb50'/>
<id>009fddc96b88a9aee1232d6a2637f2970fdcfb50</id>
<content type='text'>
When env is passed to subprocess.run() we should pass all existing
environment variables. This fixes crash on Windows:

Fatal Python error: failed to get random numbers to initialize Python

Fatal Python error: _Py_HashRandomization_Init: failed to get random
numbers to initialize Python
Python runtime state: preinitialized</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When env is passed to subprocess.run() we should pass all existing
environment variables. This fixes crash on Windows:

Fatal Python error: failed to get random numbers to initialize Python

Fatal Python error: _Py_HashRandomization_Init: failed to get random
numbers to initialize Python
Python runtime state: preinitialized</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #32061 -- Prevented password leak on MySQL dbshell crash.</title>
<updated>2020-10-30T09:12:52+00:00</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-10-04T22:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=384ac0990ff414526ec47381845dae79b8e3ddfe'/>
<id>384ac0990ff414526ec47381845dae79b8e3ddfe</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #32061 -- Added test for dbshell password leak on PostgreSQL.</title>
<updated>2020-10-30T09:12:47+00:00</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-10-04T22:27:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=eb25fdb620f9fc3e2bcde916f9db2c06f53a3cd7'/>
<id>eb25fdb620f9fc3e2bcde916f9db2c06f53a3cd7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #32061 -- Unified DatabaseClient.runshell() in db backends.</title>
<updated>2020-10-29T21:22:58+00:00</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-10-04T22:25:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=bbe6fbb8768e8fb1aecb96d51c049d7ceaf802d3'/>
<id>bbe6fbb8768e8fb1aecb96d51c049d7ceaf802d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #6517 -- Made dbshell use charset option on MySQL.</title>
<updated>2020-10-17T10:24:36+00:00</updated>
<author>
<name>manav014</name>
<email>dpsman13016@gmail.com</email>
</author>
<published>2020-10-14T18:07:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=af87574a3c3df61cf2f829909977e347118e6480'/>
<id>af87574a3c3df61cf2f829909977e347118e6480</id>
<content type='text'>
Co-Authored-By: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-Authored-By: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #31491 -- Allowed 'password' option in DATABASES['OPTIONS'] on MySQL.</title>
<updated>2020-06-12T10:07:43+00:00</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2020-06-11T18:12:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=9e8edc1e5511f128dec6bcd70a10ebd263b76280'/>
<id>9e8edc1e5511f128dec6bcd70a10ebd263b76280</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #29501 -- Allowed dbshell to pass options to underlying tool.</title>
<updated>2020-04-14T13:02:51+00:00</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2020-04-14T07:56:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=5b884d45ac5b76234eca614d90c83b347294c332'/>
<id>5b884d45ac5b76234eca614d90c83b347294c332</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #29501 -- Added test for missing dbshell executable.</title>
<updated>2020-04-14T11:22:46+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2020-04-14T10:18:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=8189976663eb160bfd4b2ae44fd5250da1089744'/>
<id>8189976663eb160bfd4b2ae44fd5250da1089744</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #31076 -- Fixed dbshell crash on Windows with Python &lt; 3.8.</title>
<updated>2019-12-16T10:20:41+00:00</updated>
<author>
<name>Zeynel Özdemir</name>
<email>ozdemir.zynl@gmail.com</email>
</author>
<published>2019-12-14T23:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=9d40b6bbf44d0de4d446dde5b9b51cadb60a24a3'/>
<id>9d40b6bbf44d0de4d446dde5b9b51cadb60a24a3</id>
<content type='text'>
subprocess.run()'s args parameter accepts path-like objects on Windows
since Python 3.8.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
subprocess.run()'s args parameter accepts path-like objects on Windows
since Python 3.8.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed broken OracleDbshellTests tests after 9386586f31b8a0bccf59a1bff647cd829d4e79aa.</title>
<updated>2019-08-23T19:25:21+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2019-08-23T19:25:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=92c72b68b759d0b12d90e029f03a98c6a8f661fe'/>
<id>92c72b68b759d0b12d90e029f03a98c6a8f661fe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
