<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-keystoneclient.git/keystoneclient/session.py, branch stable/mitaka</title>
<subtitle>opendev.org: openstack/python-keystoneclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/'/>
<entry>
<title>Only log application/json content type</title>
<updated>2017-01-11T05:10:06+00:00</updated>
<author>
<name>Tobias Diaz</name>
<email>tobias.deb@gmail.com</email>
</author>
<published>2016-08-23T15:13:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=a0c67b860b3c5ff6f5fbb0e406dcbc3fd7aa9f88'/>
<id>a0c67b860b3c5ff6f5fbb0e406dcbc3fd7aa9f88</id>
<content type='text'>
This is a combination of 2 commits. The first commit's
message is:

Prevent MemoryError when logging response bodies

Response bodies are loaded into memory prior to
being logged.

Loading huge response bodies may result in a
MemoryError.

This patch proposes that only JSON and TEXT
responses be logged, i.e when the Content-Type
header is application/json or application/text.

Responses that do not include or have a different
Content-Type header will have their body omitted.

This is a sort of backport of the fix for
keystoneauth sessions, see
I93b6fff73368c4f58bdebf8566c4948b50980cee

Co-Authored-By: Samuel de Medeiros Queiroz &lt;samueldmq@gmail.com&gt;

Closes-bug: 1616105

Change-Id: I8f43eee3a0b35041c6cf672e476f8151cf2f8d14
(cherry-picked from: 3e56e0d7e5e1a76d806a3bc1f6d5ef9070f95771)

Only log application/json in session to start

When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.

Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.

Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105

Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
(cherry-picked from: 51d16fa344829aadf454faf5e0c4535a8f96a7c8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a combination of 2 commits. The first commit's
message is:

Prevent MemoryError when logging response bodies

Response bodies are loaded into memory prior to
being logged.

Loading huge response bodies may result in a
MemoryError.

This patch proposes that only JSON and TEXT
responses be logged, i.e when the Content-Type
header is application/json or application/text.

Responses that do not include or have a different
Content-Type header will have their body omitted.

This is a sort of backport of the fix for
keystoneauth sessions, see
I93b6fff73368c4f58bdebf8566c4948b50980cee

Co-Authored-By: Samuel de Medeiros Queiroz &lt;samueldmq@gmail.com&gt;

Closes-bug: 1616105

Change-Id: I8f43eee3a0b35041c6cf672e476f8151cf2f8d14
(cherry-picked from: 3e56e0d7e5e1a76d806a3bc1f6d5ef9070f95771)

Only log application/json in session to start

When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.

Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.

Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105

Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
(cherry-picked from: 51d16fa344829aadf454faf5e0c4535a8f96a7c8)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Do not log binary data during request" into stable/mitaka</title>
<updated>2017-01-10T00:33:45+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-01-10T00:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=a71593b19e52bb4469432d682bacecfb80843d73'/>
<id>a71593b19e52bb4469432d682bacecfb80843d73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not log binary data during request</title>
<updated>2017-01-09T20:06:44+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2017-01-03T14:55:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=e5bc019840c2dd08a4e48fd26a23bff8d1ab644c'/>
<id>e5bc019840c2dd08a4e48fd26a23bff8d1ab644c</id>
<content type='text'>
Do not log binary data during debug logging of a session.
Replace the binary data with the string &lt;binary_data&gt; instead.

sort of a backport of: I5184002f3a21c5e0ee510b21b9a7884c8dccd1e3

Change-Id: I07ddbc3967f297597542f1975004d94c490f6e6b
Related-Bug: 1616105
(cherry picked from commit af770f17b705a66bd4292b2a54df46ec5fdaa12b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not log binary data during debug logging of a session.
Replace the binary data with the string &lt;binary_data&gt; instead.

sort of a backport of: I5184002f3a21c5e0ee510b21b9a7884c8dccd1e3

Change-Id: I07ddbc3967f297597542f1975004d94c490f6e6b
Related-Bug: 1616105
(cherry picked from commit af770f17b705a66bd4292b2a54df46ec5fdaa12b)
</pre>
</div>
</content>
</entry>
<entry>
<title>X-Serivce-Token should be hashed in the log</title>
<updated>2017-01-09T19:53:53+00:00</updated>
<author>
<name>Tin Lam</name>
<email>tinlam@gmail.com</email>
</author>
<published>2017-01-09T16:31:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=398c8fb5160a05d4b28fb11147a9a295e11bcf31'/>
<id>398c8fb5160a05d4b28fb11147a9a295e11bcf31</id>
<content type='text'>
Currently, logs display the hash values of X-Auth-Token,
Authorization, and X-Subject-Token, but not the value of
the X-Service-Token.  This patch set adds the X-Service-Token
to the list of header fields to be hashed for logging purposes.

Change-Id: Iaa3a27f4b6c3baf964fa0c71328ffe9df43b2c0a
Closes-Bug: #1654847
(cherry picked from commit 56af8c90ecbb3cb5d29036151108b1e4e7a69bcc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, logs display the hash values of X-Auth-Token,
Authorization, and X-Subject-Token, but not the value of
the X-Service-Token.  This patch set adds the X-Service-Token
to the list of header fields to be hashed for logging purposes.

Change-Id: Iaa3a27f4b6c3baf964fa0c71328ffe9df43b2c0a
Closes-Bug: #1654847
(cherry picked from commit 56af8c90ecbb3cb5d29036151108b1e4e7a69bcc)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Handle exception on UnicodeDecodError in logging of request"</title>
<updated>2016-02-12T04:37:43+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-02-12T04:37:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=9fa98872cc7b4390bdefb5ae1ced0ef7c383061c'/>
<id>9fa98872cc7b4390bdefb5ae1ced0ef7c383061c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle exception on UnicodeDecodError in logging of request</title>
<updated>2016-02-10T19:04:47+00:00</updated>
<author>
<name>Trevor McKay</name>
<email>tmckay@redhat.com</email>
</author>
<published>2016-02-09T18:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=96fbfeab973cf61cd5ba129056cf4e6634d805b8'/>
<id>96fbfeab973cf61cd5ba129056cf4e6634d805b8</id>
<content type='text'>
If the logging of an HTTP request causes a UnicodeDecodeError,
modify the log entry using oslo_utils.encodeutils.safe_decode
with errors='replace' and try again

Co-Authored-By: Nikita Konovalov &lt;nkonovalov@mirantis.com&gt;

Change-Id: Ic365c654ebca4045208c6c30e232665145db7b4c
Closes-Bug: #1453953
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the logging of an HTTP request causes a UnicodeDecodeError,
modify the log entry using oslo_utils.encodeutils.safe_decode
with errors='replace' and try again

Co-Authored-By: Nikita Konovalov &lt;nkonovalov@mirantis.com&gt;

Change-Id: Ic365c654ebca4045208c6c30e232665145db7b4c
Closes-Bug: #1453953
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate Session</title>
<updated>2016-02-03T01:06:07+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2015-12-16T06:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=c1c2043da966ad8fb61f93739b11da609ee52d43'/>
<id>c1c2043da966ad8fb61f93739b11da609ee52d43</id>
<content type='text'>
Deprecate the keystoneclient Session object in favour of keystoneauth's
Session.

Change-Id: I26e000d626a466f63d10d2a961adc698f8de0636
Implements: bp deprecate-to-ksa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deprecate the keystoneclient Session object in favour of keystoneauth's
Session.

Change-Id: I26e000d626a466f63d10d2a961adc698f8de0636
Implements: bp deprecate-to-ksa
</pre>
</div>
</content>
</entry>
<entry>
<title>use positional library instead of utils</title>
<updated>2016-01-25T06:54:35+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>stevemar@ca.ibm.com</email>
</author>
<published>2016-01-25T06:48:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=81fdaabf3fd73b6ed7fc8e8b4eb550d9206c017a'/>
<id>81fdaabf3fd73b6ed7fc8e8b4eb550d9206c017a</id>
<content type='text'>
swap instances of utils.positional with the positional library.

Change-Id: Id8a9961e68d287a802f25512fc970829e9feb5c2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
swap instances of utils.positional with the positional library.

Change-Id: Id8a9961e68d287a802f25512fc970829e9feb5c2
</pre>
</div>
</content>
</entry>
<entry>
<title>Address hacking check H405</title>
<updated>2016-01-13T21:03:51+00:00</updated>
<author>
<name>lin-hua-cheng</name>
<email>os.lcheng@gmail.com</email>
</author>
<published>2016-01-13T21:03:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=77ed0d4d0c3413b15aa348613b8b40373bd5765b'/>
<id>77ed0d4d0c3413b15aa348613b8b40373bd5765b</id>
<content type='text'>
Previously, there were a string of commits to keystone that addresed ignored
hacking checks. This commit does the same for H405 in keystoneclient. This
also modifies our tox.ini so that we no longer ignore H405 violations.

Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680
Closes-Bug: 1482773
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, there were a string of commits to keystone that addresed ignored
hacking checks. This commit does the same for H405 in keystoneclient. This
also modifies our tox.ini so that we no longer ignore H405 violations.

Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680
Closes-Bug: 1482773
</pre>
</div>
</content>
</entry>
<entry>
<title>No keystone Endpoint now gives a valid Error Message</title>
<updated>2015-11-26T05:14:09+00:00</updated>
<author>
<name>rajiv</name>
<email>rajiv.kumar@nectechnologies.in</email>
</author>
<published>2015-02-12T11:08:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=1d17c70315a6f372b93f58973b10a3244a9a8b85'/>
<id>1d17c70315a6f372b93f58973b10a3244a9a8b85</id>
<content type='text'>
When no valid keystone endpoint exist, EndpointNotFound exception
is raised with an error message

Change-Id: I75b00cb73b18bc19261c061e0ae217ef251f8853
Closes-Bug: #1208991
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When no valid keystone endpoint exist, EndpointNotFound exception
is raised with an error message

Change-Id: I75b00cb73b18bc19261c061e0ae217ef251f8853
Closes-Bug: #1208991
</pre>
</div>
</content>
</entry>
</feed>
