grafana/pkg/plugins
Gabriel MABILLE 30fae33f66
RBAC: Allow role registration for plugins (#57387)
* Picking role registration from OnCall POC branch

* Fix test

* Remove include actions from this PR

* Removing unused permission

* Adding test to DeclarePluginRoles

* Add testcase to RegisterFixed role

* Additional test case

* Adding tests to validate plugins roles

* Add test to plugin loader

* Nit.

* Scuemata validation

* Changing the design to decouple accesscontrol from plugin management

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* Fixing tests

Co-authored-by: Jguer <joao.guerreiro@grafana.com>

* Add missing files

Co-authored-by: Jguer <joao.guerreiro@grafana.com>

* Remove feature toggle check from loader

* Remove feature toggleimport

* Feedback

Co-Authored-By: marefr <marcus.efraimsson@gmail.com>

* Fix test'

* Make plugins.RoleRegistry interface typed

* Remove comment question

* No need for json tags anymore

* Nit. log

* Adding the schema validation

* Remove group to take plugin Name instead

* Revert sqlstore -> db

* Nit.

* Nit. on tests

Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>

* Update pkg/services/accesscontrol/plugins.go

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* Log message

Co-Authored-By: marefr <marcus.efraimsson@gmail.com>

* Log message

Co-Authored-By: marefr <marcus.efraimsson@gmail.com>

* Remove unecessary method. Update test name.

Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>

* Fix linting

* Update cue descriptions

* Fix test

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
Co-authored-by: marefr <marcus.efraimsson@gmail.com>
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
2022-11-07 11:30:45 +01:00
..
adapters Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
backendplugin Instrumentation: Log plugin and datasource info for each plugin request. (#54769) 2022-11-02 14:51:51 +01:00
config Instrumentation: Log plugin and datasource info for each plugin request. (#54769) 2022-11-02 14:51:51 +01:00
logger Plugins: Create single point of entry for adding / removing plugins (#55463) 2022-09-23 14:27:01 +02:00
manager RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
pfs RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
plugincontext Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
repo Plugins: Refactor plugin download/installation (#43046) 2022-08-23 11:50:50 +02:00
storage Plugins: Create single point of entry for adding / removing plugins (#55463) 2022-09-23 14:27:01 +02:00
accesscontrol.go RBAC: Add permissions to install and configure plugins (#51829) 2022-09-09 09:44:50 +02:00
errors.go Plugins: Use error plane for api/ds/query (#54750) 2022-09-14 18:19:57 +02:00
fakes.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
ifaces.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
models.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
plugins.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00