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.

Extend hosted-trial docs guard

rcourtmanb87a46b01ed9
diff --git a/docs/UPGRADE_v6.md b/docs/UPGRADE_v6.md
index 0c371eaf74..554ee7384f 100644
--- a/docs/UPGRADE_v6.md
+++ b/docs/UPGRADE_v6.md
@@ -117,7 +117,7 @@ Pulse v6 feature gating is driven by the entitlements endpoint:
For self-hosted v6, Pulse now sells monitored coverage by monitored system rather than by installed agent. Community includes 5 monitored systems, Relay includes 8, Pro includes 15, and Pro+ includes 50. Relay also raises history to 14 days, while Pro and Pro+ raise it to 90 days.
-For self-hosted v6, `POST /api/license/trial/start` initiates hosted signup rather than minting a local trial directly. Pulse only reflects trial lifecycle entitlements after the hosted control plane returns a signed activation token to `/auth/trial-activate`.
+For self-hosted v6, `POST /api/license/trial/start` initiates hosted signup rather than minting a local trial directly. Duplicate start attempts stay on the hosted-signup retry burst until it is exhausted, then return canonical `429 trial_rate_limited` plus `Retry-After` backoff metadata. Pulse only reflects trial lifecycle entitlements after the hosted control plane returns a signed activation token to `/auth/trial-activate`.
If you are upgrading an existing free instance that already exceeds the new Community cap, Pulse should not hard-break monitoring on rollout day. During grace, existing monitoring continues and only newly added counted systems are blocked until you remove systems or upgrade.
diff --git a/scripts/tests/test-trial-signup-docs.sh b/scripts/tests/test-trial-signup-docs.sh
index 03a4dba501..72083c0520 100755
--- a/scripts/tests/test-trial-signup-docs.sh
+++ b/scripts/tests/test-trial-signup-docs.sh
@@ -4,6 +4,7 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
RUNBOOK="${ROOT_DIR}/docs/operations/TRIAL_E2E_LXC_SNAPSHOT_RUNBOOK.md"
PRICING_DOC="${ROOT_DIR}/docs/architecture/v6-pricing-and-tiering.md"
+UPGRADE_DOC="${ROOT_DIR}/docs/UPGRADE_v6.md"
failures=0
@@ -41,7 +42,7 @@ assert_not_contains() {
}
main() {
- local runbook_output pricing_output
+ local runbook_output pricing_output upgrade_output
runbook_output="$(
awk '
/^## Contract Probe Script$/ { capture=1 }
@@ -52,6 +53,9 @@ main() {
pricing_output="$(
sed -n '368,386p' "${PRICING_DOC}"
)"
+ upgrade_output="$(
+ sed -n '112,128p' "${UPGRADE_DOC}"
+ )"
assert_contains "runbook references hosted trial probe script" "${runbook_output}" "tests/integration/scripts/trial-signup-contract.sh"
assert_contains "runbook documents initial hosted-signup redirect" "${runbook_output}" "returns \`409\` with \`trial_signup_required\`"
@@ -66,6 +70,11 @@ main() {
assert_contains "pricing doc documents retry-after metadata" "${pricing_output}" "\`Retry-After\`"
assert_not_contains "pricing doc no longer claims 24 hour limiter" "${pricing_output}" "24 hours"
+ assert_contains "upgrade guide keeps hosted-signup-only wording" "${upgrade_output}" "initiates hosted signup rather than minting a local trial directly"
+ assert_contains "upgrade guide documents retry burst" "${upgrade_output}" "retry burst"
+ assert_contains "upgrade guide documents trial-rate-limited response" "${upgrade_output}" "\`429 trial_rate_limited\`"
+ assert_contains "upgrade guide documents retry-after metadata" "${upgrade_output}" "\`Retry-After\`"
+
if (( failures > 0 )); then
echo "trial-signup docs smoke tests failed: ${failures}" >&2
exit 1