grafana/pkg/services/accesscontrol
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
..
acimpl RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
actest RBAC: Remove DeclareFixedRoles wrapper on Access control and inject service (#54153) 2022-08-26 09:59:34 +02:00
api RBAC: Allow listing user permissions with scope (#57538) 2022-11-02 10:48:11 +01:00
database RBAC: Improve performance of dashboard filter query (#56813) 2022-10-25 11:14:27 +02:00
mock RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
ossaccesscontrol chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
pluginutils RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
resourcepermissions Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
accesscontrol.go Auth: reduce allocs (#55410) 2022-09-20 12:03:08 +02:00
errors.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
evaluator_test.go RBAC: Split up service into several components (#54002) 2022-08-24 13:29:17 +02:00
evaluator.go Remove unused error from evaluator Evaluate (#49305) 2022-05-20 10:26:57 +02:00
filter_bench_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
filter_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
filter.go RBAC: Improve performance of dashboard filter query (#56813) 2022-10-25 11:14:27 +02:00
metadata_bench_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
metadata_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
metadata.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
middleware_test.go RBAC: Redirect to /login when forceLogin is set (#56469) 2022-10-07 08:18:56 +02:00
middleware.go Auth: Write the redirect cookie if denied - do not write a blank redirect (#57381) 2022-10-21 09:53:17 -05:00
models.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
resolvers_test.go RBAC: Fix resolver issue on wildcard resulting in wrong status code for endpoints (#54208) 2022-08-25 12:50:27 +02:00
resolvers.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
roles_test.go AccessControl: Remove package lists for roles and grants (#47141) 2022-04-06 09:31:14 +02:00
roles.go RBAC: Split up service into several components (#54002) 2022-08-24 13:29:17 +02:00
scope_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
scope.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00