From 6941bd5fc877968c4ceb02ed2a30a47ff9364d3d Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:30:45 -0400 Subject: [PATCH] [v11.1.x] Alerting: Fix permissions for prometheus rule endpoints (#91414) Alerting: Fix permissions for prometheus rule endpoints (#91409) (cherry picked from commit e23121123463112818738b2401f5b91ae40fb343) Co-authored-by: Yuri Tseretyan --- public/app/plugins/datasource/prometheus/plugin.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/plugins/datasource/prometheus/plugin.json b/public/app/plugins/datasource/prometheus/plugin.json index 356b924dbb0..c11bd2e9809 100644 --- a/public/app/plugins/datasource/prometheus/plugin.json +++ b/public/app/plugins/datasource/prometheus/plugin.json @@ -38,31 +38,31 @@ "method": "GET", "path": "/rules", "reqRole": "Viewer", - "reqAction": "datasources:query" + "reqAction": "alert.rules.external:read" }, { "method": "POST", "path": "/rules", "reqRole": "Editor", - "reqAction": "datasources:write" + "reqAction": "alert.rules.external:write" }, { "method": "DELETE", "path": "/rules", "reqRole": "Editor", - "reqAction": "datasources:write" + "reqAction": "alert.rules.external:write" }, { "method": "DELETE", "path": "/config/v1/rules", "reqRole": "Editor", - "reqAction": "datasources:write" + "reqAction": "alert.rules.external:write" }, { "method": "POST", "path": "/config/v1/rules", "reqRole": "Editor", - "reqAction": "datasources:write" + "reqAction": "alert.rules.external:write" } ], "includes": [