mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 20:21:01 -06:00
RBAC: Update plugin.json roles, includes and routes (#80592)
* RBAC: Update plugin.json roles, includes and routes * action -> reqAction
This commit is contained in:
parent
3d353a1b5f
commit
59d997e5a5
@ -272,6 +272,10 @@
|
||||
"description": "The minimum role a user must have to see this page in the navigation menu.",
|
||||
"enum": ["Admin", "Editor", "Viewer"]
|
||||
},
|
||||
"action": {
|
||||
"type": "string",
|
||||
"description": "The RBAC action a user must have to see this page in the navigation menu."
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Used for app plugins."
|
||||
@ -353,6 +357,10 @@
|
||||
"reqRole": {
|
||||
"type": "string"
|
||||
},
|
||||
"reqAction": {
|
||||
"type": "string",
|
||||
"description": "The RBAC action a user must have to use this route."
|
||||
},
|
||||
"headers": {
|
||||
"type": "array",
|
||||
"description": "For data source plugins. Route headers adds HTTP headers to the proxied request."
|
||||
@ -525,6 +533,54 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"description": "List of RBAC roles and their default assignments.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"role": {
|
||||
"type": "object",
|
||||
"description": "RBAC role definition to bundle related RBAC permissions on the plugin.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Display name of the role."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Describe the aim of the role."
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "RBAC permission on the plugin.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"grants": {
|
||||
"type": "array",
|
||||
"description": "Default assignments of the role to Grafana basic roles (Viewer, Editor, Admin, Grafana Admin)",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user