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
Clarify download checksum auth
rcourtman0d564bfd8f4f
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.goindex b6586756b6..64ec46735c 100644--- a/internal/api/security_regression_test.go+++ b/internal/api/security_regression_test.go@@ -3104,6 +3104,22 @@ func TestPublicDownloadEndpointsBypassAuth(t *testing.T) {}}+func TestHostAgentChecksumRequiresAuth(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.90")+ req := httptest.NewRequest(http.MethodPost, "/download/pulse-host-agent.sha256", nil)+ req.RemoteAddr = "203.0.113.90:1234"+ rec := httptest.NewRecorder()+ router.Handler().ServeHTTP(rec, req)+ if rec.Code != http.StatusUnauthorized {+ t.Fatalf("expected 401 for protected checksum, got %d", rec.Code)+ }+}+func TestPublicEndpointsBypassAuthInAPIMode(t *testing.T) {record := newTokenRecord(t, "public-api-token-123.12345678", []string{config.ScopeMonitoringRead}, nil)cfg := newTestConfigWithTokens(t, record)