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
Cover public setup script access
rcourtman11e28689b218
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.goindex fdd72de346..38695f2907 100644--- a/internal/api/security_regression_test.go+++ b/internal/api/security_regression_test.go@@ -2723,6 +2723,20 @@ func TestPathTraversalBlockedForNonAPIPaths(t *testing.T) {}}+func TestSetupScriptIsPublicEvenWhenAuthConfigured(t *testing.T) {+ cfg := newTestConfigWithTokens(t)+ cfg.AuthUser = "admin"+ cfg.AuthPass = "hashed"+ router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")++ req := httptest.NewRequest(http.MethodGet, "/api/setup-script", nil)+ rec := httptest.NewRecorder()+ router.Handler().ServeHTTP(rec, req)+ if rec.Code != http.StatusBadRequest {+ t.Fatalf("expected 400 for missing params on public setup script, got %d", rec.Code)+ }+}+func TestOIDCLoginBypassesAuth(t *testing.T) {cfg := newTestConfigWithTokens(t)cfg.AuthUser = "admin"