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 non-admin coverage for permissioned routes

rcourtman7e55c4dc52e8
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index 8ad3764b12..e8e5a1e473 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -2070,6 +2070,12 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
{method: http.MethodPost, path: "/api/security/oidc", body: `{}`},
{method: http.MethodPost, path: "/api/system/verify-temperature-ssh", body: `{}`},
{method: http.MethodPost, path: "/api/system/ssh-config", body: `{}`},
+ {method: http.MethodGet, path: "/api/audit", body: ""},
+ {method: http.MethodGet, path: "/api/admin/roles", body: ""},
+ {method: http.MethodGet, path: "/api/admin/users", body: ""},
+ {method: http.MethodGet, path: "/api/admin/reports/generate", body: ""},
+ {method: http.MethodGet, path: "/api/admin/webhooks/audit", body: ""},
+ {method: http.MethodGet, path: "/api/settings/ai", 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: `{}`},