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 OIDC callback public access
rcourtmana49fa8514ac2
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.goindex 38695f2907..b7e11b243e 100644--- a/internal/api/security_regression_test.go+++ b/internal/api/security_regression_test.go@@ -2753,6 +2753,22 @@ func TestOIDCLoginBypassesAuth(t *testing.T) {}}+func TestOIDCCallbackBypassesAuth(t *testing.T) {+ cfg := newTestConfigWithTokens(t)+ cfg.AuthUser = "admin"+ cfg.AuthPass = "hashed"+ router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")++ ResetRateLimitForIP("203.0.113.51")+ req := httptest.NewRequest(http.MethodGet, config.DefaultOIDCCallbackPath, nil)+ req.RemoteAddr = "203.0.113.51:1234"+ rec := httptest.NewRecorder()+ router.Handler().ServeHTTP(rec, req)+ if rec.Code != http.StatusNotFound {+ t.Fatalf("expected 404 when OIDC is disabled, got %d", rec.Code)+ }+}+func TestAIOAuthCallbackBypassesAuth(t *testing.T) {cfg := newTestConfigWithTokens(t)cfg.AuthUser = "admin"