grafana/pkg/services/datasources
Ieva 9bb2cf4968
RBAC: Allow omitting default permissions when a new resource is created (#90720)
* Cfg: Move rbac settings to own struct

* Cfg: Add setting to control if resource should generate managed permissions when created

* Dashboards: Check if we should generate default permissions when dashboard is created

* Folders: Check if we should generate default permissions when folder is created

* Datasource: Check if we should generate default permissions when datasource is created

* ServiceAccount: Check if we should generate default permissions when service account is created

* Cfg: Add option to specify resources for wich we should default seed

* ManagedPermissions: Move providers to their own files

* Dashboards: Default seed all possible managed permissions if configured

* Folders: Default seed all possible managed permissions if configured

* Cfg: Remove service account from list

* RBAC: Move utility function

* remove managed permission settings from the config file examples, change the setting names

* remove ini file changes from the PR

* fix setting reading

* fix linting errors

* fix tests

* fix wildcard role seeding

---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: jguer <me@jguer.space>
2024-07-24 19:31:26 +03:00
..
fakes Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
guardian Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
service RBAC: Allow omitting default permissions when a new resource is created (#90720) 2024-07-24 19:31:26 +03:00
accesscontrol.go Data sources: show data source menu to users who only have access to create a data source (#78347) 2023-11-20 13:59:02 +00:00
datasources.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
errors.go Repurpose wrong datasource UID feature flag (#89363) 2024-06-20 12:56:39 +02:00
models_test.go Team LBAC: Limit access to data source (#78376) 2023-12-05 13:45:40 +02:00
models.go Dynatrace: Add to list of DS with custom label logic (#90258) 2024-07-15 10:18:54 +02:00