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.

Fix upgrade path when DISABLE_AUTH detected but no credentials exist (fixes #678)

rcourtman425ea00ba2ee
diff --git a/internal/api/security_setup_fix.go b/internal/api/security_setup_fix.go
index 5109197584..9580d9b80c 100644
--- a/internal/api/security_setup_fix.go
+++ b/internal/api/security_setup_fix.go
@@ -148,7 +148,10 @@ func handleQuickSecuritySetupFixed(r *Router) http.HandlerFunc {
authorized := recoveryAuthorized
- if !authorized && (authConfigured || forceRequested) {
+ // Only require authentication if credentials are already configured.
+ // When DISABLE_AUTH is detected but no auth exists (upgrade path from legacy),
+ // allow bootstrap token flow instead of demanding credentials that don't exist.
+ if !authorized && authConfigured {
wrapped := &responseCapture{ResponseWriter: w}
if CheckAuth(r.config, wrapped, req) {
authorized = true