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.

Ensure proxy non-admins blocked for AI admin endpoints

rcourtman248f4c69a558
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index d6634bebfb..ca3fcd8829 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1940,6 +1940,12 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
{method: http.MethodPost, path: "/api/system/settings/update", body: `{}`},
{method: http.MethodPost, path: "/api/security/reset-lockout", body: `{}`},
{method: http.MethodGet, path: "/api/ai/debug/context", body: ""},
+ {method: http.MethodPost, path: "/api/ai/execute", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/execute/stream", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/remediation/execute", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/remediation/rollback", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/patrol/run", body: `{}`},
+ {method: http.MethodGet, path: "/api/ai/patrol/autonomy", body: ""},
{method: http.MethodPost, path: "/api/ai/cost/reset", body: `{}`},
{method: http.MethodGet, path: "/api/ai/cost/export", body: ""},
{method: http.MethodPost, path: "/api/ai/oauth/start", body: `{}`},