Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cache keycloak authz requests #1222
The new RBAC system means the API queries keycloak for permissions. In cases where the API returns a lot of data, it can hammer keycloak with a lot of permission check requests. Since it's unlikely that a users permissions will change in the middle of an API request, we can cache the results per request.
Also added some better logging when keycloak auth requests fail.
Explain the details for making this change. What existing problem does the pull request solve?
Bugfix - Fix API slowness by caching keycloak authz response per API request