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: resolve ExportConfig deadlock and update apprise test
rcourtman00793c768834
diff --git a/internal/config/export.go b/internal/config/export.goindex 352eb110f4..ccc5e0ee83 100644--- a/internal/config/export.go+++ b/internal/config/export.go@@ -39,10 +39,9 @@ func (c *ConfigPersistence) ExportConfig(passphrase string) (string, error) {return "", fmt.Errorf("passphrase is required for export")}- c.mu.RLock()- defer c.mu.RUnlock()-- // Load all configurations+ // Each Load function handles its own locking. Do NOT hold an outer lock+ // here: LoadNodesConfig may need to acquire a write lock to persist+ // migrations, which would deadlock against an outer read lock.nodes, err := c.LoadNodesConfig()if err != nil {return "", fmt.Errorf("failed to load nodes config: %w", err)diff --git a/internal/config/persistence_test.go b/internal/config/persistence_test.goindex 0255ec578e..ee8beb068a 100644--- a/internal/config/persistence_test.go+++ b/internal/config/persistence_test.go@@ -511,8 +511,8 @@ func TestAppriseConfigPersistence(t *testing.T) {t.Fatalf("unexpected targets: got %v want %v", loaded.Targets, expectedTargets)}- if loaded.CLIPath != "/usr/local/bin/apprise" {- t.Fatalf("expected CLI path to be trimmed, got %q", loaded.CLIPath)+ if loaded.CLIPath != "apprise" {+ t.Fatalf("expected CLI path to be hardcoded to 'apprise' (security fix), got %q", loaded.CLIPath)}if loaded.TimeoutSeconds != 5 {