grafana/pkg/plugins/manager/testdata/test-app-with-roles/plugin.json
Gabriel MABILLE d999b5bda0
RBAC: remove redundant role name field from plugin role registrations (#58166)
* RBAC: Remove name from role registration

* Inline accesscontrol service

* test fix

* use fmt

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

Co-authored-by: marefr <marcus.efraimsson@gmail.com>
2022-11-15 09:51:40 +01:00

44 lines
No EOL
888 B
JSON

{
"type": "app",
"name": "Test App",
"id": "test-app",
"info": {
"description": "Test App",
"author": {
"name": "Test Inc.",
"url": "http://test.com"
},
"keywords": ["test"],
"links": [],
"version": "1.0.0",
"updated": "2015-02-10"
},
"includes": [],
"roles": [
{
"role": {
"name": "Reader",
"description": "View everything in the test-app plugin",
"permissions": [
{
"action": "plugins.app:access",
"scope": "plugins.app:id:test-app"
},
{
"action": "test-app.resource:read",
"scope": "resources:*"
},
{
"action": "test-app.otherresource:toggle"
}
]
},
"grants": [
"Admin"
]
}
],
"dependencies": {
"grafanaDependency": ">=8.0.0"
}
}