Files
grafana/apps/iam/kinds/v0alpha1/resourcepermission.cue
Gabriel MABILLE 0284c3f1f9 grafana-iam: change resourcepermission to use a single verb (#110263)
* `grafana-iam`: change resource permission to only allow a single action set for now

* api changes
2025-08-28 11:25:38 +02:00

24 lines
581 B
CUE

package v0alpha1
ResourcePermission: {
#Resource: {
// api group of the resource (e.g: "folder.grafana.app")
apiGroup: string
// kind of the resource (e.g: "folders")
resource: string
// uid of the resource (e.g: "fold1")
name: string
}
#Permission: {
// kind of the identity getting the permission
kind: "User" | "ServiceAccount" | "Team" | "BasicRole"
// uid of the identity getting the permission
name: string
// action set granted to the user (e.g. "admin" or "edit", "view")
verb: string
}
resource: #Resource
permissions: [...#Permission]
}