mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
refactor: fix displayname and description for serviceaccount role (#41946)
* refactor: fix displayname and description for serviceaccount role * add: ActionWrite, ActionCreate * refactor: update description
This commit is contained in:
parent
8ccd7599bd
commit
253da4a936
@ -8,11 +8,19 @@ import (
|
|||||||
var (
|
var (
|
||||||
role = accesscontrol.RoleRegistration{
|
role = accesscontrol.RoleRegistration{
|
||||||
Role: accesscontrol.RoleDTO{
|
Role: accesscontrol.RoleDTO{
|
||||||
Version: 2,
|
Version: 3,
|
||||||
Name: "fixed:serviceaccounts:writer",
|
Name: "fixed:serviceaccounts:writer",
|
||||||
Description: "",
|
DisplayName: "Service accounts writer",
|
||||||
|
Description: "Create, delete, read, or query service accounts.",
|
||||||
Group: "Service accounts",
|
Group: "Service accounts",
|
||||||
Permissions: []accesscontrol.Permission{
|
Permissions: []accesscontrol.Permission{
|
||||||
|
{
|
||||||
|
Action: serviceaccounts.ActionRead,
|
||||||
|
Scope: serviceaccounts.ScopeAll,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Action: serviceaccounts.ActionCreate,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Action: serviceaccounts.ActionDelete,
|
Action: serviceaccounts.ActionDelete,
|
||||||
Scope: serviceaccounts.ScopeAll,
|
Scope: serviceaccounts.ScopeAll,
|
||||||
|
@ -8,5 +8,8 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
ActionRead = "serviceaccounts:read"
|
||||||
|
ActionWrite = "serviceaccounts:write"
|
||||||
|
ActionCreate = "serviceaccounts:create"
|
||||||
ActionDelete = "serviceaccounts:delete"
|
ActionDelete = "serviceaccounts:delete"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user