grafana/pkg/services/serviceaccounts/extsvcaccounts
Alexander Zobnin 82dea4b3e5
Access control: Cache basic roles and teams permissions (#87043)
* RBAC: Cache basic roles permissions

* Cache teams permissions

* Set cache TTL to 1 minute

* Add OSS implementation

* Fetch basic role permissions correctly

* fix conflict_user_command

* Fix teams permissions query

* Add traces for GetUserPermissions

* Fix folders tests

* Fix colflict user command

* Update store mock

* Fix linter error

* Reuse GetUserPermissions for fetching basic roles

* tests for GetTeamsPermissions

* pre-allocate slice capacity

* Fix linter
2024-05-07 15:23:11 +02:00
..
metrics.go ExtSvcAuth: Clean up orphaned external services on start up (#77951) 2023-11-16 12:07:42 +01:00
models.go ExtSvcAuth: Clean up orphaned external services on start up (#77951) 2023-11-16 12:07:42 +01:00
service_test.go Access control: Cache basic roles and teams permissions (#87043) 2024-05-07 15:23:11 +02:00
service.go Feature Flags: use FeatureToggles interface where possible (#85131) 2024-04-04 12:22:31 -04:00