
Keystone actually validates each token twice for every API request. Regardless of caching being configured, we have an opportunity to try and spend less time doing something we've already done. The first the token is validated is actually done through a keystonemiddleware hook. The second time is to populate a context object that we can use for things like policy decisions. Closes-Bug: 1819036 Change-Id: Ifd7f6f0a1dcd33ad17646cae383132cfc2462f03
10 lines
450 B
YAML
10 lines
450 B
YAML
---
|
|
fixes:
|
|
- |
|
|
[`bug 1819036 <https://bugs.launchpad.net/keystone/+bug/1819036>`_]
|
|
Middleware that processes requests in front of keystone now caches tokens
|
|
per request, eliminating unnecessary round trips to validate tokens on
|
|
every request. This change doesn't require the usage of any configuration
|
|
options to take effect. The fix for this bug improved performance ~20% during
|
|
testing and impacts most of keystone's API.
|