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.

Cover proxy admin gating for config management

rcourtman0f2122ea858f
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index 2bfcebac12..17231400b6 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1936,6 +1936,13 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
{method: http.MethodGet, path: "/api/diagnostics", body: ""},
{method: http.MethodPost, path: "/api/diagnostics/docker/prepare-token", body: `{}`},
{method: http.MethodGet, path: "/api/config/system", body: ""},
+ {method: http.MethodPost, path: "/api/config/export", body: `{}`},
+ {method: http.MethodPost, path: "/api/config/import", body: `{}`},
+ {method: http.MethodGet, path: "/api/config/nodes", body: ""},
+ {method: http.MethodPost, path: "/api/config/nodes", body: `{}`},
+ {method: http.MethodPost, path: "/api/config/nodes/test-config", body: `{}`},
+ {method: http.MethodPost, path: "/api/config/nodes/test-connection", body: `{}`},
+ {method: http.MethodPut, path: "/api/config/nodes/node-1", body: `{}`},
{method: http.MethodGet, path: "/api/system/settings", body: ""},
{method: http.MethodPost, path: "/api/system/settings/update", body: `{}`},
{method: http.MethodPost, path: "/api/security/reset-lockout", body: `{}`},