Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Require ai:execute for approvals approve/deny

rcourtman773ba13ada6d
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index a92c7997b0..d6634bebfb 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1240,6 +1240,8 @@ func TestAIExecuteMutationEndpointsRequireAIExecuteScope(t *testing.T) {
{method: http.MethodPost, path: "/api/ai/patrol/suppressions", body: `{}`},
{method: http.MethodDelete, path: "/api/ai/patrol/suppressions/rule-1", body: ""},
{method: http.MethodPost, path: "/api/ai/remediation/approve", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/approvals/approval-1/approve", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/approvals/approval-1/deny", body: `{}`},
}
for _, tc := range paths {