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
Skip container update checks against the entitled Pro registry
rcourtman5e1a2a70f4bd
diff --git a/internal/dockeragent/registry.go b/internal/dockeragent/registry.goindex a422c5669e..239e235f94 100644--- a/internal/dockeragent/registry.go+++ b/internal/dockeragent/registry.go@@ -132,6 +132,13 @@ func (r *RegistryChecker) ForceCheck() {r.cache.entries = make(map[string]cacheEntry)}+// proBrokerRegistry is the entitled Pulse Pro registry. Digest checks against+// it require a license credential the agent does not hold, so an anonymous+// HEAD can never succeed and would pin a permanent "authentication required"+// badge on the Pulse Pro container. That container updates through the+// broker's digest-pinned commands instead, so the generic checker stays out.+const proBrokerRegistry = "license.pulserelay.pro"+// CheckImageUpdate checks if a newer version of the image is available.func (r *RegistryChecker) CheckImageUpdate(ctx context.Context, image, currentDigest, arch, goos, variant string) *ImageUpdateResult {if !r.Enabled() {@@ -140,6 +147,10 @@ func (r *RegistryChecker) CheckImageUpdate(ctx context.Context, image, currentDiregistry, repository, tag := parseImageReference(image)+ if registry == proBrokerRegistry {+ return nil+ }+// Skip digest-pinned images (image@sha256:...)if registry == "" {return &ImageUpdateResult{diff --git a/internal/dockeragent/registry_coverage_test.go b/internal/dockeragent/registry_coverage_test.goindex 749686f02a..81a3a57fcb 100644--- a/internal/dockeragent/registry_coverage_test.go+++ b/internal/dockeragent/registry_coverage_test.go@@ -80,6 +80,19 @@ func TestRegistryChecker_CheckImageUpdate_CacheHits(t *testing.T) {})}+func TestRegistryChecker_CheckImageUpdate_ProBrokerRegistrySkipped(t *testing.T) {+ logger := zerolog.Nop()+ checker := NewRegistryChecker(logger)++ // The entitled Pro registry requires a license credential the agent does+ // not hold, so the checker must report nothing (no badge) instead of a+ // permanent "authentication required" error on the Pulse Pro container.+ result := checker.CheckImageUpdate(context.Background(), "license.pulserelay.pro/pulse-pro:6.1.1", "sha256:current", "amd64", "linux", "")+ if result != nil {+ t.Fatalf("Expected nil result for the entitled Pro registry, got %+v", result)+ }+}+func TestRegistryChecker_CheckImageUpdate_FetchPaths(t *testing.T) {logger := zerolog.Nop()