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
Govern Relay commercial invalidation
rcourtmanf50bcce2dcc1
diff --git a/docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md b/docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.mdindex 1a3c8b9421..9b905211c2 100644--- a/docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md+++ b/docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md@@ -163,9 +163,9 @@ Companion drill:Relay/Pro and cadence changes cross Stripe proration and schedules, durablewebhook processing, grandfathering, local entitlement projection, licenseversioning, Relay grant enforcement, downgrade preservation, and customer-- visible account state. The current implementation can update Stripe price- identifiers without atomically changing tier or features, which can charge- for one plan while granting another.+ visible account state. A failure in replay, feed delivery, or scoped runtime+ invalidation can still charge for one plan while granting another even when+ the local projection itself is atomic.- Primary runtime surfaces:`pulse-pro/license-server/v6_checkout.go``pulse-pro/license-server/v6_stripe.go`@@ -173,6 +173,9 @@ Companion drill:`pulse-pro/license-server/v6_state.go``pulse-pro/license-server/v6_store.go``pulse-pro/license-server/v6_grants.go`+ `pulse-pro/relay-server/main.go`+ `pulse-pro/relay-server/revocation_feed.go`+ `pulse-pro/relay-server/registry.go``pkg/licensing/...`Pulse Account Billing and Stripe customer/subscription state- Automated proof:@@ -181,10 +184,12 @@ Companion drill:immediate retry convergence, schedule creation/reuse/cancellation ownership,atomic commercial snapshot projection, payment-failure versus cancellationgrace, downgrade history timing, report entitlement denial, and safe artifact- purge. The remaining duplicate/reversed/missing external-event matrix and- restrictive Relay grant version-floor scenario require the governed Stripe- test-mode rehearsal; until that evidence is registered, the gate remains- blocked.+ purge. Relay proof now also covers mandatory operator-feed configuration,+ synchronous startup drain, readiness staleness, active stale-session+ teardown, and reconnect-token invalidation. The remaining duplicate/reversed/+ missing external-event matrix, exact Stripe-to-Relay exercise, and customer-+ safe installation-scoped Pulse invalidation require the governed rehearsal;+ until that evidence is registered, the gate remains blocked.- Manual scenario:1. In Stripe test mode, create fresh Community-to-Relay and Community-to-Proacquisitions for monthly and annual plans.@@ -199,9 +204,12 @@ Companion drill:5. Reverse, duplicate, suppress, and later replay Stripe events; reconcilefrom the current Stripe snapshot and confirm the same final state.6. Confirm every material entitlement reduction increments- `license_version`, rejects the old grant in Relay/runtime, and preserves+ `license_version`, disconnects an already-connected old Relay grant within+ the governed convergence bound, rejects its reconnect token, refreshes or+ clears Pulse through an installation-scoped authority, and preservesconfiguration, report definitions, audit records, and the governed- downgrade history window.+ downgrade history window. Do not distribute the global Relay feed token to+ customer installations.7. Exercise the buyer/account journey at desktop and phone width and confirmthe quoted amount, effective date, plan, cadence, cancellation state, andrecovery behavior match runtime truth.diff --git a/docs/release-control/v6/internal/records/commercial-offer-lifecycle-contract-2026-07-14.md b/docs/release-control/v6/internal/records/commercial-offer-lifecycle-contract-2026-07-14.mdindex b74d6d6012..b45b6be655 100644--- a/docs/release-control/v6/internal/records/commercial-offer-lifecycle-contract-2026-07-14.md+++ b/docs/release-control/v6/internal/records/commercial-offer-lifecycle-contract-2026-07-14.md@@ -157,6 +157,13 @@ foundation required by this contract:390-pixel buyer/account browser exercise. These are local implementation andrehearsal facts, not a substitute for the required Stripe test-mode andproduction read-only evidence.+6. `pulse-pro/relay-server` now requires the operator revocation authority,+ synchronously drains it before serving, reports stale feed state through+ readiness, disconnects already-connected v6 sessions below a newly applied+ license-version floor, and clears their persisted reconnect credentials.+ The joined Relay proof covers feed consumption through active-session+ teardown. License-server startup also fails closed when v6 is enabled+ without the matching feed credential.## Remaining Readiness Boundary@@ -165,5 +172,9 @@ Stripe test-mode mutation, live catalog/configuration change, purchase,deployment, or production customer-data access was authorized or performed inthis slice. Before self-service is released, the project still needs thegoverned external transition matrix, event-order/reconciliation exercise,-Relay version-floor proof, and read-only production catalog/portal audit named-above.+read-only production catalog/portal audit, and a customer-safe Pulse runtime+invalidation path named above. The global operator feed credential must never+be distributed to customer Pulse installations; Pulse convergence requires an+installation-scoped authenticated feed or an equivalently bounded canonical+authority. The local Relay proof raises confidence but does not replace the+required real external Stripe-to-Relay exercise.diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex f3b8a70cad..123595aa24 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -4686,11 +4686,13 @@"lane_ids": ["L2","L3",+ "L7","L12","L17"],"subsystem_ids": [- "cloud-paid"+ "cloud-paid",+ "relay-runtime"],"release_gate_ids": ["self-hosted-commercial-transition-coherence"@@ -4706,6 +4708,11 @@"path": "docs/release-control/v6/internal/subsystems/cloud-paid.md","kind": "file"},+ {+ "repo": "pulse",+ "path": "docs/release-control/v6/internal/subsystems/relay-runtime.md",+ "kind": "file"+ },{"repo": "pulse","path": "internal/api/report_schedules_test.go",@@ -4723,6 +4730,18 @@"path": "license-server/v6_commercial_transitions_test.go","kind": "file","evidence_tier": "test-proof"+ },+ {+ "repo": "pulse-pro",+ "path": "relay-server/bridge_v6_grant_test.go",+ "kind": "file",+ "evidence_tier": "test-proof"+ },+ {+ "repo": "pulse-pro",+ "path": "relay-server/revocation_feed_test.go",+ "kind": "file",+ "evidence_tier": "test-proof"}]}@@ -7944,6 +7963,7 @@"lane_ids": ["L2","L3",+ "L7","L12","L17"],@@ -7970,6 +7990,18 @@"path": "license-server/v6_commercial_transitions_test.go","kind": "file","evidence_tier": "test-proof"+ },+ {+ "repo": "pulse-pro",+ "path": "relay-server/bridge_v6_grant_test.go",+ "kind": "file",+ "evidence_tier": "test-proof"+ },+ {+ "repo": "pulse-pro",+ "path": "relay-server/revocation_feed_test.go",+ "kind": "file",+ "evidence_tier": "test-proof"}]},@@ -9560,6 +9592,20 @@"L17"]},+ {+ "id": "relay-commercial-invalidation-contract",+ "summary": "Operator Relay must not serve v6 grants until it has synchronously drained the authenticated revocation feed; stale feed state fails readiness, and an applied license revocation, installation revocation, or higher license-version floor disconnects affected active v6 sessions and clears their persisted reconnect credentials. The global operator feed credential must never be distributed to customer Pulse installations; customer-runtime invalidation requires installation-scoped authentication or an equivalently bounded authority.",+ "kind": "architecture",+ "decided_at": "2026-07-14",+ "subsystem_ids": [+ "cloud-paid",+ "relay-runtime"+ ],+ "lane_ids": [+ "L3",+ "L7"+ ]+ },{"id": "self-hosted-commercial-scope-support-contract","summary": "One Relay or Pro subscription covers one owner-operated Pulse environment with unmetered monitored systems and child resources plus three concurrent primary/migration/recovery activations. Verified administrative transfer is permitted, resale/sharing/unverified assignment is prohibited, and Relay/Pro include standard verified commercial support typically within two business days without an SLA or priority-support promise.",diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex e664743667..4d3c537f7f 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -219,6 +219,9 @@ avoids a cloud-control-plane report data path across clients.79. `internal/cloudcp/provider_msp_bootstrap.go`80. `internal/cloudcp/provider_msp_backup.go`81. `internal/cloudcp/provider_msp_recovery.go`+82. `pulse-pro:relay-server/main.go`+83. `pulse-pro:relay-server/registry.go`+84. `pulse-pro:relay-server/revocation_feed.go`## Shared Boundaries@@ -414,6 +417,9 @@ avoids a cloud-control-plane report data path across clients.per-tenant snapshot, health-check, and rollback path. `tenant-runtimereconcile --all` remains contract/routing drift repair for each tenant'scurrent image line, not an image-line upgrade path.+16. `pulse-pro:relay-server/main.go` shared with `relay-runtime`: the Relay server startup and readiness path is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary.+17. `pulse-pro:relay-server/registry.go` shared with `relay-runtime`: the Relay server active-session registry is both a relay-runtime connection boundary and a cloud-paid entitlement invalidation boundary.+18. `pulse-pro:relay-server/revocation_feed.go` shared with `relay-runtime`: the Relay server revocation feed is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary.The real `pulse-pro` license-server legacy checkout issuance, recurringrenewals, manual issue, and legacy exchange flows are part of that same@@ -1128,6 +1134,12 @@ hands-on Patrol modes, issue investigation, verified fixes, and longer history`.cadence, capability, or restrictive-state change increments`license_version` and emits the version-floor/outbox event in the samelocal transaction.+28. Add or change Relay-side commercial invalidation only through the shared+ `pulse-pro:relay-server/main.go`, `pulse-pro:relay-server/revocation_feed.go`,+ and `pulse-pro:relay-server/registry.go` boundary. Operator Relay startup+ must fail closed without the authenticated feed, drain it before serving,+ report stale feed state through readiness, and disconnect already-connected+ v6 sessions whose grant falls below an applied version floor.## Forbidden Paths@@ -1140,6 +1152,9 @@ hands-on Patrol modes, issue investigation, verified fixes, and longer history`.5. Customer Portal configuration as the authority for plan transitions6. Separate offer definitions in landing, account, app, support, or Stripeprovisioning code+7. Distributing the global Relay revocation-feed bearer token to customer Pulse+ installations; customer-runtime invalidation requires installation-scoped+ authentication or an equivalently bounded authority.## Completion Obligations@@ -1287,6 +1302,15 @@ hands-on Patrol modes, issue investigation, verified fixes, and longer history`.availability contracts are explicitly reopened. Historical Cloud prices,caps, trial, and support labels are dormant planning data, while provider-hosted MSP remains the default assisted-preview delivery boundary.+25. Keep operator Relay revocation enforcement mandatory and readiness-backed:+ startup must synchronously establish the monotonic version-floor cache,+ feed staleness must fail readiness, and feed-applied restrictive events+ must disconnect stale active v6 sessions and invalidate their reconnect+ credentials.+26. Keep customer Pulse invalidation separate from the operator-wide feed+ credential. Before self-service transitions are released, prove a scoped+ customer-safe authority that refreshes or clears paid state without giving+ any installation visibility into another customer's revocation events.## Current State@@ -1304,6 +1328,14 @@ catalog/portal audit remain required by`self-hosted-commercial-transition-coherence`. Cloud remains unavailable andMSP remains an assisted preview.+The Relay side now fails closed on missing feed authority, drains the feed+before serving, exposes feed staleness through readiness, and tears down stale+already-connected v6 sessions while clearing their reconnect tokens. The+remaining restrictive-transition gap is the customer Pulse runtime: its+existing optional poller depends on a global operator credential that must not+be distributed. A scoped installation-authenticated invalidation authority and+real external Stripe-to-runtime proof remain release-gated.+Hosted handoff target paths are normalized by the shared host-local redirectvalidator at token minting, exchange, and provider-proof boundaries. Absolute,scheme-relative, backslash-authority, encoded-separator, and control-characterdiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 042109e040..a2cc44a3bb 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -1013,6 +1013,30 @@"api-contracts"]},+ {+ "path": "pulse-pro:relay-server/main.go",+ "rationale": "the Relay server startup and readiness path is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary",+ "subsystems": [+ "cloud-paid",+ "relay-runtime"+ ]+ },+ {+ "path": "pulse-pro:relay-server/registry.go",+ "rationale": "the Relay server active-session registry is both a relay-runtime connection boundary and a cloud-paid entitlement invalidation boundary",+ "subsystems": [+ "cloud-paid",+ "relay-runtime"+ ]+ },+ {+ "path": "pulse-pro:relay-server/revocation_feed.go",+ "rationale": "the Relay server revocation feed is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary",+ "subsystems": [+ "cloud-paid",+ "relay-runtime"+ ]+ },{"path": "scripts/generate-pulse-intelligence-docs.go","rationale": "the Pulse Intelligence manifest docs generator is both an AI runtime docs/onboarding projection and a canonical API contract projection over the agent capabilities manifest and Pulse MCP surface tool contract",@@ -2778,6 +2802,9 @@"pulse-pro:license-server/self_hosted_feature_catalog.generated.go","pulse-pro:license-server/v6_checkout.go","pulse-pro:license-server/v6_handlers.go",+ "pulse-pro:relay-server/main.go",+ "pulse-pro:relay-server/registry.go",+ "pulse-pro:relay-server/revocation_feed.go","pulse-pro:scripts/grandfathered_recurring_cutover_preview.py"],"verification": {@@ -3463,6 +3490,24 @@"frontend-modern/src/pages/__tests__/RuntimeHome.test.tsx"]},+ {+ "id": "relay-commercial-invalidation",+ "label": "Relay commercial invalidation proof",+ "match_prefixes": [],+ "match_files": [+ "pulse-pro:relay-server/main.go",+ "pulse-pro:relay-server/registry.go",+ "pulse-pro:relay-server/revocation_feed.go"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "pulse-pro:relay-server/bridge_v6_grant_test.go",+ "pulse-pro:relay-server/main_test.go",+ "pulse-pro:relay-server/registry_test.go",+ "pulse-pro:relay-server/revocation_feed_test.go"+ ]+ },{"id": "legacy-grandfathering-cutover","label": "legacy recurring grandfathering cutover proof",@@ -5588,7 +5633,10 @@],"owned_files": ["internal/api/relay_mobile_capability.go",- "internal/config/persistence_relay.go"+ "internal/config/persistence_relay.go",+ "pulse-pro:relay-server/main.go",+ "pulse-pro:relay-server/registry.go",+ "pulse-pro:relay-server/revocation_feed.go"],"verification": {"allow_same_subsystem_tests": true,@@ -5611,6 +5659,24 @@],"require_explicit_path_policy_coverage": true,"path_policies": [+ {+ "id": "relay-server-commercial-runtime",+ "label": "Relay server commercial runtime proof",+ "match_prefixes": [],+ "match_files": [+ "pulse-pro:relay-server/main.go",+ "pulse-pro:relay-server/registry.go",+ "pulse-pro:relay-server/revocation_feed.go"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "pulse-pro:relay-server/bridge_v6_grant_test.go",+ "pulse-pro:relay-server/main_test.go",+ "pulse-pro:relay-server/registry_test.go",+ "pulse-pro:relay-server/revocation_feed_test.go"+ ]+ },{"id": "relay-client-runtime","label": "desktop relay runtime proof",diff --git a/docs/release-control/v6/internal/subsystems/relay-runtime.md b/docs/release-control/v6/internal/subsystems/relay-runtime.mdindex ff9bccec4d..8bb1e0c5d0 100644--- a/docs/release-control/v6/internal/subsystems/relay-runtime.md+++ b/docs/release-control/v6/internal/subsystems/relay-runtime.md@@ -26,10 +26,16 @@ for Pulse instance bridging.2. `internal/relay/protocol.go`3. `internal/config/persistence_relay.go`4. `internal/api/relay_mobile_capability.go`+5. `pulse-pro:relay-server/main.go`+6. `pulse-pro:relay-server/registry.go`+7. `pulse-pro:relay-server/revocation_feed.go`## Shared Boundaries1. `internal/api/relay_mobile_capability.go` shared with `api-contracts`: the backend-owned Pulse Mobile relay capability inventory is both a relay runtime boundary and a canonical API payload contract surface.+2. `pulse-pro:relay-server/main.go` shared with `cloud-paid`: the Relay server startup and readiness path is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary.+3. `pulse-pro:relay-server/registry.go` shared with `cloud-paid`: the Relay server active-session registry is both a relay-runtime connection boundary and a cloud-paid entitlement invalidation boundary.+4. `pulse-pro:relay-server/revocation_feed.go` shared with `cloud-paid`: the Relay server revocation feed is both a relay-runtime server boundary and a cloud-paid entitlement invalidation boundary.## Extension Points@@ -47,7 +53,8 @@ for Pulse instance bridging.from the UI is allowed to persist the env-effective state to disk;the override is not stripped before save.4. Add or change the backend-owned mobile relay capability inventory and compatibility scope mapping through `internal/api/relay_mobile_capability.go`-6. Keep desktop and mobile relay changes aligned with the governed server relay surfaces represented by the L7 lane evidence+5. Keep desktop and mobile relay changes aligned with the governed server relay surfaces represented by the L7 lane evidence+6. Add or change server-side grant revocation ingestion, readiness, active-session teardown, or reconnect-token invalidation through `pulse-pro:relay-server/main.go`, `pulse-pro:relay-server/revocation_feed.go`, and `pulse-pro:relay-server/registry.go`.## Forbidden Paths@@ -63,6 +70,8 @@ for Pulse instance bridging.3. Keep persisted relay config loading tied to explicit proof in `internal/config/persistence_relay_test.go`4. Keep backend-owned mobile capability inventory changes tied to explicit proof in `internal/api/relay_mobile_capability_test.go`5. Keep mobile relay runtime changes tied to explicit proof in `pulse-mobile:src/relay/__tests__/`+6. Keep the operator Relay incapable of serving v6 grants until it has synchronously drained the authenticated revocation feed, and expose stale feed state through readiness.+7. Keep feed-applied restrictive events tied to proof that already-connected stale grants are disconnected and their persisted reconnect credentials are invalidated.## Current State@@ -133,6 +142,15 @@ auth/security router, but it must require the paid `relay` entitlement beforecreating a `relay:mobile:access` token so Community installs cannot bypassRelay/mobile gating through direct API calls.+The operator Relay revocation feed is now part of the canonical server runtime,+not optional commercial decoration. Startup requires the license-server URL and+operator feed credential, completes an authenticated feed drain before serving,+and reports stale feed state as unhealthy. Each applied license revocation,+installation revocation, or license-version floor is enforced against both new+registrations and already-connected v6 sessions. A forced disconnect also+clears the persisted reconnect credential so a Relay restart cannot restore an+invalidated session before full grant registration.+The mobile relay capability inventory and router allowlist include thecanonical pending-action read, global pending/settled action list, authoritativeaction detail, action decision, and action execution routes. These core readsdiff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex f8a58a749d..03542422d5 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -4007,6 +4007,7 @@ class SubsystemLookupTest(unittest.TestCase):"msp-provider-hosted-first-launch","msp-provider-tier-limit-lock","pre-ga-public-checkout-posture",+ "relay-commercial-invalidation-contract","self-hosted-plans-surface-entitlement-first","self-hosted-paid-surface-classification","self-hosted-core-monitoring-free",