OpenStack Identity Authentication Library
Go to file
Samuel de Medeiros Queiroz 5efe19ff7f Only log application/json content type
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.

Closes-bug: 1616105

Change-Id: I93b6fff73368c4f58bdebf8566c4948b50980cee
(cherry picked from commit f345559a06)

This is the 2nd commit message:

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.

Change-Id: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105
(cherry-picked from: d73fd3ee84)
2017-01-10 22:15:44 -05:00
doc Improve authentication plugins documentation 2016-08-02 08:58:06 +02:00
keystoneauth1 Only log application/json content type 2017-01-10 22:15:44 -05:00
releasenotes Only log application/json content type 2017-01-10 22:15:44 -05:00
.coveragerc Update coverage to keystoneauth1 2015-12-09 11:46:00 +11:00
.gitignore Add release notes for keystoneauth 2015-11-29 20:05:16 -05:00
.gitreview Update .gitreview for stable/newton 2016-08-29 16:27:20 -04:00
.mailmap Add mailmap entry 2014-05-07 12:12:43 -07:00
.testr.conf Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
CONTRIBUTING.rst Initial Split of python-keystoneclient to keystoneauth 2015-04-20 14:49:59 -07:00
HACKING.rst Initial Split of python-keystoneclient to keystoneauth 2015-04-20 14:49:59 -07:00
LICENSE Initial Split of python-keystoneclient to keystoneauth 2015-04-20 14:49:59 -07:00
MANIFEST.in Migrate to pbr. 2013-05-17 14:43:31 -07:00
README.rst Fix PyPI badges 2015-12-04 14:18:27 -08:00
requirements.txt Updated from global requirements 2016-07-17 23:53:46 +00:00
setup.cfg Update the home-page in setup.cfg 2016-08-09 16:14:42 +08:00
setup.py Updated from global requirements 2015-09-17 12:12:42 +00:00
test-requirements.txt Updated from global requirements 2016-08-18 05:50:53 +00:00
tox.ini Don't include openstack/common in flake8 exclude list 2016-08-02 20:36:47 +08:00

README.rst

keystoneauth

Latest Version

Downloads

This package contains tools for authenticating to an OpenStack-based cloud. These tools include:

  • Authentication plugins (password, token, and federation based)
  • Discovery mechanisms to determine API version support
  • A session that is used to maintain client settings across requests (based on the requests Python library)

Further information: