OpenStack Identity (Keystone) Middleware
Go to file
Tim Burke 86904543eb Handle DiscoveryFailure errors
DiscoveryFailures can happen for a variety of reasons, ranging
from service misconfiguration to a keystone outage to a transient
network failure. If we don't catch and handle the failure here,
it will almost certainly cause something further up the WSGI stack
to send a 500 Internal Error (and likely log a traceback).

A log line like

    Unable to validate token: Could not find versioned identity
    endpoints when attempting to authenticate. Please check that
    your auth_url is correct. Unable to establish connection to
    http://keystone:35357: HTTPConnectionPool(host='keystone',
    port=35357): Max retries exceeded with url: / (Caused by
    NewConnectionError('<urllib3.connection.HTTPConnection
    object at 0x7fc53e22e050>: Failed to establish a new
    connection: [Errno 111] ECONNREFUSED',))

should be plenty enough for an operator to assess the situation;
I don't need a 29-frame traceback.

Change-Id: I946388c09b2ca0230d2cef009c679a7ac7c8398f
2018-08-01 23:26:13 +00:00
config-generator generate sample config automatically 2016-05-12 06:38:40 +00:00
doc Merge "Follow the new PTI for document build" 2018-06-06 22:13:59 +00:00
examples/pki Remove empty files 2018-02-22 18:18:30 +07:00
keystonemiddleware Handle DiscoveryFailure errors 2018-08-01 23:26:13 +00:00
releasenotes Merge "Introduce new header for system-scoped tokens" 2018-05-09 16:21:55 +00:00
tools Fix the doc CI failure 2018-04-20 17:07:10 +08:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-24 18:03:12 +05:30
.gitignore Updates for stestr 2017-10-02 21:57:27 -05:00
.gitreview Initial commit 2014-06-19 15:45:29 -07:00
.stestr.conf Updates for stestr 2017-10-02 21:57:27 -05:00
.testr.conf Common base class for unit tests 2015-06-07 10:37:27 -05:00
.zuul.yaml add lower-constraints job 2018-04-09 10:18:34 -04:00
CONTRIBUTING.rst Use https for *.openstack.org references 2017-02-05 20:36:42 -08:00
HACKING.rst Update URLs in documentation 2017-07-20 16:38:16 +08:00
LICENSE Initial commit 2014-06-19 15:45:29 -07:00
README.rst Update links in README 2018-03-28 16:32:39 +08:00
babel.cfg Initial commit 2014-06-19 15:45:29 -07:00
lower-constraints.txt add lower-constraints job 2018-04-09 10:18:34 -04:00
requirements.txt Updated from global requirements 2018-03-17 08:35:04 +00:00
setup.cfg Follow the new PTI for document build 2018-06-06 15:22:22 +00:00
setup.py Updated from global requirements 2017-04-06 22:03:25 +00:00
test-requirements.txt Merge "Follow the new PTI for document build" 2018-06-06 22:13:59 +00:00
tox.ini Merge "fix tox python3 overrides" 2018-06-07 00:00:12 +00:00

README.rst

Team and repository tags

image

Middleware for the OpenStack Identity API (Keystone)

Latest Version

Downloads

This package contains middleware modules designed to provide authentication and authorization features to web services other than Keystone <https://github.com/openstack/keystone>. The most prominent module is keystonemiddleware.auth_token. This package does not expose any CLI or Python API features.

For information on contributing, see CONTRIBUTING.rst.

For any other information, refer to the parent project, Keystone:

https://github.com/openstack/keystone