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
Hosted Signup Billing Replay Record
- Date:
2026-03-12 - Gate:
hosted-signup-billing-replay - Assertion:
RA2 - Environment:
- Hosted-mode rehearsal instance:
http://127.0.0.1:17765 - Hosted-mode fail-closed instance without
PULSE_PUBLIC_URL:http://127.0.0.1:17766 - Authenticated platform admin:
admin - Trial redirect target:
https://billing.example.com/start-pro-trial?source=rc-check - Stripe webhook secret: local test secret on the live HTTP surface
- Hosted-mode rehearsal instance:
Automated Proof Baseline
go test ./internal/api -run 'TestHostedLifecycle|TestHostedSignupSuccess|TestHostedSignupValidationFailures|TestHostedSignupHostedModeGate|TestHostedSignupRateLimit|TestHostedSignupRateLimit_NoProvisioningSideEffects|TestHostedSignupCleanupOnRBACFailure|TestHostedSignupFailsClosedWithoutPublicURL|TestStripeWebhook_' -count=1go test ./internal/hosted -run 'TestProvisionTenantSuccess|TestProvisionTenantIdempotentDuplicateEmail|TestProvisionTenantIdempotentDuplicateEmailCaseInsensitive|TestProvisionTenantValidationFailures|TestProvisionTenantPartialFailureRollback|TestProvisionHostedSignupSuccess' -count=1cd frontend-modern && npx vitest run src/pages/__tests__/HostedSignup.test.tsx src/components/Settings/__tests__/BillingAdminPanel.test.tsx- Result: pass
Manual Exercise
- Started a hosted-mode Pulse instance without
PULSE_PUBLIC_URLand confirmedPOST /api/public/signupfailed closed with:503code=public_url_missing- no new hosted organization metadata created (
org_countstayed unchanged)
- On the configured hosted-mode instance, started the self-hosted trial/upgrade path through
POST /api/license/trial/startas the authenticated admin and confirmed:- response was
409 code=trial_signup_requireddetails.action_urlpointed at the hosted checkout origin withorg_id=defaultandreturn_url=http://127.0.0.1:17765/auth/trial-activateGET /api/license/entitlementsstayedtier=freeandsubscription_state=expiredbefore and after the redirect handoff- this live hosted replay exercised only the canonical handoff branch; the later retired-route contract stays covered by the owned local trial-start proof in
tests/integration/scripts/retired-trial-acquisition-contract.shandtests/integration/tests/07-retired-trial-acquisition.spec.ts
- response was
- Exercised real hosted signup on the live HTTP surface via
POST /api/public/signupand confirmed:201 Created- returned
org_id=0147dd50-38db-4316-8d46-0e1f0d754bf6 - returned
message="Check your email for a magic link to finish signing in."
- Confirmed hosted magic-link access remained live by calling
POST /api/public/magic-link/requestfor the same signup email and receiving200withsuccess=true. - Confirmed billing-admin state for the newly provisioned hosted org reflected the seeded hosted signup state:
GET /api/admin/orgs/0147dd50-38db-4316-8d46-0e1f0d754bf6/billing-statereturnedsubscription_state=trialplan_version=cloud_trial- hosted trial capabilities were present
- Exercised exact webhook replay behavior on the live HTTP surface with the same signed
checkout.session.completedpayload fororg_id=org-replay-20260312:- first delivery returned
500 stripe_processing_failedbecause the linked org did not exist yet - after adding the linked org metadata to the hosted persistence tree, replaying the exact same signed payload returned
200 {"received":true,"status":"processed"}
- first delivery returned
- Confirmed billing-admin state after the successful replay reflected the resulting subscription state:
GET /api/admin/orgs/org-replay-20260312/billing-statereturnedsubscription_state=activeplan_version=cloud_starterlimits.max_monitored_systems=10stripe_customer_id=cus_retry_manualstripe_subscription_id=sub_retry_manual
Outcome
- Hosted signup fails closed when the external public URL is missing.
- The self-hosted trial start path redirects to hosted checkout instead of minting a local entitlement immediately.
- Hosted public signup provisions an org and exposes coherent billing-admin trial state.
- Magic-link request flow remains available on the hosted public surface.
- Stripe webhook handling fails closed before org linkage exists and succeeds on replay once the linked org exists.
- Billing-admin state reflects the resulting trial and active subscription states coherently after both hosted signup and replayed checkout completion.
- This remains
local-rehearsalevidence because the full journey was exercised on a localhost hosted-mode runtime rather than the real external hosted checkout and webhook path. - The gate therefore remains pending until the same replay path is proven against the real external hosted surface.
Notes
- The exact replay rehearsal used a live localhost hosted-mode server, not test handlers, and replayed the same signed webhook payload before and after linked-org metadata existed.
- The linked org for the exact replay was inserted through the hosted persistence tree because the session-authenticated org-create route is separately guarded and not part of the public checkout/webhook path under test here.