Alerting: Update fixed roles to include silences permissions (#85826)

* update fixed roles to include silences
* add silence actions to managed permissions
* update documentation
This commit is contained in:
Yuri Tseretyan
2024-04-12 12:37:34 -04:00
committed by GitHub
parent 56f4664875
commit 12605bfed2
6 changed files with 202 additions and 76 deletions

View File

@@ -25,6 +25,10 @@ var (
Action: accesscontrol.ActionAlertingRuleExternalRead,
Scope: datasources.ScopeAll,
},
{
Action: accesscontrol.ActionAlertingSilencesRead,
Scope: dashboards.ScopeFoldersAll,
},
// Following are needed for simplified notification policies
{
Action: accesscontrol.ActionAlertingNotificationsTimeIntervalsRead,
@@ -59,6 +63,14 @@ var (
Action: accesscontrol.ActionAlertingRuleExternalWrite,
Scope: datasources.ScopeAll,
},
{
Action: accesscontrol.ActionAlertingSilencesWrite,
Scope: dashboards.ScopeFoldersAll,
},
{
Action: accesscontrol.ActionAlertingSilencesCreate,
Scope: dashboards.ScopeFoldersAll,
},
}),
},
}