OpenStack Identity Authentication Library
Go to file
Samuel de Medeiros Queiroz 13054e8b6d 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:19:10 -05:00
doc Replace deprecated library function os.popen() with subprocess 2016-01-13 22:45:09 +08:00
keystoneauth1 Only log application/json content type 2017-01-10 22:19:10 -05:00
releasenotes Only log application/json content type 2017-01-10 22:19:10 -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/mitaka 2016-03-09 13:24:45 -05: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 Merge "Remove argparse from requirements" 2016-02-01 16:08:38 +00:00
setup.cfg Updated from global requirements 2016-04-18 15:02:22 +00:00
setup.py Updated from global requirements 2015-09-17 12:12:42 +00:00
test-requirements.txt Updated from global requirements 2016-04-18 15:02:22 +00:00
tox.ini Deprecated tox -downloadcache option removed 2015-12-11 21:18:24 +01: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: