grafana/pkg/services/datasources/service
Karl Persson cac6936015
Access control: Change data source permissions to be based on UID (#46741)
* Add ResourceAttribute

* Add ResourceAttribute option

* Set ResourceAttribute option

* Change resolvers to return uid based scopes

* update swagger to correct scope

* use ResourceAttribute for endpoint scope

* bump role version

* Add support for different attributes for access control metadata

* evaluate data source metadata based on uid

* Fix test

* uncomment benchmarks

* Use resourceID

* use evaluator for access control metadata

* update comment

* Set default permissions based on uid

* Add attribute to accesscontrol filter

* validate that scopes has correct attribute

* lint

* Update comment

* remove attribute parameter and extend prefix

* refactor to use scope prefix

* Get metadata with prefix

* fix test

* fix comparision

* remove unused type

* fix attribute index

* fix typo

* restructure logic

* Get metadata by uid

* fix imports

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-03-24 12:21:26 +01:00
..
cache_service.go Datasource: Fixes storing of secureJSONData when creating/updating datasource (#45290) 2022-02-11 15:52:14 +01:00
datasource_service_test.go Access control: Change data source permissions to be based on UID (#46741) 2022-03-24 12:21:26 +01:00
datasource_service.go Access control: Change data source permissions to be based on UID (#46741) 2022-03-24 12:21:26 +01:00