grafana/pkg/services/accesscontrol/acimpl
Alexander Zobnin 88259da745
RBAC: Optimize permissions caching (#92673)
* Access control: Use composite cache key for team permissions

* use composite key for teams

* use cache for hotpath (getCachedUserPermissions)

* don't cache empty teams set

* don't pass permissions as argument

* early return if no teams found

* reload cache correctly

* optimize allocations

* Clear user's teams cache

* remove composite cache for teams

* fix linter

* don't clear teams permissions

* pre-allocate memory for basic roles permissions
2024-09-03 15:46:56 +02:00
..
accesscontrol_test.go Zanzana: Evaluate permissions alongside with RBAC engine (#90064) 2024-07-05 11:31:23 +02:00
accesscontrol.go Instrument tracing across accesscontrol (#91864) 2024-08-16 14:08:19 -08:00
metrics.go Zanzana: Add basic metrics for evaluation time and status (#90125) 2024-07-05 14:53:40 +02:00
service_bench_test.go Auth: use IdentityType from authlib (#91763) 2024-08-12 09:26:53 +03:00
service_test.go Instrument tracing across accesscontrol (#91864) 2024-08-16 14:08:19 -08:00
service.go RBAC: Optimize permissions caching (#92673) 2024-09-03 15:46:56 +02:00