<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/tooz.git/tooz/drivers/pgsql.py, branch master</title>
<subtitle>opendev.org: openstack/tooz.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/'/>
<entry>
<title>Replace md5 with oslo version</title>
<updated>2020-10-29T19:44:36+00:00</updated>
<author>
<name>Ade Lee</name>
<email>alee@redhat.com</email>
</author>
<published>2020-10-06T18:35:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=54448e9d8b968c6d537a4a3b648ed280174b4f2c'/>
<id>54448e9d8b968c6d537a4a3b648ed280174b4f2c</id>
<content type='text'>
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

Reviewers need to pay particular attention as to whether the keyword
parameter (usedforsecurity) is set correctly.

Change-Id: Idbef0f0896753765372c8dfac8ab15e6be49922f
Depends-On: https://review.opendev.org/#/c/760160
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

Reviewers need to pay particular attention as to whether the keyword
parameter (usedforsecurity) is set correctly.

Change-Id: Idbef0f0896753765372c8dfac8ab15e6be49922f
Depends-On: https://review.opendev.org/#/c/760160
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove six library</title>
<updated>2020-07-01T13:56:53+00:00</updated>
<author>
<name>Riccardo Pittau</name>
<email>elfosardo@gmail.com</email>
</author>
<published>2020-07-01T13:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=5ac72fcb3d2071d8fd4c382a48efe5b9dbd4dec9'/>
<id>5ac72fcb3d2071d8fd4c382a48efe5b9dbd4dec9</id>
<content type='text'>
The tooz project doesn't support Python 2 anymore, using the
six library should not be necessary.

Change-Id: I9886cabcd13cbc615065ceb372efbf037dff1aeb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tooz project doesn't support Python 2 anymore, using the
six library should not be necessary.

Change-Id: I9886cabcd13cbc615065ceb372efbf037dff1aeb
</pre>
</div>
</content>
</entry>
<entry>
<title>More explicitly document driver connection strings</title>
<updated>2018-12-17T22:37:55+00:00</updated>
<author>
<name>Ben Nemec</name>
<email>bnemec@redhat.com</email>
</author>
<published>2018-12-10T23:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=e76235b675f7816e79128446236eac81f5a6ec0a'/>
<id>e76235b675f7816e79128446236eac81f5a6ec0a</id>
<content type='text'>
If you're not intimately familiar with RFC 1808 it can be a bit tricky to
write tooz connection strings. In addition, some drivers do not document the
options that they recognize in a connection string. This can force a user to
read the driver code in order to figure out how to configure tooz to use said
driver, which should not be the case.

This change more explicitly documents the format of the connection string,
including which parts of an RFC 1808 URI it recognizes, and the options that
can be passed. It also clarifies which parts of the connection string are
optional (possibly because they have defaults) and which must always be
included.

Note that not every possible configuration is documented. For example, the
postgres driver supports multiple methods of configuring the connection host
and port. For consistency, I only documented the one that matches the other
drivers. This should be sufficient to allow a user to write a working
connection string.

This change also wires the etcd3 and etcd3gw drivers into the doc index since
they were missing before.

Change-Id: I66e54433115f27fb54badc2173f8f6044c49aacb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If you're not intimately familiar with RFC 1808 it can be a bit tricky to
write tooz connection strings. In addition, some drivers do not document the
options that they recognize in a connection string. This can force a user to
read the driver code in order to figure out how to configure tooz to use said
driver, which should not be the case.

This change more explicitly documents the format of the connection string,
including which parts of an RFC 1808 URI it recognizes, and the options that
can be passed. It also clarifies which parts of the connection string are
optional (possibly because they have defaults) and which must always be
included.

Note that not every possible configuration is documented. For example, the
postgres driver supports multiple methods of configuring the connection host
and port. For consistency, I only documented the one that matches the other
drivers. This should be sufficient to allow a user to write a working
connection string.

This change also wires the etcd3 and etcd3gw drivers into the doc index since
they were missing before.

Change-Id: I66e54433115f27fb54badc2173f8f6044c49aacb
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Mutualize executor code in a mixin class"</title>
<updated>2017-06-24T06:40:36+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-06-24T06:40:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=1c6b3506fdb07dfac9d9cabe422867ea619c2c1f'/>
<id>1c6b3506fdb07dfac9d9cabe422867ea619c2c1f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>pgsql: fix self._conn.close() being called without connection</title>
<updated>2017-06-22T10:48:06+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2017-06-22T10:48:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=90a56b0ab6757076af2f1c3fec5593d91baa6de8'/>
<id>90a56b0ab6757076af2f1c3fec5593d91baa6de8</id>
<content type='text'>
If an error occurs on connection establishment, self._conn is None so it can't
be closed.

Change-Id: If6fce24cb27aa7090b5165ca4a895c846c40d2dd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If an error occurs on connection establishment, self._conn is None so it can't
be closed.

Change-Id: If6fce24cb27aa7090b5165ca4a895c846c40d2dd
</pre>
</div>
</content>
</entry>
<entry>
<title>Mutualize executor code in a mixin class</title>
<updated>2017-06-21T15:43:26+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2017-06-06T16:28:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=13e23e30877a43a203234e9370e23e720451092e'/>
<id>13e23e30877a43a203234e9370e23e720451092e</id>
<content type='text'>
Change-Id: I364b0ca5a6361a818a084bbcb83c9e7855cb3583
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I364b0ca5a6361a818a084bbcb83c9e7855cb3583
</pre>
</div>
</content>
</entry>
<entry>
<title>{my,pg}sql: close connections when out of retry</title>
<updated>2017-06-16T11:40:42+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2017-06-09T07:53:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=ee66b6e4e416569cb8d51a9b19263c22c6e1f87d'/>
<id>ee66b6e4e416569cb8d51a9b19263c22c6e1f87d</id>
<content type='text'>
The connection is supposedly closed when blocking is False and the lock is not
acquired. Or when an exception happens in the locking code.

But if blocking is e.g. 5 seconds, then RetryError is raised but without
closing any connection at the end. This fixes that.

Change-Id: I7b40e466fe5fc01ee3f8c012f765aafca9ce716a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The connection is supposedly closed when blocking is False and the lock is not
acquired. Or when an exception happens in the locking code.

But if blocking is e.g. 5 seconds, then RetryError is raised but without
closing any connection at the end. This fixes that.

Change-Id: I7b40e466fe5fc01ee3f8c012f765aafca9ce716a
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix psycopg2 connection argument"</title>
<updated>2017-05-09T19:44:41+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-05-09T19:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=17620203cb2c8e93a331875cc0e21736ec75dfc4'/>
<id>17620203cb2c8e93a331875cc0e21736ec75dfc4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix psycopg2 connection argument</title>
<updated>2017-05-08T21:30:04+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2017-05-08T18:03:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=c9421c62692072f33e05c64ff068eb48388d66dd'/>
<id>c9421c62692072f33e05c64ff068eb48388d66dd</id>
<content type='text'>
commit 6eea97c3efe6dee6c2c036a581354aaa9b8ef5fa modified the kwarg from "user"
to "username" by mistake.

Change-Id: Idfe8425d08c065ef19e8952e8fcb205779243a99
Closes-Bug: #1689211
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 6eea97c3efe6dee6c2c036a581354aaa9b8ef5fa modified the kwarg from "user"
to "username" by mistake.

Change-Id: Idfe8425d08c065ef19e8952e8fcb205779243a99
Closes-Bug: #1689211
</pre>
</div>
</content>
</entry>
<entry>
<title>sql: close connection for lock if not used</title>
<updated>2017-04-27T14:27:30+00:00</updated>
<author>
<name>gord chung</name>
<email>gord@live.ca</email>
</author>
<published>2017-04-26T17:25:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/tooz.git/commit/?id=6e3f5ceb75f54fde1cef4b4596ea537c0aef2616'/>
<id>6e3f5ceb75f54fde1cef4b4596ea537c0aef2616</id>
<content type='text'>
each lock creates it's own connection and only gets released when
garbage collection kicks in because of limitations

change logic so if we don't have lock, we don't have connection.

Change-Id: Ibf6eaf3ff3031424917e9fdb6920bf2fc1808b7c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
each lock creates it's own connection and only gets released when
garbage collection kicks in because of limitations

change logic so if we don't have lock, we don't have connection.

Change-Id: Ibf6eaf3ff3031424917e9fdb6920bf2fc1808b7c
</pre>
</div>
</content>
</entry>
</feed>
