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
fix(proxmox): prevent broken TLS config on auto-register fingerprint failure (#1303)
rcourtman72be883f4e8d
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.goindex 5cbb8c7361..329ed1b547 100644--- a/internal/api/config_handlers.go+++ b/internal/api/config_handlers.go@@ -5316,7 +5316,7 @@ func (h *ConfigHandlers) HandleAutoRegister(w http.ResponseWriter, r *http.Reque// Create a node configurationboolFalse := falseboolTrue := true- verifySSL := true+ verifySSL := fingerprint != "" // Only enforce strict TLS when we have a fingerprint to verify againstnodeConfig := NodeConfigRequest{Type: req.Type,Name: req.ServerName,@@ -5501,6 +5501,11 @@ func (h *ConfigHandlers) HandleAutoRegister(w http.ResponseWriter, r *http.Requeif nodeConfig.Fingerprint != "" {instance.Fingerprint = nodeConfig.Fingerprint}+ // Fix broken state: verifySSL=true with no fingerprint can never connect+ // to self-signed Proxmox certs. Downgrade to insecure if no fingerprint. Refs: #1303+ if instance.VerifySSL && instance.Fingerprint == "" {+ instance.VerifySSL = false+ }// Update source if provided (allows upgrade from script to agent)if req.Source != "" {instance.Source = req.Source@@ -5545,6 +5550,11 @@ func (h *ConfigHandlers) HandleAutoRegister(w http.ResponseWriter, r *http.Requeif nodeConfig.Fingerprint != "" {instance.Fingerprint = nodeConfig.Fingerprint}+ // Fix broken state: verifySSL=true with no fingerprint can never connect+ // to self-signed Proxmox certs. Downgrade to insecure if no fingerprint. Refs: #1303+ if instance.VerifySSL && instance.Fingerprint == "" {+ instance.VerifySSL = false+ }// Update source if provided (allows upgrade from script to agent)if req.Source != "" {instance.Source = req.Source@@ -5860,7 +5870,7 @@ func (h *ConfigHandlers) handleSecureAutoRegister(w http.ResponseWriter, r *http} else {fingerprint = fp}- verifySSL := true+ verifySSL := fingerprint != "" // Only enforce strict TLS when we have a fingerprint to verify againstexistingTokenID := ""existingTokenValue := ""