grafana/pkg/cmd/grafana-cli
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
..
commands Access control: Cache basic roles and teams permissions (#87043) 2024-05-07 15:23:11 +02:00
logger Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
models Remove ioutil.ReadDir from usage (#53550) 2022-08-11 07:21:12 -04:00
runner Chore: Unite wire graphs for cli and server (#61143) 2023-03-17 16:36:39 +01:00
services Plugins: Remove direct featuremgmt.FeatureToggles dependency from plugins config (#84482) 2024-03-15 10:58:51 +01:00
utils Chore: Making the plugin install commands respect the config parameter (#86578) 2024-04-22 10:29:25 +02:00
main.go Server: Switch from separate server & cli to a unified grafana binary (#58286) 2022-11-22 11:53:43 -05:00