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.

Expand proxy admin gating for host and profiles

rcourtmandf799c66d591
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index c6ba71f08d..2d88cbba20 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1953,6 +1953,10 @@ 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/host/link", body: `{}`},
+ {method: http.MethodPost, path: "/api/agents/host/unlink", body: `{}`},
+ {method: http.MethodDelete, path: "/api/agents/host/agent-1", body: ``},
+ {method: http.MethodGet, path: "/api/admin/profiles/", body: ""},
{method: http.MethodPost, path: "/api/agent-install-command", body: `{}`},
{method: http.MethodPost, path: "/api/setup-script-url", body: `{}`},
{method: http.MethodPost, path: "/api/test-notification", body: `{}`},