Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Record passing production Stripe remediation

rcourtmand407bec47fd6
diff --git a/docs/release-control/v6/internal/records/self-hosted-commercial-transition-coherence-production-remediation-2026-07-15.md b/docs/release-control/v6/internal/records/self-hosted-commercial-transition-coherence-production-remediation-2026-07-15.md
new file mode 100644
index 0000000000..ec464ca940
--- /dev/null
+++ b/docs/release-control/v6/internal/records/self-hosted-commercial-transition-coherence-production-remediation-2026-07-15.md
@@ -0,0 +1,78 @@
+# Self-Hosted Commercial Production Remediation Record
+
+- Date: `2026-07-15`
+- Gate: `self-hosted-commercial-transition-coherence`
+- Result: `production catalog and portal residual passed`
+- Evidence tier: `production-observed`
+
+## Approved Scope
+
+The user approved the exact production plan after a GET-only preview. The
+bounded apply was limited to:
+
+1. aligning the existing public Pulse Relay and Pulse Pro Stripe product
+ descriptions with the canonical offer;
+2. creating a dedicated Customer Portal configuration for invoice history and
+ payment-method updates only; and
+3. deploying that configuration identifier to the license runtime before a
+ read-only re-audit.
+
+No price, customer, subscription, webhook, or license object was changed. No
+customer, subscription, webhook, or license record was read.
+
+## Stripe Result
+
+The guarded `pulse-pro:scripts/remediate_stripe_commercial_state.py` apply
+converged these existing products:
+
+- `prod_U37aaHIl0MtpS5` (`Pulse Relay`): `Secure remote access and Pulse Mobile
+ connectivity for one owner-operated Pulse environment.`
+- `prod_U37aCdMDY0V6cK` (`Pulse Pro`): `Patrol-powered operations for one
+ owner-operated Pulse environment, including Relay connectivity and Pulse
+ Mobile.`
+
+Stripe created dedicated portal configuration
+`bpc_1TtNsxBrHBocJIGHTjRvG4Qf`, named `Pulse self-hosted invoices and payment
+methods`. It enables `invoice_history` and `payment_method_update`. It disables
+`customer_update`, `subscription_cancel`, `subscription_update`, and the hosted
+`login_page`.
+
+## Runtime Deployment And Recovery
+
+The successful deployment backed up the production environment to
+`/etc/pulse-license/secrets.env.bak.stripe-portal.20260715T081138Z`, added the
+portal identifier exactly once as `STRIPE_BILLING_PORTAL_CONFIGURATION_ID`, and
+restarted `pulse-license`. Loopback and public `/healthz` returned
+`{"status":"ok"}`.
+
+An earlier atomic-writer attempt created
+`/etc/pulse-license/secrets.env.bak.stripe-portal.20260715T081025Z` but failed
+its key-count postcondition after writing escaped line separators. The command
+stopped before service restart, so the malformed configuration was never
+loaded. The file was restored from that backup, its original 73-line structure
+and shell syntax were verified, and service health was confirmed before the
+successful deployment. The first public probe during the intentional recovery
+restart returned a transient `502`; loopback and public health passed after the
+service became ready.
+
+## Read-Only Postconditions
+
+The post-deploy validator reported:
+
+- `ok: true`;
+- `checked_prices: 25`;
+- `portal_configuration_checked: true`;
+- zero errors;
+- the same four governed public Relay and Pro checkout price IDs; and
+- only the two already-governed inactive v1 legacy recurring warnings.
+
+A second default remediation plan returned `product_updates: []` and portal
+action `reuse` for `bpc_1TtNsxBrHBocJIGHTjRvG4Qf`. The production license
+runtime configuration validator also passed.
+
+## Gate Verdict
+
+The production catalog and portal failure recorded on `2026-07-14` is closed.
+The release gate remains blocked: a passing production catalog observation does
+not replace the governed external Stripe lifecycle transition/event-
+reconciliation matrix or the real Relay license-version-floor exercise.
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index d4304b06f7..b9b82e0833 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1360,8 +1360,7 @@ or local completion steps, schedule-release retries repair the local quote, and
the authoritative backfill can reopen a terminal inbox event through the
cursor-aware retry path. The implementation is not yet a released self-
service capability: the governed external Stripe transition matrix, event-
-order/reconciliation exercise, Relay version-floor proof, and a passing
-production catalog/portal audit remain required by
+order/reconciliation exercise and Relay version-floor proof remain required by
`self-hosted-commercial-transition-coherence`. Cloud remains unavailable and
MSP remains an assisted preview.
@@ -1371,8 +1370,8 @@ provide a governed billing-portal configuration identifier and the public
Relay/Pro Stripe products retained pre-contract descriptions. No Stripe object
or customer record was mutated or inspected. The dated blocked record is
`docs/release-control/v6/internal/records/self-hosted-commercial-transition-coherence-production-audit-blocked-2026-07-14.md`;
-the gate stays blocked until separately approved remediation is deployed and
-the same read-only audit passes.
+at that point the gate stayed blocked until separately approved remediation
+was deployed and the same read-only audit passed.
Repository-side remediation preparation now exists in
`pulse-pro:scripts/remediate_stripe_commercial_state.py`. Offline proof covers
@@ -1380,8 +1379,21 @@ shared-product deduplication, strict price and mode preconditions, exact portal
reuse, safe creation instead of mutation of a nonconforming portal, bounded
write endpoints, and apply confirmation. The dormant new-environment price
creation helper also uses the same canonical descriptions. This preparation
-does not change the production finding: no live apply or runtime deployment
-has been authorized or executed, and the gate remains blocked.
+did not change the production finding at that point: no live apply or runtime
+deployment had yet been authorized or executed.
+
+On 2026-07-15 the separately approved bounded production remediation converged
+the two public Relay/Pro product descriptions, created and deployed dedicated
+invoice/payment-method-only portal configuration
+`bpc_1TtNsxBrHBocJIGHTjRvG4Qf`, and passed the same GET-only production audit:
+all 25 governed prices resolved, the portal contract passed, and the only
+warnings were the already-governed inactive v1 legacy recurring prices. A
+second remediation plan returned no product updates and reused the dedicated
+portal, proving idempotent convergence. The production catalog/portal residual
+is closed, but `self-hosted-commercial-transition-coherence` remains blocked
+until the external Stripe lifecycle transition/event-reconciliation matrix and
+real Relay license-version-floor exercise pass. The evidence record is
+`docs/release-control/v6/internal/records/self-hosted-commercial-transition-coherence-production-remediation-2026-07-15.md`.
The Relay side now fails closed on missing feed authority, drains the feed
before serving, exposes feed staleness through readiness, and tears down stale