grafana/pkg/services/serviceaccounts
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
..
api Feature Flags: use FeatureToggles interface where possible (#85131) 2024-04-04 12:22:31 -04:00
database User: Add tracing (#87028) 2024-04-30 13:15:56 +02:00
extsvcaccounts Access control: Cache basic roles and teams permissions (#87043) 2024-05-07 15:23:11 +02:00
manager Chore: Replace sqlstore with db interface (#85366) 2024-04-04 15:04:47 +02:00
proxy Feature Flags: use FeatureToggles interface where possible (#85131) 2024-04-04 12:22:31 -04:00
retriever Auth: Service account store refactor (#58961) 2022-12-13 14:56:10 +01:00
secretscan Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
tests User: Add tracing (#87028) 2024-04-30 13:15:56 +02:00
models.go ExtSvcAccounts: FIX prevent service account deletion (#84502) 2024-03-14 19:11:02 +01:00
serviceaccounts.go Plugin: Remove external service on plugin removal (#77712) 2023-11-13 13:18:13 +01:00