grafana/pkg/services/provisioning
Karl Persson a5e4a533fa
Access control: use uid for dashboard and folder scopes (#46807)
* use uid:s for folder and dashboard permissions

* evaluate folder and dashboard permissions based on uids

* add dashboard.uid to accept list

* Check for exact suffix

* Check parent folder on create

* update test

* drop dashboard:create actions with dashboard scope

* fix typo

* AccessControl: test id 0 scope conversion

* AccessControl: store only parent folder UID

* AccessControl: extract general as a constant

* FolderServices: Prevent creation of a folder uid'd general

* FolderServices: Test folder creation prevention

* Update pkg/services/guardian/accesscontrol_guardian.go

* FolderServices: fix mock call expect

* FolderServices: remove uneeded mocks

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-03-30 15:14:26 +02:00
..
dashboards Access control: use uid for dashboard and folder scopes (#46807) 2022-03-30 15:14:26 +02:00
datasources Chore: Remove bus.Dispatch from provisioning services (#44989) 2022-02-23 11:12:37 +01:00
notifiers use alerting service instead of store in provisioning (#45926) 2022-03-02 09:40:53 +01:00
plugins Plugins: Add plugin settings DTO (#46283) 2022-03-18 20:49:13 +01:00
utils Chore: Remove bus.Dispatch from provisioning services (#44989) 2022-02-23 11:12:37 +01:00
values Chore: Refactor GoConvey in provisioning package (#40892) 2021-11-01 11:31:55 +01:00
provisioning_mock.go Chore: Remove Dispatch and AddHandler (#42603) 2021-12-02 18:08:59 +01:00
provisioning_test.go Access control: Move call to create default permissions into folder and dashboard service (#46186) 2022-03-10 12:58:18 +01:00
provisioning.go Access control: Move call to create default permissions into folder and dashboard service (#46186) 2022-03-10 12:58:18 +01:00