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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Harden apply-restart auth for proxy/OIDC
rcourtman5ede1f6a973f
diff --git a/internal/api/router.go b/internal/api/router.goindex a104c48417..06d9f768c7 100644--- a/internal/api/router.go+++ b/internal/api/router.go@@ -798,7 +798,10 @@ func (r *Router) setupRoutes() {if req.Method == http.MethodPost {// SECURITY: Require authentication - this endpoint can trigger service restart (DoS risk)// Allow if: (1) auth is not configured yet (initial setup), or (2) caller is admin-authenticated- authConfigured := r.config.AuthUser != "" && r.config.AuthPass != "" || r.config.HasAPITokens()+ authConfigured := (r.config.AuthUser != "" && r.config.AuthPass != "") ||+ r.config.HasAPITokens() ||+ r.config.ProxyAuthSecret != "" ||+ (r.config.OIDC != nil && r.config.OIDC.Enabled)if authConfigured {if !CheckAuth(r.config, w, req) {log.Warn().diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.goindex 17231400b6..78e01d47fb 100644--- a/internal/api/security_regression_test.go+++ b/internal/api/security_regression_test.go@@ -1965,7 +1965,6 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {{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: ``},{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: `{}`},