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
Guard trial-signup runbook contract
rcourtman5f9db943cf5b
diff --git a/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md b/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.mdindex 6f680d407f..a2e05b10d9 100644--- a/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md+++ b/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md@@ -81,7 +81,7 @@ This script asserts:2. Pre-trial entitlements are fetched and trial is eligible.3. `POST /api/license/trial/start` returns `409` with `trial_signup_required` and a hosted `action_url`.4. Post-initiation entitlements remain locally unactivated (`trial_eligible=true`, `subscription_state=expired`).-5. Second immediate trial start is rejected with `429` (rate limited).+5. Duplicate immediate trial starts stay on the hosted-signup retry burst until it is exhausted, then return `429 trial_rate_limited` plus `Retry-After` backoff metadata.Run inside container:@@ -102,6 +102,7 @@ done```If each run prints `PASS: hosted trial signup initiation contract validated`, state pollution between runs is eliminated.+On a fresh rollback the probe should show `trial_start_code=409 (code=trial_signup_required)` first, then report which later duplicate attempt first hit the limiter via `retry_limiter_attempt=...` and `final_trial_start_code=429 (...)`.## Full Sandbox E2E (Playwright)diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 2a6534c669..a5c6764295 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -590,6 +590,12 @@ local instance whose retry bucket is already exhausted and therefore mustaccept an immediate canonical `429` backoff response, while the snapshot-cleanshell probe remains the fresh-state contract that proves an initial hostedredirect and the later transition into `trial_rate_limited`.+Operator docs must describe that same split. The snapshot-clean runbook in+`docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md` may require the first trial+start to return `409 trial_signup_required` on a rolled-back container, but it+must describe duplicate attempts as staying on the hosted-signup retry burst+until exhaustion rather than teaching a universal "second attempt is `429`"+rule.Hosted tenant organization seeding and hosted handoff role mapping now belongto the same cloud-paid truth too. `internal/cloudcp/stripe/provisioner.go`must seed tenant org members from the shared account-role-to-organization-rolediff --git a/scripts/tests/test-trial-signup-docs.sh b/scripts/tests/test-trial-signup-docs.shnew file mode 100755index 0000000000..8d60372df7--- /dev/null+++ b/scripts/tests/test-trial-signup-docs.sh@@ -0,0 +1,68 @@+#!/usr/bin/env bash+set -euo pipefail++ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"+RUNBOOK="${ROOT_DIR}/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md"++failures=0++record_failure() {+ echo "[FAIL] $1" >&2+ ((failures += 1))+}++record_pass() {+ echo "[PASS] $1"+}++assert_contains() {+ local label="$1"+ local haystack="$2"+ local needle="$3"+ if [[ "${haystack}" == *"${needle}"* ]]; then+ record_pass "${label}"+ else+ record_failure "${label}"+ echo "Expected to find: ${needle}" >&2+ fi+}++assert_not_contains() {+ local label="$1"+ local haystack="$2"+ local needle="$3"+ if [[ "${haystack}" == *"${needle}"* ]]; then+ record_failure "${label}"+ echo "Did not expect to find: ${needle}" >&2+ else+ record_pass "${label}"+ fi+}++main() {+ local output+ output="$(+ awk '+ /^## Contract Probe Script$/ { capture=1 }+ capture { print }+ /^## Full Sandbox E2E \(Playwright\)$/ { exit }+ ' "${RUNBOOK}"+ )"++ assert_contains "runbook references hosted trial probe script" "${output}" "tests/integration/scripts/trial-signup-contract.sh"+ assert_contains "runbook documents initial hosted-signup redirect" "${output}" "returns \`409\` with \`trial_signup_required\`"+ assert_contains "runbook documents hosted-signup retry burst" "${output}" "hosted-signup retry burst"+ assert_contains "runbook documents retry-after backoff metadata" "${output}" "\`Retry-After\` backoff metadata"+ assert_contains "runbook documents limiter transition output" "${output}" "retry_limiter_attempt=..."+ assert_contains "runbook documents final trial-rate-limited output" "${output}" "final_trial_start_code=429"+ assert_not_contains "runbook no longer hardcodes second-attempt rejection" "${output}" "Second immediate trial start is rejected with \`429\`"++ if (( failures > 0 )); then+ echo "trial-signup docs smoke tests failed: ${failures}" >&2+ exit 1+ fi++ echo "trial-signup docs smoke tests passed."+}++main "$@"