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
licensing: send in-app Buy to the licence server purchase page
rcourtman52c0c831e81c
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex b09e11eb29..aff2540f6a 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -2191,6 +2191,19 @@ start route must still return the operator to the owned billing plan surfacewith an explicit `purchase=unavailable` arrival instead of leaving the browseron a raw error page, so the runtime can explain that Pulse Account istemporarily unavailable and offer a retry from the same instance.+Hosted Cloud was hibernated on 2026-06-01, and from then the+`https://cloud.pulserelay.pro/portal` page that consumed this handoff answered+with a Cloudflare 522, so every in-app Buy, Upgrade and Renew action failed.+The self-hosted purchase page is now served by the licence server at+`https://license.pulserelay.pro/buy`, which is+`pkg/licensing.DefaultPulseAccountPortalURL`. It resolves the same+`portal_handoff_id` through `GET /v1/checkout/portal-handoff`, lists checkout+plans from the public pricing model, and starts checkout by posting the chosen+plan with only that `portal_handoff_id` to `/v1/checkout/session`, so success+and cancel targets still come from the server-owned handoff. The purchase-start+redirect must point at a page that is being served; when the host that consumes+the handoff changes, the start route's default target, its redirect tests and+the upgrade-return browser spec change together.That portal handoff is now intentionally narrowly stateful rather than a barelookup row: lookup must stamp a first `resolved_at`, and the reported handofflifecycle must stay derived from the owned portal handoff plus the bounddiff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex 25fd6c0606..6089c12fec 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -9950,8 +9950,8 @@ func TestContract_SelfHostedPurchaseHandoffJSONSnapshot(t *testing.T) {if err != nil {t.Fatalf("parse redirect location: %v", err)}- if redirectURL.Scheme != "https" || redirectURL.Host != "cloud.pulserelay.pro" || redirectURL.Path != "/portal" {- t.Fatalf("redirect location=%q, want Pulse Account portal", location)+ if redirectURL.Scheme != "https" || redirectURL.Host != "license.pulserelay.pro" || redirectURL.Path != "/buy" {+ t.Fatalf("redirect location=%q, want licence server purchase page", location)}if got := redirectURL.Query().Get("feature"); got != "" {t.Fatalf("feature=%q, want omitted portal query", got)diff --git a/internal/api/license_handlers_test.go b/internal/api/license_handlers_test.goindex c3df057a27..f8e86eb2eb 100644--- a/internal/api/license_handlers_test.go+++ b/internal/api/license_handlers_test.go@@ -783,8 +783,8 @@ func TestHandleCheckoutStart_RedirectsToPulseAccountWithSignedReturnState(t *tesif err != nil {t.Fatalf("parse redirect location: %v", err)}- if redirectURL.Scheme != "https" || redirectURL.Host != "cloud.pulserelay.pro" || redirectURL.Path != "/portal" {- t.Fatalf("redirect location = %q, want Pulse Account portal", location)+ if redirectURL.Scheme != "https" || redirectURL.Host != "license.pulserelay.pro" || redirectURL.Path != "/buy" {+ t.Fatalf("redirect location = %q, want licence server purchase page", location)}if got := redirectURL.Query().Get("feature"); got != "" {t.Fatalf("feature = %q, want omitted portal query", got)diff --git a/pkg/licensing/upgrade.go b/pkg/licensing/upgrade.goindex 6b18889578..d014047013 100644--- a/pkg/licensing/upgrade.go+++ b/pkg/licensing/upgrade.go@@ -13,8 +13,10 @@ const DefaultUpgradeURL = "https://pulserelay.pro/pricing?utm_source=pulse&utm_m// compatibility paths that derive hosted entitlement refresh endpoints.const DefaultProTrialSignupURL = "https://cloud.pulserelay.pro"-// DefaultPulseAccountPortalURL is the authenticated Pulse Account portal entrypoint.-const DefaultPulseAccountPortalURL = "https://cloud.pulserelay.pro/portal"+// DefaultPulseAccountPortalURL is where in-app Buy sends the operator to choose+// a plan and pay. The licence server hosts it; the earlier page on the Cloud+// host stopped answering when hosted Cloud was hibernated on 2026-06-01.+const DefaultPulseAccountPortalURL = "https://license.pulserelay.pro/buy"// ProTrialSignupURLEnvVar overrides the legacy hosted commercial base URL.const ProTrialSignupURLEnvVar = "PULSE_PRO_TRIAL_SIGNUP_URL"diff --git a/pkg/licensing/upgrade_test.go b/pkg/licensing/upgrade_test.goindex cb1b4e61ed..1f8e097630 100644--- a/pkg/licensing/upgrade_test.go+++ b/pkg/licensing/upgrade_test.go@@ -57,6 +57,17 @@ func TestResolvePulseAccountPortalURL_DefaultWhenUnset(t *testing.T) {}}+// In-app Buy must land on a page that is served. Hosted Cloud was hibernated+// on 2026-06-01, so the purchase page lives on the licence server.+func TestDefaultPulseAccountPortalURL_IsLicenceServerPurchasePage(t *testing.T) {+ if DefaultPulseAccountPortalURL != "https://license.pulserelay.pro/buy" {+ t.Fatalf("DefaultPulseAccountPortalURL = %q, want the licence server purchase page", DefaultPulseAccountPortalURL)+ }+ if strings.Contains(DefaultPulseAccountPortalURL, "cloud.pulserelay.pro") {+ t.Fatalf("DefaultPulseAccountPortalURL = %q must not use the hibernated Cloud host", DefaultPulseAccountPortalURL)+ }+}+func TestResolvePulseAccountPortalURL_UsesValidOverride(t *testing.T) {const override = "https://example.com/portal?src=test"diff --git a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts b/tests/integration/tests/55-self-hosted-upgrade-return.spec.tsindex 5486cfb2ba..b47bd97426 100644--- a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts+++ b/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts@@ -11,7 +11,7 @@ import { ensureAuthenticated } from "./helpers";const DEV_SERVER_URL = preferredPlaywrightRouteBaseURL();const PURCHASE_START_PATH = "/auth/license-purchase-start";const PURCHASE_START_URL = `${DEV_SERVER_URL}${PURCHASE_START_PATH}`;-const PULSE_ACCOUNT_PORTAL_URL = "https://cloud.pulserelay.pro/portal";+const PULSE_ACCOUNT_PORTAL_URL = "https://license.pulserelay.pro/buy";const PURCHASE_RETURN_URL = `${DEV_SERVER_URL}/auth/license-purchase-activate`;const PORTAL_HANDOFF_ID = "cph_checkout_return";const ACTIVATED_BILLING_URL = `${DEV_SERVER_URL}/settings/pulse-intelligence/billing/plan?intent=self_hosted_plan&purchase=activated`;