mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
Show the typed-helper and legacy sudo/socket boundaries before production operators choose a host agent. Keep opt-in support limits, reduced container telemetry and explicit profile migration distinct from updates and diagnostics. Contract-Neutral: Documentation-only profile selection and consuming guide tests; installer authority, defaults and telemetry contracts are unchanged. Change-source: pulse-maintainer
278 lines
16 KiB
Markdown
278 lines
16 KiB
Markdown
# Production Deployment and Security
|
|
|
|
This guide answers the questions that matter before connecting Pulse to a
|
|
production or multi-cluster estate: whether it needs root, what it can change,
|
|
what it scans, how credentials and updates are handled, what Community includes,
|
|
and what scale has actually been tested.
|
|
|
|
The short version is: **start with API-only monitoring and add privileged agents
|
|
only where the extra telemetry is worth the additional trust**. Pulse does not
|
|
require an agent on every Proxmox host to monitor normal cluster inventory,
|
|
utilization, storage, guests, and status.
|
|
|
|
## Choose the least-privileged collection path
|
|
|
|
| Collection path and coverage | Privilege boundary |
|
|
| --- | --- |
|
|
| **Proxmox API only:** PVE, PBS, and PMG inventory; node and guest state; storage usage; and normal API metrics | No Pulse software runs on the Proxmox host. Use a dedicated read-only or narrowly scoped API token. |
|
|
| **Proxmox API plus host agent:** API coverage plus host-local telemetry; the available readings depend on the chosen agent profile | The full-telemetry Linux agent runs as `root` by default. Compare the [Linux agent profiles](#choose-a-linux-agent-profile) before granting host access. |
|
|
| **Guest-local agent:** Host metrics and optional Docker/Podman inventory inside a VM or LXC | The agent is trusted inside that guest only; it does not grant Pulse access to the hypervisor. |
|
|
|
|
For most Proxmox installations, begin with **Settings → Infrastructure**
|
|
(**Add infrastructure**). Add a host agent only after identifying a metric that
|
|
the Proxmox API cannot provide. The complete capability matrix is in
|
|
[Agent Security](AGENT_SECURITY.md#proxmox-deployment-choices).
|
|
|
|
**API-only does not mean no guest-agent commands.** Pulse can request VM
|
|
filesystem and memory readings through Proxmox's QEMU Guest Agent API without a
|
|
Pulse agent installed. Those reads share the channel used by freeze-enabled
|
|
backups. For an affected installation, follow the
|
|
[backup safety precaution](VM_DISK_MONITORING.md#backup-safety), including the
|
|
actual Pulse server and automatic updaters; stopping only a Pulse agent is not
|
|
enough. An OK backup task does not prove guest thaw or application recovery.
|
|
Do not run a backup or guest-agent probe just to test the monitoring setup.
|
|
|
|
Generated Proxmox API setup uses a separate `pulse-monitor` account and token
|
|
with monitoring ACLs. Review the generated script before running it, especially
|
|
if your organization maintains its own Proxmox roles. Do not reuse an
|
|
administrator's interactive account or a token that has unrelated write
|
|
permissions.
|
|
|
|
## What trusting a root agent means
|
|
|
|
Pulse's Linux/systemd agent runs as `root` by default because SMART devices,
|
|
temperature sensors, Docker or Podman sockets, host-local storage state, and
|
|
some platform integrations require root or equivalent access. That is a real
|
|
security boundary, not a cosmetic implementation detail.
|
|
|
|
The fresh-install posture limits that boundary:
|
|
|
|
- the service is marked `monitoring-only`, remote configuration cannot promote
|
|
it, and its credential omits `agent:exec`;
|
|
- the health and Prometheus listener binds to `127.0.0.1:9191` by default;
|
|
- generated systemd units apply service hardening including
|
|
`NoNewPrivileges=true`, private temporary storage, and kernel/control-group
|
|
write protection;
|
|
- an agent reports to one authoritative Pulse server; additional observer
|
|
connections are report-only;
|
|
- Proxmox guest Docker inventory through `pct exec` is disabled by default and
|
|
requires an explicit server setting.
|
|
|
|
The **Allow Pulse to run commands on this host** install option (the combined command
|
|
profile) is a separate trust decision.
|
|
It marks the root collector command-capable and gives its credential execution
|
|
scope so the same process can accept governed server requests. Existing
|
|
unmarked installations remain in a visible `legacy` compatibility state during
|
|
the migration. Agent Doctor reports both local authority and credential scope
|
|
so an over-scoped monitoring install is not mistaken for a safe default.
|
|
|
|
### Choose a Linux agent profile
|
|
|
|
If API data is sufficient, keep API-only monitoring: it needs no host agent.
|
|
For standard Linux systemd hosts that need local readings, there are **two
|
|
different least-privilege profiles**, not one interchangeable set of flags:
|
|
|
|
- **Typed-helper profile — `--least-privilege --enable-privileged-helper`.**
|
|
The networked collector runs as `pulse-agent`, with root-owned binaries and
|
|
no membership in the rootful Docker group. A separate root helper, isolated
|
|
from the host network, handles bounded SMART, LXC filesystem and container
|
|
summary reads, and signed collector-update transactions. This reduces the
|
|
collector's authority; it does not remove all root code. Do not combine it
|
|
with `--grant-smart` or `--grant-pct`, or remove the helper's `PrivateNetwork`
|
|
isolation to recover a missing reading.
|
|
- **Legacy compatibility profile — `--least-privilege` alone.** The collector
|
|
uses a non-root service account, but can join the `docker` group when Docker
|
|
monitoring is enabled. Access to a rootful Docker socket is root-equivalent;
|
|
a non-root username alone does not establish isolation. Optional
|
|
`--grant-smart` and `--grant-pct` use scoped sudo wrappers, not the typed
|
|
helper. An active sudo grant sets `NoNewPrivileges=false`; without those
|
|
grants it stays enabled. These are deliberate privilege trade-offs, not
|
|
fixes to apply automatically when telemetry is missing.
|
|
|
|
The typed-helper profile is **opt-in, not the default or full-telemetry parity**.
|
|
For rootful Docker or Podman it supplies container summaries, not container
|
|
stats, image-update checks or lifecycle actions. Full container monitoring
|
|
needs a supported collector-owned rootless socket; do not substitute a rootful
|
|
socket to fill the gap. The collector cannot enable the combined command
|
|
profile. A separately enabled action runner has its own credential and trust
|
|
boundary; choosing the helper does not enable it.
|
|
|
|
Both least-privilege choices are limited to standard Linux systemd hosts, not
|
|
NAS appliances or non-systemd platforms; an unsupported-profile refusal is not
|
|
a reason to bypass the installer. Check the
|
|
[profile details](AGENT_SECURITY.md#least-privilege-agent-profile) and
|
|
[support and qualification limits](AGENT_SECURITY.md#safe-profile-support-and-qualification-matrix)
|
|
against the version you intend to install. Ordinary `--update` preserves the
|
|
installed profile; it does not migrate a root collector to the typed helper.
|
|
Changing profile is a separate planned operation, not a diagnostic step.
|
|
|
|
See [Agent Security](AGENT_SECURITY.md) for the precise command, guest-access,
|
|
update, and service-hardening boundaries.
|
|
|
|
## Discovery and network access
|
|
|
|
Network discovery is **disabled by default** (`DISCOVERY_ENABLED=false`). Pulse
|
|
does not need discovery once you have configured known platform connections.
|
|
|
|
When enabled, discovery probes Proxmox service ports `8006` and `8007` across
|
|
the selected address range. It does not perform a general all-port scan. The
|
|
scan is bounded by configurable subnet allowlists and blocklists, a default
|
|
maximum of 1,024 hosts per run, 50 concurrent probes, and one- and two-second
|
|
dial and HTTP timeouts. In a fixed production inventory, leave it off. If you
|
|
do use it, set an explicit allowlist rather than relying on automatic subnet
|
|
selection.
|
|
|
|
Normal network paths are:
|
|
|
|
- Pulse server → Proxmox API over HTTPS;
|
|
- agent → Pulse server for enrollment, reports, configuration, and updates;
|
|
- browser → Pulse web UI/API, preferably through HTTPS or a trusted reverse
|
|
proxy.
|
|
|
|
For agents crossing an untrusted network, use HTTPS and consider the
|
|
[split-port agent ingest](CONFIGURATION.md#split-port-agent-ingest-network-isolation)
|
|
mode so the agent control plane can be firewalled separately from the web UI
|
|
and management API.
|
|
|
|
## Credentials, authentication, and data
|
|
|
|
- Complete the bootstrap-token flow and keep authentication enabled. Do not
|
|
expose an unfinished first-run setup to an untrusted network.
|
|
- Pulse encrypts stored platform credentials with AES-256-GCM. Back up the
|
|
encryption key with the data directory; without it, encrypted configuration
|
|
cannot be recovered.
|
|
- Use a separate API token for each platform or trust boundary. Grant only the
|
|
permissions Pulse needs, and rotate a token before revoking the credential
|
|
currently used by a live connection or agent.
|
|
- Do not put host SSH private keys in a Pulse Docker or LXC container. Pulse
|
|
logs a security warning when it collects temperatures over SSH from a
|
|
container but still uses the key; use API-only monitoring or a host-local
|
|
agent instead.
|
|
- Restrict the Pulse data directory and backups as secrets. They contain
|
|
encrypted credentials as well as sessions, API-token state, and the key
|
|
material needed by the installation.
|
|
|
|
The canonical disclosure, reporting process, and hardening checklist are in
|
|
the [Security Policy](../SECURITY.md). Data and optional telemetry behavior are
|
|
covered in [Privacy](PRIVACY.md).
|
|
|
|
## Installation and update integrity
|
|
|
|
For a controlled production installation:
|
|
|
|
1. Record the current server version, edition and deployment configuration.
|
|
Choose an exact target release rather than `latest`, and retain a consistent
|
|
private backup of the actual data, matching keys and any external stores.
|
|
See [update and rollback boundaries](DEPLOYMENT_MODELS.md#updates-by-model):
|
|
replacing a binary or image does not reverse data migrations.
|
|
2. Obtain the correct server edition. **Public GitHub release archives and the
|
|
public Docker image are Community builds**, even with an activation key.
|
|
Paid Pro, continuing Relay and legacy customers must use their private Pro
|
|
image or archive from the [existing download route](INSTALL.md). Do not
|
|
replace an installed paid runtime with a public build during an update.
|
|
3. For a Community server installation, download `install.sh` and
|
|
`install.sh.sshsig` from the exact release. Verify the installer with the
|
|
published Ed25519 installer key and the `pulse-install` namespace before
|
|
running it with that same pinned version. Follow the edition-appropriate
|
|
[installation instructions](INSTALL.md), not a substitute installer.
|
|
4. Install or upgrade agents with the per-host command shown by your own Pulse
|
|
server under **Settings → Infrastructure → Install on a host**.
|
|
|
|
The agent update path requires a server-provided SHA-256 checksum. Release
|
|
builds with embedded trusted update keys also require a valid Ed25519 signature
|
|
before replacing the running binary, then validate the executable and run its
|
|
self-test before the atomic swap.
|
|
|
|
Piping any network-fetched shell script into a root shell grants that script
|
|
root at that moment. The signature-verified, version-pinned flow exists so you
|
|
can verify the installer before execution. See [Installation](INSTALL.md) and
|
|
[Agent Security](AGENT_SECURITY.md#supply-chain-boundary) for the commands and
|
|
the documented v5-to-v6 first-update limitation.
|
|
|
|
## Community and Pro boundaries
|
|
|
|
Current self-hosted plans do not sell monitoring capacity by node, VM,
|
|
container, or other child-resource volume. Community includes core self-hosted
|
|
monitoring and seven days of metric history. Pro adds 90-day history, Patrol
|
|
investigation and governed fixes, RBAC, audit logging, reporting and centralized
|
|
agent profiles. SSO is included with Community and higher tiers.
|
|
|
|
**Relay is no longer sold. Pulse Mobile and Relay retire on 31 March 2027.**
|
|
Existing paired phones keep working until then; continuing Relay subscribers
|
|
receive Pro features at their current price for as long as their subscription
|
|
continues, including after the app retires. Relay connects the app, **not the
|
|
web UI**. Use your own VPN or tunnel for remote web access. For alerts on your
|
|
phone afterwards, add an ntfy, Gotify or Pushover destination under **Alerts**
|
|
and open Pulse in your phone's browser. See [Relay / Pulse Mobile](RELAY.md)
|
|
for existing pairing and security details; do not plan a new deployment around
|
|
the retiring app.
|
|
|
|
That means an estate with 50 Proxmox hosts does not need Pro merely to add the
|
|
fiftieth host. Review the current [Plans and Entitlements](PULSE_PRO.md) for the
|
|
runtime-aligned feature boundary.
|
|
|
|
## What the scale evidence proves
|
|
|
|
Pulse has repeatable automated performance coverage for a simulated 500-node
|
|
Proxmox estate. The API load suite builds 500 nodes plus 2,500 VMs (3,000
|
|
resources) and exercises concurrent resource, metrics-history, dashboard, and
|
|
mixed-endpoint workloads. The metrics-store suite separately exercises 500
|
|
nodes, 2,000 metric series, concurrent dashboard readers, continuous writes,
|
|
rollups, retention, and query-latency budgets.
|
|
|
|
Those tests are regression evidence, not a blanket certification of every
|
|
500-node topology. Real capacity also depends on guest count, polling interval,
|
|
history retention, storage latency, enabled integrations, alert rules, and the
|
|
resources assigned to Pulse. A 50-host operator should still stage the rollout
|
|
and measure their own workload.
|
|
|
|
## Production rollout checklist
|
|
|
|
- [ ] Put Pulse on a dedicated VM, container, Kubernetes deployment, or host
|
|
with durable storage and tested backups.
|
|
- [ ] Pin and verify the server release before installation.
|
|
- [ ] Preserve the server edition, matching keys and deployment configuration
|
|
when updating; a public Community build does not supply the private Pro runtime.
|
|
- [ ] Enable HTTPS and restrict web/API access at the firewall or reverse
|
|
proxy.
|
|
- [ ] Start with a dedicated Proxmox API token and no host agents.
|
|
- [ ] Leave discovery disabled, or constrain it to an explicit subnet
|
|
allowlist for a temporary discovery run.
|
|
- [ ] Confirm inventory, storage, backup, replication, and alert behavior on
|
|
one cluster before adding the rest.
|
|
- [ ] Add host agents only for needed local telemetry. Compare the
|
|
[agent profiles](#choose-a-linux-agent-profile), including Docker socket
|
|
authority and reduced telemetry, before choosing root or sudo grants. Keep
|
|
commands disabled unless there is a reviewed operational need.
|
|
- [ ] Check existing inventory and provider identity before adding another
|
|
cluster; matching node names or VMIDs do not establish the same resource.
|
|
See [multiple installations](CONFIGURATION.md#multiple-proxmox-installations).
|
|
- [ ] Exercise disruptive failure, upgrade and restore scenarios only on an
|
|
isolated non-production fixture with independent monitoring and a recovery
|
|
path. Do not induce node loss, a failed backup, a full disk or an alert storm
|
|
on live workloads as a rollout check. Normal Test notification success does
|
|
not establish ordinary, grouped or resolved alert delivery.
|
|
- [ ] For affected freeze-enabled Proxmox backups, follow the backup safety
|
|
precaution above. Keep monitoring paused until independent checks confirm
|
|
thaw, fresh successful writes to every covered filesystem and workload
|
|
liveness; restore only services and timers active before the pause. Arrange
|
|
independent outage coverage while Pulse monitoring and alerts are unavailable.
|
|
- [ ] Observe CPU, memory, database size, write rate, and dashboard latency
|
|
during normal staged operation. Keep measurement windows and resource limits
|
|
comparable; database size is not a write rate. Do not prune history or change
|
|
polling to hide a fault; use [performance guidance](TROUBLESHOOTING.md#excessive-cpu-writes-or-database-growth).
|
|
- [ ] Record the Pulse version, enabled integrations, privileges, exposed
|
|
ports, backup location, and rollback procedure in the site's runbook.
|
|
|
|
Pulse is intended to be the operational monitoring layer for the platforms it
|
|
supports. It is not a SIEM, a general log-ingestion platform, or a substitute
|
|
for an organization's incident escalation and change-control process.
|
|
|
|
## Independent review
|
|
|
|
Pulse does not currently claim an independent security certification. The
|
|
[Security Review Scope](SECURITY_REVIEW.md) maps the main trust
|
|
boundaries to source files, tests, reproducible baseline commands, and the
|
|
private disclosure channel so external reviewers can evaluate concrete
|
|
behavior rather than marketing claims.
|