keystone/releasenotes/notes/bug-1819036-e2d24655c70d0aad.yaml
Lance Bragstad 112fa29a74 Only validate tokens once per request
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
2019-03-20 19:17:33 +00:00

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.