GitHub user cboettcher created a discussion: Keycloak auth manager causes long loading times for the webserver
After configuring the Keycloak auth manager (from the keycloak providers package) in our helm-based deployment, i realized that the loading times of the website were incredibly high. I then did some digging through the logs, and found that the auth manager seems to send a new request to keycloak for every kind of permission that was needed, causing between 2 and 4 requests per second for a single user. Since this seemed too much for me, i looked through the code of the auth manager and found that indeed, unless a batch_permission was checked, it would create a new request every time. Is there a specific reason for this, instead of requesting and caching the whole set of permissions at once? The python-keycloak library offers functions for retrieving all permissions, so even short-lived caches would reduce the amount of requests to keycloak significantly. I don't know if this is considered a bug, so i created this discussion thread. I'm also willing to create an issue instead, but wanted to get a second opinion first. GitHub link: https://github.com/apache/airflow/discussions/56502 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
