Files
Pulse/docs/CLOUD_COMPANION.md
rcourtman 25f98814a8 Enforce single-instance RBAC seat limits and add Cloud Companion guide
Enforce the license max_users seat cap on single-instance RBAC role assignments (PUT/POST /api/admin/users/{username}/roles) so Pro seats (3) and Business unlimited seats match the published plan contract. Already-seated role edits and role removals remain allowed, store read errors fail closed, and User Access keeps the role editor open with canonical seat-limit guidance on HTTP 402 max_users without clearing saved inventory.

Add the Cloud Companion user guide (docs/CLOUD_COMPANION.md and frontend-modern/public/docs/CLOUD_COMPANION.md), register it under cloudCompanion.guides in featureReleases.json so stable builds hide it while preview and development builds serve it, link it from CloudCompanionPanel, and cover guide gating in unit and Playwright integration tests.

Contract-Neutral: Enforce the existing max_users HTTP 402 license gate on single-instance RBAC role updates and ship the preview-gated CLOUD_COMPANION.md documentation guide with no new routes, schemas, or subsystem contract boundaries.
2026-12-02 10:47:07 +00:00

4.5 KiB

Hosted Cloud Companion

Hosted Cloud Companion adds two external safety nets to a self-hosted Pulse instance without moving your monitoring data to the cloud:

  1. Off-site dead-man watchdog: sends an alert from outside your network if your Pulse server, power, or ISP goes down longer than your chosen grace window, and sends a recovery notice when the connection returns.
  2. Zero-config browser remote access: opens your Pulse dashboard in any browser over HTTPS without opening inbound router ports, setting up dynamic DNS, or running a VPN.

Open it from Settings > Cloud Companion when your build includes the Cloud Companion preview.

Why off-site alerting matters

A self-hosted monitor cannot alert you when the server running it loses power, freezes, or loses its internet connection. Cloud Companion solves that failure domain by watching your Pulse server's outbound tunnel from an independent hosted relay (relay.pulserelay.pro).

How it works and what stays local

Your Pulse server keeps all metrics, logs, alerts, and credentials on your own machine. Cloud Companion opens a single outbound TLS connection from Pulse to the hosted relay:

  • No inbound firewall ports or port forwarding are required.
  • The relay tracks only whether your outbound tunnel is online, your configured grace window, and your off-site webhook destination so it can fire an outage alert when your server stops checking in.
  • Stored webhook URLs are write-only in the UI. After saving, Pulse displays only the destination hostname so webhook tokens and secrets are never sent back to the browser.
  • The hosted relay never stores your infrastructure metrics, guest inventories, or Pulse passwords.

Set up the off-site dead-man watchdog

  1. Go to Settings > Cloud Companion.
  2. Turn on Enable off-site outage watchdog.
  3. Choose an Offline grace window (1 minute, 2 minutes, 5 minutes, 10 minutes, or 15 minutes). Five minutes is a good default to avoid false alarms during quick router reboots or Pulse upgrades.
  4. Choose a Webhook payload format that matches your notification tool:
    • ntfy: enter your topic URL (for example https://ntfy.sh/your-private-topic or your own HTTPS ntfy server).
    • Discord: paste a Discord channel webhook URL (https://discord.com/api/webhooks/...).
    • Slack: paste a Slack incoming webhook URL (https://hooks.slack.com/services/...).
    • Generic JSON: paste any public HTTPS endpoint that accepts JSON POST payloads.
  5. Enter an Instance label (for example Homelab PVE or Office Cluster) so alerts identify which site went offline.
  6. Click Save Cloud Companion settings, then click Send off-site test alert to verify delivery from the hosted relay.

Webhook security rules

The hosted relay enforces strict outbound destination checks:

  • Only public https:// URLs are accepted.
  • Plain http://, localhost, loopback, link-local, and private LAN IP targets are blocked.
  • Redirects to non-public or non-HTTPS addresses are rejected.

Use zero-config browser remote access

Browser remote access is off by default and requires explicit opt-in:

  1. In Settings > Cloud Companion, turn on Allow authenticated browser remote access and click Save Cloud Companion settings.
  2. Click Generate remote access link to mint a time-limited one-time link.
  3. Open that link on your phone or remote laptop. The relay exchanges the one-time token for an HttpOnly secure session cookie scoped to your instance, and Pulse still enforces your normal Pulse login on top of the relay session.
  4. Click Revoke active link at any time to invalidate the active link and end remote relay browser sessions immediately.

Plan availability

Individual homelab monitoring in Pulse stays free with no host or container limits. Hosted Cloud Companion uses dedicated off-site relay infrastructure and is included with Pulse Pro and Pulse Business licenses.

Troubleshooting

  • Status shows Waiting for relay connection: confirm your Pulse host can reach https://relay.pulserelay.pro over outbound TCP port 443 and that no egress firewall or TLS-intercepting proxy blocks WebSocket upgrades.
  • Test alert fails: verify the webhook URL uses https:// on a publicly reachable host and check the Last delivery error line in the status card.
  • Remote access link returns 403: the link has expired, was already exchanged on another device, was revoked, or browser remote access is turned off. Generate a fresh link from Settings > Cloud Companion.