grafana/pkg/services
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
..
accesscontrol RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
alerting chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
annotations Alerting: Persist annotations from multidimensional rules in batches (#56575) 2022-11-04 10:39:26 -05:00
apikey Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
auth chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
cleanup chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
comments chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
contexthandler Auth: add IsServiceAccount to IsRealUser (#58015) 2022-11-04 12:39:54 +00:00
correlations chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
dashboardimport Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
dashboards publicdashboards: split create/update api paths (#57940) 2022-11-03 11:30:12 -08:00
dashboardsnapshots chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
dashboardversion Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
datasourceproxy backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
datasources move data source permission model to enterprise repo (#57615) 2022-10-26 11:49:45 +01:00
encryption Encryption: Fall back to AES-CFB on empty algorithm metadata (#53266) 2022-08-04 09:37:53 +02:00
export Playlist: cleanup object store implementation (#58201) 2022-11-03 16:35:20 -07:00
featuremgmt FeatureFlags: set defaults in the registry rather than the ini file (#58106) 2022-11-03 17:34:01 +00:00
folder Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
grpcserver gRPC Server: Fix logging unauthenticated request error (#57490) 2022-10-23 03:51:23 +08:00
guardian chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refactor secrets.Service initialization (#51091) 2022-07-07 09:48:25 +02:00
ldap Add multi-auth devenv (#57609) 2022-10-26 13:46:50 +02:00
libraryelements LibraryPanels: Replace folderID with folderUID (#56414) 2022-11-02 16:49:02 +01:00
librarypanels LibraryPanels: Load library panels in the frontend rather than the backend (#50560) 2022-10-26 15:38:20 -07:00
licensing NavTree: Don't add license and stats page unless your a Grafana Admin (#56410) 2022-10-06 14:30:51 +02:00
live Live: remove json exact converter (#58282) 2022-11-04 18:33:02 -04:00
login chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
loginattempt chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
multildap Split Create User (#50502) 2022-06-28 14:32:25 +02:00
navtree Navigation: Add pluginId to standalone plugin page NavLinks (#57769) 2022-11-03 21:19:42 +01:00
ngalert Alerting: Run state manager as regular sub-service (#58246) 2022-11-04 17:06:47 -04:00
notifications User management: Use HMAC-SHA256 to generate time limit codes (password reset tokens) (#42334) 2022-08-18 16:01:09 +02:00
oauthtoken Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
org Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
playlist Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
plugindashboards Plugins: Add secure JSON fields to plugin setting DTO (#55313) 2022-09-21 12:20:11 +02:00
pluginsettings chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
preference Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
provisioning feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
publicdashboards PublicDashboards: refactor using new grafana error types (#58078) 2022-11-04 14:14:32 -03:00
query Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
queryhistory chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
querylibrary Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
quota chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
rendering Rendering: Add configuration options for renderKey lifetime (#57339) 2022-11-03 12:06:55 +01:00
screenshot Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
search chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
searchusers Chore: Move methods from sqlstore to user store (#56305) 2022-10-05 09:34:36 +02:00
searchV2 Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
secrets chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
serviceaccounts Auth: add IsServiceAccount to IsRealUser (#58015) 2022-11-04 12:39:54 +00:00
shorturls chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
sqlstore Storage: include SQL implementation (#58018) 2022-11-04 17:30:22 -04:00
star Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
store Storage: include SQL implementation (#58018) 2022-11-04 17:30:22 -04:00
tag Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
team RBAC: Cleaup team api rbac tests (#57265) 2022-10-20 09:11:47 +02:00
teamguardian chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
temp_user chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
thumbs chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
updatechecker NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
user ServiceAccounts: enable service accounts after IsRealUser change (#58263) 2022-11-04 15:53:35 -04:00
userauth chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00