You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: parser permissions
* chore: add tests for permissions
* feat: add permissions class
* update permissions once the dashboard has been created
* feat: add permissions schema and docs
* chore: update render.py to support permissions
* chore: add tests for permissions
Grafyaml supports permissions for dashboards. The permissions are defined in the same file as dashboard under `permissions` root key. The permissions are applied to the dashboard as a whole, not to individual panels.
Grants are structured as a triplet: `subject:identifier:permission`.
63
+
64
+
- Subject: Specifies the entity to which the permission applies. Valid subjects include team, user, role, or serviceAccount. (serviceAccount is not yet supported)
65
+
- Identifier: The specific name or unique identifier of the subject.
66
+
- Permission: Defines the level of access granted. Permissible values are view, edit, admin, or none.
67
+
68
+
Example: To grant edit permission for the developers team on a resource named my-dashboard, the grant would be defined as team:developers:edit.
69
+
41
70
## More examples
42
71
43
72
- [examples/basic](examples/basic): A very basic example with a single dashboard
0 commit comments