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.

Extend proxy admin gating to agent manage endpoints

rcourtman093235b0a9ed
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index 2d88cbba20..2bfcebac12 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1953,6 +1953,9 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
{method: http.MethodPost, path: "/api/ai/oauth/start", body: `{}`},
{method: http.MethodPost, path: "/api/ai/oauth/exchange", body: `{}`},
{method: http.MethodPost, path: "/api/ai/oauth/disconnect", body: `{}`},
+ {method: http.MethodPost, path: "/api/agents/docker/containers/update", body: `{}`},
+ {method: http.MethodDelete, path: "/api/agents/docker/hosts/host-1", body: ``},
+ {method: http.MethodDelete, path: "/api/agents/kubernetes/clusters/cluster-1", body: ``},
{method: http.MethodPost, path: "/api/agents/host/link", body: `{}`},
{method: http.MethodPost, path: "/api/agents/host/unlink", body: `{}`},
{method: http.MethodDelete, path: "/api/agents/host/agent-1", body: ``},