mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 01:08:56 +01:00
The legacy grant-pct path deliberately permits only list and df outside the typed helper. Keep that distinction instead of calling every fallback a full-trust collector, and describe configured mounts rather than promising every mounted filesystem. Contract-Neutral: Guidance wording only; no telemetry, privilege, API, installer or availability contract delta. Change-source: pulse-maintainer
526 lines
40 KiB
Markdown
526 lines
40 KiB
Markdown
# Agent Security
|
|
|
|
Pulse agents incorporate several security mechanisms to ensure that the code running on your infrastructure is authentic and untampered with.
|
|
|
|
**Start with the least privilege that answers your monitoring question.** For
|
|
Proxmox VE, PBS, and PMG, that is usually no agent at all: API-only monitoring
|
|
with a read-only token covers inventory, status, and metrics, and the
|
|
generated setup script creates a privilege-separated monitoring token for it
|
|
(see [Proxmox Deployment Choices](#proxmox-deployment-choices)). Install a
|
|
host agent only where you want data the platform API cannot provide, and on
|
|
Linux consider the supported
|
|
[least-privilege profile](#least-privilege-agent-profile) before the root
|
|
default.
|
|
|
|
## Agent Privilege Model
|
|
|
|
Pulse's Linux/systemd installer runs the unified agent as `root` by default.
|
|
That is intentional for full host telemetry: disk SMART data, mdadm/RAID state,
|
|
temperature sensors, Docker or Podman socket reads, Proxmox host-local details
|
|
that are not available through the API, and some NAS/platform integrations
|
|
commonly require root or equivalent local privileges. On Linux/systemd hosts,
|
|
the supported alternative is the least-privilege profile documented below; it
|
|
trades the root-only collectors it has not been granted for a dedicated
|
|
non-root service user.
|
|
|
|
Treat a host agent like other infrastructure monitoring software with local
|
|
root read access:
|
|
|
|
- install it only on hosts you trust Pulse to monitor;
|
|
- keep the agent token scoped to that Pulse server;
|
|
- keep the local command-authority profile `monitoring-only` unless you
|
|
explicitly accept the transitional combined command runtime;
|
|
- update from signed release assets rather than arbitrary branch snapshots.
|
|
|
|
The agent is primarily an outbound reporter to your Pulse server. By default it
|
|
binds the health and Prometheus endpoints to `127.0.0.1:9191`, so a root agent
|
|
does not expose that HTTP surface to the network unless you explicitly opt in.
|
|
Set `--health-addr :9191` only when you intentionally scrape the agent from
|
|
another host. Use `--health-addr ""` or `PULSE_HEALTH_ADDR=off` to disable the
|
|
listener.
|
|
|
|
Generated Linux/systemd units also include conservative sandboxing such as
|
|
`NoNewPrivileges=true`, `PrivateTmp=true`, kernel/control-group write
|
|
protection, a private umask, and setuid/personality restrictions. Those
|
|
directives reduce service blast radius while keeping the filesystem and device
|
|
access needed for full host telemetry, Proxmox token setup, SMART, Docker, and
|
|
NAS integrations.
|
|
|
|
Disk monitoring normally filters pseudo-filesystems such as `tmpfs`. The local
|
|
`--disk-include` option can opt a specific device or mount point back into
|
|
capacity monitoring, for example a log2ram `/var/log` mount. This reports
|
|
filesystem capacity and usage metadata. It does not read or transmit file
|
|
contents. Local `--disk-exclude` rules still take precedence.
|
|
|
|
Fresh installs use a local `monitoring-only` command-authority ceiling and a
|
|
credential without `agent:exec`. Remote configuration cannot promote that
|
|
service. Selecting the advanced legacy combined command profile at install time
|
|
adds `--enable-commands`, records `command-capable`, and issues an execution-
|
|
scoped credential. The root monitoring process can then also accept server
|
|
command requests through the existing policy and approval surfaces. Existing
|
|
unmarked services upgrade as `legacy` during the migration window so upgrades
|
|
do not silently revoke an operator's prior command choice. Agent Doctor shows
|
|
the process privilege, local authority ceiling, and credential execution scope
|
|
separately and warns about mismatches.
|
|
|
|
Custom numeric sensors are a separate, local configuration boundary. Enabling
|
|
them with `--custom-sensors-file` does not enable remote commands and
|
|
`--enable-commands` is not required. The server cannot add or alter a custom
|
|
sensor command. The agent accepts only absolute executable paths with no
|
|
arguments or shell interpretation, bounds concurrency, time, and output, and
|
|
revalidates the command before every run. On POSIX systems the configuration,
|
|
commands, and immediate command directories must pass ownership, symlink, and
|
|
write-permission checks. Treat the configured executables as trusted agent
|
|
code: the service commonly runs as root, so only administrators should be able
|
|
to replace them.
|
|
|
|
Agent command tokens must be bound to a host or agent identity before command
|
|
registration is accepted. Pulse-minted install-command tokens for the generic
|
|
host and Proxmox flows are the only first-use exception: because the server
|
|
mints them before the installer knows the final hostname, Pulse binds them to
|
|
the first command agent that registers with that token. Those tokens also carry
|
|
the operator's command-policy choice into the first accepted report so a stale
|
|
policy from an earlier installation cannot immediately disable the replacement
|
|
agent. Generic unbound `agent:exec` tokens still fail closed.
|
|
|
|
## Proxmox Deployment Choices
|
|
|
|
You do not need a Pulse agent on every Proxmox-related host just to see basic
|
|
cluster inventory and utilization. Start with the least-privilege path that
|
|
answers your monitoring question:
|
|
|
|
**API-only does not mean guest-agent-free.** VM guest filesystem and memory
|
|
collection can still send active requests on the channel used by freeze-enabled
|
|
backups. Read permissions and the absence of a host agent do not prove backup
|
|
safety. For an affected installation, follow the
|
|
[backup safety precaution](VM_DISK_MONITORING.md#backup-safety), including the
|
|
monitoring/alert outage while Pulse is stopped; do not add permissions or send
|
|
manual probes during a freeze or thaw.
|
|
|
|
| Goal | Recommended path | Host privilege needed? |
|
|
|---|---|---|
|
|
| PVE/PBS/PMG inventory, node status, VM/container status, storage usage, and normal Proxmox API metrics | Add the Proxmox connection with a read-only or narrowly scoped API token | No |
|
|
| VM guest disk and memory details through QEMU Guest Agent | Use Proxmox API permissions such as `VM.GuestAgent.Audit` and `VM.GuestAgent.FileRead` where supported | No host agent for the Proxmox node |
|
|
| Configured LXC filesystem capacities and usage | Install the Unified Agent on the owning PVE node; the safe profile uses [socket-free discovery and bounded mount probes](#proxmox-lxc-filesystem-readings-with-the-typed-helper) | Yes, but the safe profile confines it to the root helper rather than a root collector |
|
|
| Docker/Podman containers inside a VM or LXC through guest-local reporting | Install the agent inside that VM/LXC with Docker/Podman monitoring enabled, or use another explicit guest access/reporting path | Requires runtime-socket access: root-equivalent for a rootful daemon, or a collector-owned rootless socket |
|
|
| Docker containers inside an LXC from a Proxmox host agent | Turn on **Discover Docker in LXC guests** in Settings → System → General (admin only), or start Pulse with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` to lock it on; optionally limit guests with `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102` | Requires a root/equivalent Pulse agent on the Proxmox node and explicit server opt-in |
|
|
| Host SMART, temperatures, local ZFS/Ceph/mdadm detail, arbitrary mount reads, and full host telemetry | Install the agent on that host | Varies: the safe typed helper covers SMART; capabilities outside the matrix still require the explicit root/full-telemetry profile |
|
|
| Kubernetes node/pod monitoring from a cluster | Use the Kubernetes agent/DaemonSet profile | Depends on whether host metrics are enabled |
|
|
|
|
Inside-guest runtime visibility is explicit. Installing the agent inside a VM or
|
|
LXC authorizes that guest-local agent to report Docker/Podman monitoring data
|
|
according to its local module flags. A Proxmox node agent does not look inside
|
|
LXCs by default. Its automatic LXC filesystem collector is a node-local
|
|
capacity query only. On cgroup v2 PVE hosts it finds running guests from the
|
|
node's container configs and cgroup state, reads each running guest's init
|
|
process ID and status from cgroup and `/proc`, and measures mount capacity with
|
|
statfs through `/proc/<pid>/root`. Root or explicitly `--grant-pct` collectors can fall back to
|
|
`pct list` and `pct df <vmid>` (with `lxc-info` where permitted) when discovery or a mount probe fails.
|
|
That command path is not usable inside the isolated typed helper; see
|
|
[helper-backed LXC readings](#proxmox-lxc-filesystem-readings-with-the-typed-helper). It reports
|
|
mount keys, volume labels, mount paths, and capacity/usage numbers. It does not
|
|
run a command inside the guest or read guest file contents, environment, or
|
|
container-runtime metadata. It skips guests reported stopped and bounds command
|
|
time, output, guest count, and disk count.
|
|
|
|
The node agent can collect Docker container inventory from LXC guests
|
|
through `pct exec`, but only after an explicit server-side opt-in: the
|
|
admin-only **Discover Docker in LXC guests** toggle in Settings → System →
|
|
General, or starting the server with
|
|
`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` (which locks the toggle).
|
|
Inventory collection is disabled by default, can be VMID-allowlisted, and is
|
|
limited to the Docker page summary path: Docker host/runtime version, container
|
|
ID, name, image, state/status, ports, and aggregate `docker stats` counters.
|
|
It does not run `docker inspect` and does not collect guest environment values,
|
|
mount sources, container commands, files, or process details. The lighter
|
|
socket-presence hint remains separately available through
|
|
`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION=true`.
|
|
|
|
For VMs, a Proxmox host agent still cannot see Docker/Podman inventory without
|
|
guest cooperation such as a guest-local Pulse agent, QEMU guest-agent mediated
|
|
integration, SSH, or an explicitly exposed Docker/Podman reporting endpoint.
|
|
|
|
If Proxmox API data is enough for your use case, prefer API-only monitoring and
|
|
do not install a host agent just because the installer exists. Install agents
|
|
where you need data that Proxmox cannot provide through its API, or where the
|
|
data lives inside a guest/container rather than at the Proxmox node layer.
|
|
The Settings Proxmox setup flow uses this API inventory path as the default;
|
|
the host telemetry agent path is for the full-telemetry cases above.
|
|
Generated API Inventory setup still needs a one-time privileged shell on the
|
|
Proxmox host so it can create the `pulse-monitor` account, token, and ACLs, but
|
|
steady-state monitoring uses the Proxmox API rather than a root Pulse agent.
|
|
For PVE, the generated script creates a privilege-separated API token and
|
|
mirrors the generated read/monitoring ACLs onto both the service user and the
|
|
token. For PBS, the generated script grants the `Audit` ACL to both the service
|
|
user and token.
|
|
|
|
## Least-Privilege Agent Profile
|
|
|
|
For a standard Linux systemd host, the stronger opt-in profile is:
|
|
|
|
```bash
|
|
install.sh --least-privilege --enable-privileged-helper ...
|
|
```
|
|
|
|
This profile keeps the networked collector unprivileged and keeps both the
|
|
collector and helper binaries root-owned. Its installer token lives under the
|
|
root-owned `/etc/pulse-agent` directory with `root:pulse-agent` group-read
|
|
access; mutable identity, buffering, and enrolled monitoring-token state remain
|
|
under the collector-owned state directory. The collector is not added to the
|
|
rootful Docker group and cannot enable command execution. Automatic binary
|
|
replacement uses a separate typed transaction: the collector downloads and
|
|
self-tests a signed artifact inside its fixed quarantine, while the helper
|
|
revalidates ownership, digest, ELF shape, and signature before promoting it to
|
|
root-only staging and atomically activating it. A failed process restart asks
|
|
the helper to restore the identity-bound last-known-good binary; there is no
|
|
collector-writable direct-replacement fallback.
|
|
|
|
Exceptional telemetry crosses `/run/pulse-agent/helper.sock` to a separate
|
|
root process. The socket admits only the `pulse-agent` UID, and the helper has
|
|
no Pulse URL or API token and runs in a private network namespace rather than
|
|
the host network namespace. Its protocol exposes bounded,
|
|
versioned SMART, Proxmox LXC filesystem, and fixed-endpoint container summary
|
|
snapshots, not a shell, executable path, device path, VMID, daemon endpoint,
|
|
environment, or caller-selected arguments. The helper
|
|
service keeps `PrivateNetwork=true`, `RestrictAddressFamilies=AF_UNIX`,
|
|
`NoNewPrivileges=true`, `ProtectSystem=strict`, and `ProtectHome=true`.
|
|
The private network remains required on every architecture. In particular,
|
|
systemd does not enforce `RestrictAddressFamilies` on native 32-bit x86;
|
|
`SystemCallArchitectures=native` does not change that. The address-family
|
|
property is not, by itself, proof that IP socket creation is denied. Do not
|
|
remove `PrivateNetwork` to work around a telemetry failure.
|
|
It also bounds the helper cgroup to `TasksMax=64`, `LimitNOFILE=256`, and
|
|
`MemoryMax=256M`. These limits leave headroom for the typed helper and its
|
|
short-lived platform tools while preventing an overridden or malformed request
|
|
from consuming unbounded process, descriptor, or memory resources.
|
|
`PrivateDevices` is intentionally not enabled because SMART needs the host
|
|
block devices. If the helper is missing, incompatible, or rejects a request,
|
|
only the affected telemetry disappears; the collector does not fall back to
|
|
sudo, root, or a broader local command path.
|
|
|
|
The installer treats the effective systemd configuration as part of the safe
|
|
profile boundary. The collector, helper service, helper socket, and an
|
|
installed action runner must load from the installer-owned `FragmentPath` with
|
|
no `DropInPaths`. Their effective executable, identity, environment-file,
|
|
address-family, network, and filesystem-hardening properties must match the
|
|
rendered profile. A healthy socket or process cannot override that check.
|
|
Qualification of helper network isolation is deliberately narrower than a
|
|
claim about every Linux network path: the guarded systemd lab must first reach
|
|
a TCP canary on a non-loopback host interface from the host namespace, then
|
|
show that a process entered into the live helper's network namespace cannot
|
|
connect to the same canary. That proves the exercised helper namespace cannot
|
|
reach that host-interface endpoint. It does not by itself qualify every Linux
|
|
distribution, firewall configuration, or future systemd version.
|
|
|
|
The committed schema-v5 qualification contract remains immutable at its
|
|
original ordered fifteen scenarios. The effective-unit, bounded-resource, and network-isolation
|
|
requirements use a separate schema-v6 receipt and source manifest, so earlier
|
|
evidence is not silently reinterpreted. A schema-v6 local lab remains
|
|
committed-main, artifact-bound self-attestation. Release-candidate
|
|
classification additionally requires the canonical remote RC tag and commit,
|
|
an immutable signed GitHub Release packet, release-attested checksums, trusted
|
|
hosted-builder SLSA provenance, and a signed build contract that binds every
|
|
qualification artifact to its package, toolchain, exact build settings and
|
|
ldflags, version, production update-key fingerprint, and release checksum.
|
|
The release workflow now builds that four-version Linux amd64 qualification
|
|
set on a separate GitHub-hosted compiler job, verifies the current collector,
|
|
helper, and runner against the ordinary release bytes, publishes compiler
|
|
provenance and the signed build contract, and automatically runs the guarded
|
|
systemd lab after an immutable prerelease is published. No release candidate
|
|
containing this wiring has been published yet, so current evidence remains
|
|
committed-main proof; a local tag or VCS-stamped lab binary still cannot
|
|
upgrade it to RC status.
|
|
|
|
The typed-helper profile cannot be combined with `--grant-smart` or
|
|
`--grant-pct`. The collector never joins the rootful Docker group. When no
|
|
collector-owned rootless socket is available, the helper preserves only
|
|
container ID/name/image/state/status/creation summaries; reports identify this
|
|
as `collectionMode: typed-helper-summary`. Stats, images, volumes, networks,
|
|
storage, Swarm, registry update checks, and lifecycle actions remain unavailable.
|
|
A separately scoped rootless runtime socket is required for full collection.
|
|
The profile is
|
|
currently explicit rather than the installer default. Its inspect, apply, and
|
|
rollback transaction is implemented for Linux systemd. The guarded Ubuntu
|
|
systemd qualification now exercises live migration plus helper-backed update
|
|
staging, activation, authoritative-report commit, watchdog rollback, interrupted
|
|
restart recovery, and last-known-good restoration. Representative physical and
|
|
provider hosts, container-runtime parity, appliance qualification, exact release
|
|
artifacts, and external review are still required before the profile can become
|
|
the general default.
|
|
|
|
Least-privilege installs keep mutable telemetry state under the collector
|
|
account, but keep installer lifecycle authority separate under
|
|
`/etc/pulse-agent`: the saved connection record is root-owned and private, and
|
|
the offline installer is root-owned, non-writable by the collector, and checked
|
|
against its adjacent root-owned SHA-256 record before it can recover uninstall
|
|
state. Collector-owned `agent-id` input is read through a bounded no-follow
|
|
descriptor path. Uninstall only recursively removes a state directory when an
|
|
explicit, platform-selected, or protected lifecycle record authorizes that
|
|
exact path; otherwise it leaves the directory for manual repair.
|
|
For a streamed install, the offline copy is downloaded only by the root-trusted
|
|
lifecycle client using the configured CA or exact certificate fingerprint,
|
|
with environment proxies and redirects disabled, and is persisted only after
|
|
its SSH signature passes the embedded release-key check. Credential-bearing
|
|
uninstall uses that same authenticated transport and keeps the local service,
|
|
credential, and recovery state when the server cannot durably confirm removal.
|
|
|
|
Exact-release qualification authenticates before it executes. The workflow
|
|
copies the six candidate binaries, four collector signatures, checksum
|
|
manifest, assembly and compiler provenance, and build contract into a private
|
|
snapshot. It verifies the immutable release identity, canonical source and tag,
|
|
hosted compiler chain, production update key, and every digest against those
|
|
copies. Only then does it make the binary snapshot executable and mount it
|
|
read-only into the privileged disposable systemd host. A failed or mutated
|
|
packet never reaches Docker. The post-run attester re-verifies those same
|
|
snapshot paths against the receipt. No qualifying RC containing this boundary
|
|
has been published yet.
|
|
|
|
### Proxmox LXC filesystem readings with the typed helper
|
|
|
|
The current helper can collect LXC filesystem readings **without `pct` or
|
|
`lxc-info` requests**. It reads the owning node's container configuration,
|
|
finds running guests and their init processes through cgroup v2 and `/proc`,
|
|
and measures configured mounts with the bounded filesystem prober. It does not
|
|
execute a command inside a guest, read guest file contents or accept a
|
|
caller-selected VMID or path.
|
|
|
|
Proxmox's `pct` and `lxc-info` commands use host-network-namespace Unix IPC.
|
|
Their fallback cannot recover a failed discovery or mount probe inside
|
|
`PrivateNetwork=true`. On a cgroup v1 host, or when a running guest's state
|
|
cannot be established, the helper can therefore report degraded or unavailable
|
|
inventory rather than a complete list. Independent SMART and API readings can
|
|
still work; a successful SMART reading does not establish LXC helper health.
|
|
|
|
Use the existing reading's status, age and collection path before treating
|
|
missing filesystems as missing guests. Keep the Pulse server, collector and
|
|
helper versions separate; a newer guide or collector alone does not establish
|
|
that the installed helper has this path. Older helper versions relying on
|
|
`pct` can fail even when SMART works. Prefer the existing Proxmox API connection
|
|
for the readings it already provides, without claiming it covers every mount.
|
|
Do not remove `PrivateNetwork`, add a unit override, enable a root/sudo
|
|
fallback, reinstall or restart anything merely to diagnose a missing reading.
|
|
Keep credentials and full service/configuration records private.
|
|
|
|
When an inventory succeeds only partly, operation v2 preserves the collected
|
|
rows and explicitly names omitted container IDs. The helper module stays
|
|
degraded, and omitted containers cannot refresh old filesystem readings.
|
|
Operation v1 remains complete-only; a newer collector uses it only when an
|
|
older helper explicitly rejects v2. An unavailable inventory is not an empty
|
|
healthy snapshot or zero disk usage. An installer-managed helper upgrade
|
|
restarts the verified helper after checking the effective isolated unit and
|
|
socket identity; a collector-only automatic update cannot replace its helper.
|
|
|
|
### Safe-profile support and qualification matrix
|
|
|
|
`Qualified` below means the named evidence exercised the behavior on a real
|
|
operating-system boundary. `Implemented, unqualified` means the closed code
|
|
path and focused regressions exist, but representative live-provider evidence
|
|
does not. `Unavailable` means the safe installer refuses or visibly degrades
|
|
that capability; it never falls back to a root collector, Docker group, sudo,
|
|
or generic command path.
|
|
|
|
| Platform or capability | Preferred boundary | Safe-profile behavior | Qualification and default implication | Residual owner and removal condition |
|
|
|---|---|---|---|---|
|
|
| Proxmox VE/PBS/PMG inventory, status, storage, and ordinary metrics | API-only connection with a narrowly scoped token; no host agent | No collector, helper, or runner authority is required for this data | Supported independently of the safe host-agent profile; it does not prove host-local SMART, LXC filesystem, or action parity | `agent-lifecycle`: keep API permissions and returned telemetry covered by provider tests |
|
|
| Standard Linux systemd host telemetry and collector update | Unprivileged `pulse-agent` plus the root-owned typed helper | Core `/proc`, filesystem, network, RAID, and hwmon telemetry stays in the collector; signed updates cross the fixed helper protocol and commit only after an authoritative report | **Qualified on disposable Ubuntu 24.04.4 arm64 at committed main `22fd662fb794f63efb9d3ca2158de73c4e07e1b8`** across the schema-v6 twenty-scenario run. It covers install, migration, explicit/automatic rollback, helper protocol and resource boundaries, effective-unit override rejection, reporting continuity, authoritative executable-digest commit, watchdog rollback, helper-restart recovery, and last-known-good restoration. It remains opt-in pending exact-RC reproduction, representative provider/appliance parity, and external review | `deployment-installability` and `security-privacy`: reproduce the same helper transaction from trusted release artifacts on representative hosts and accept the external boundary review |
|
|
| Linux SMART telemetry | `smart.snapshot` through the no-network helper; no caller-selected device or arguments | Implemented, unqualified on representative physical disks. Helper failure omits/degrades SMART only; the collector does not retry as root | Does not yet justify SMART parity or a default change | `agent-lifecycle`: record live SATA, SAS/controller, USB bridge, and NVMe evidence, including standby, permission failure, timeout, and partial-data cases |
|
|
| Proxmox node-local LXC filesystem telemetry | `proxmox.lxc_filesystems` through the no-network helper's [socket-free discovery and bounded mount probes](#proxmox-lxc-filesystem-readings-with-the-typed-helper). Failed discovery or probes remain degraded/unavailable; command fallback works only outside the helper, in a separately chosen root or `--grant-pct` profile | Implemented. Exercised on a disposable PVE 9.2.18 node under the helper unit's sandbox properties, with running unprivileged (rootfs plus a mount point) and privileged guests and a stopped one; readings matched `pct df`. This is one PVE version, with no timeout, output-bound, helper-loss, or live nested-namespace evidence. Helper failure omits/degrades this snapshot only | Does not yet justify Proxmox host-agent parity or a default change | `agent-lifecycle`: record timeout, output-bound, and helper-loss behavior across supported PVE versions |
|
|
| Rootful Docker or Podman inventory | No direct collector access to a root-equivalent daemon socket | Implemented as a typed-helper summary-only fallback. Migration preserves container ID/name/image/state/status/creation inventory and marks the report `typed-helper-summary`; stats, secondary inventories, update checks, and actions remain unavailable | The standalone rootless packet exercises live same-family rootful Docker and Podman helper fallback plus summary-inventory semantic parity during socket loss. It does not qualify the complete standalone rootful fresh-install, migration, restart, helper-loss/recovery, and bounds matrix. Full rootful parity remains an explicit default blocker; the legacy/root profile is not safe-profile evidence | `agent-lifecycle`: record the remaining standalone lifecycle matrix on representative rootful Docker and Podman and decide explicitly whether reduced telemetry is sufficient |
|
|
| Collector-owned rootless Docker or Podman | Direct access only to one usable runtime socket owned by the `pulse-agent` UID whose daemon also attests rootless mode | Qualified locally for the exact source-bound monitoring path. Discovery is deferred until the collector account exists and accepts exactly one readable/writable, non-symlink socket owned by that UID across Docker and Podman. Cross-user, root-owned, remote, unreadable, non-rootless-daemon, or ambiguous endpoints are rejected. An installer-owned exact pin survives daemon loss and update; the running collector can move between direct rootless monitoring and rootful typed-helper summary without regaining action authority | **Qualified on distinct disposable Ubuntu 24.04/systemd 255 arm64 hosts at commit `60041ad9e60c282c892f944e04f777b874991a5d`.** All eleven canonical scenarios passed for Docker and all eleven for Podman. Receipt SHA-256: `7a116d63ab0cd1560482165055f0a8c9158ce0a8333a27bd9e8256582a52dfb5`; local attestation SHA-256: `566279ecd7d7dfa89c92f24243e9fcd5ae3e295d4284bd559d4be42f1e83b3b5`. This is local opt-in artifact-bound self-attestation, not published-RC provenance, action/update qualification, external review, or authorization for a default change | `deployment-installability`: reproduce the exact packet from published release artifacts; separately qualify any desired rootless image-update/action surface; retain the opt-in default until the remaining provider, appliance, and review conditions pass |
|
|
| Separate runner package update and package-cache cleanup | Root-owned `pulse-agent-runner`, host-bound action credential, typed request, postcondition, and durable receipt | The schema-v6 committed-main systemd receipt records a real verified apt-cache mutation, stale-fingerprint refusal, replay, nonce-bound readiness, effective-unit override rejection, exact credential rotation, bodyless self-revocation, and collector/helper continuity. A separate production Router regression exercises HTTPS issuance, WSS admission, encrypted token persistence, failed-rotation rollback, exact socket invalidation, two server restarts, old-secret rejection, and durable self-revoke | Qualified for the exercised systemd fixture paths and focused production Router lifecycle. Focused installer tests also cover atomic pending cancellation and fail-closed credential retention. The evidence does not cover every runner operation, representative providers, or an exact release candidate | `agent-lifecycle` and `api-contracts`: reproduce the combined systemd and production Router path from trusted RC artifacts with representative package-update success/failure/cancellation evidence |
|
|
| Separate runner Proxmox guest and container lifecycle/update actions | Root-owned runner with closed typed protocols; never the monitoring collector | Implemented, unqualified on representative PVE and container-runtime targets. Focused protocol tests prove expired requests are not dispatched, timeout/caller abandonment sends one request-bound cancellation across every typed mutation family, and a canceled Proxmox mutation persists an indeterminate terminal receipt that survives runner reconnect and replays without a second mutation | This is local protocol/durability proof only: it makes no live-provider action-parity claim and does not change the default | `agent-lifecycle`: record target-bound success, stale-state refusal, provider-handoff cancellation, reconnect/replay, and independent postconditions on disposable real targets |
|
|
| Appliance, non-systemd, Windows, and macOS host-agent profiles | Platform API where sufficient; otherwise an explicitly named legacy/full-trust profile | **Unavailable for safe-profile apply.** The installer fails closed instead of silently installing a root-equivalent profile | Excluded from the Linux safe-profile claim | `deployment-installability`: land a platform-specific service, filesystem, update, helper, migration, rollback, and live-proof contract before marking that platform supported |
|
|
|
|
The current committed-main Linux evidence qualifies exact commit
|
|
`22fd662fb794f63efb9d3ca2158de73c4e07e1b8`. The schema-v6 attestation verifies
|
|
437 governed source files, clean exact-commit identities for six artifacts,
|
|
twenty ordered scenario claims, and a retained secret-free JSONL transcript
|
|
containing 117 events, including 97 command-output events. The receipt,
|
|
transcript, and attestation are recorded as
|
|
`secure-agent-runtime-systemd-receipt-v6-2026-08-31.json`,
|
|
`secure-agent-runtime-systemd-transcript-v6-2026-08-31.jsonl`, and
|
|
`secure-agent-runtime-committed-main-attestation-v6-2026-08-31.json`, with
|
|
SHA-256 digests
|
|
`498f14580b0c63a1d9e24ddd44dd32dfad96024a187330e9ede4c777cd5ab123`,
|
|
`29b51dbe7d393523e3b9f69284ec8b07b1ca6930e94822ce220fbd59fbcaa1e2`, and
|
|
`bbeb11b72f983953392ddea282c0ede336f4739156d35b72188de3f07b12cae2`.
|
|
The attester also proved that the qualified commit was reachable from the
|
|
fresh canonical `origin/main` value at attestation time. This remains
|
|
artifact-bound operator self-attestation, not an independently authenticated
|
|
external assessment or exact published-release exercise. A separate focused
|
|
regression covers the real Router's HTTPS, WSS, encrypted persistence,
|
|
restart, rotation, exact session closure, and self-revoke lifecycle at code
|
|
level. The foundation, v3, and v4 records remain historical. The safe profile
|
|
therefore remains opt-in.
|
|
|
|
Monitoring never implies remediation. On the supported Linux systemd profile,
|
|
an operator may separately enroll the typed action runner:
|
|
|
|
```bash
|
|
install.sh --least-privilege --enable-privileged-helper \
|
|
--enable-action-runner --action-token-file /root/pulse-runner.token ...
|
|
```
|
|
|
|
Create that token through the authenticated action-runner credential endpoint
|
|
for the exact monitored host; do not reuse the collector token. The installer
|
|
keeps the runner binary, service, credential, health record, and receipts
|
|
root-owned. Disabling or uninstalling the runner leaves monitoring active.
|
|
The safe runner accepts only versioned host update/storage-cleanup, Proxmox
|
|
guest lifecycle, and container lifecycle/update requests. Generic shell,
|
|
`exec`, unrestricted `read_file`, and deploy operations are rejected.
|
|
|
|
**Settings → Infrastructure → Agent Doctor** presents this boundary as
|
|
evidence, not an inferred security grade. The collector reports whether it is
|
|
root, its service user and local command-authority ceiling, and whether the
|
|
typed helper, SMART helper, and `pct` helper are configured. Pulse separately
|
|
joins the current tenant's token inventory and admitted command sessions to
|
|
show whether the collector credential is known and execution-scoped, whether
|
|
a host-bound runner credential is active, and whether a compatible
|
|
`action-runner` / `typed_actions.v1` session is actually connected. Missing
|
|
evidence remains unknown; collector health never proves remediation readiness.
|
|
Role-marked monitoring credentials are also checked against the complete
|
|
collector allowlist: `agent:report` and `agent:config:read` are mandatory, while
|
|
`docker:report` and `kubernetes:report` are the only optional provider scopes.
|
|
Any other scope is a critical credential-authority diagnostic.
|
|
|
|
Runner enrollment is one host at a time. The issuance request must resolve to
|
|
exactly one non-conflicted monitored agent ID and normalized hostname in the
|
|
current tenant. The returned secret is shown once and held only in the open
|
|
Agent Doctor page's memory; it is not written to browser storage, a URL, a
|
|
diagnostic report, or an installer command. The generated handoff first prompts
|
|
for the secret through `/dev/tty` into the root-owned
|
|
`/etc/pulse-agent-runner/token` file with mode `0600`, then passes only that
|
|
file path through `--action-token-file`. Issuing again rotates the credential
|
|
for that tenant/host binding: Pulse durably replaces the previous record as one
|
|
transaction and restores it if persistence fails. A successful rotation makes
|
|
the previous secret invalid, so complete the new token-file handoff before
|
|
expecting a disconnected runner to reconnect.
|
|
|
|
The existing combined collector command path remains available only as the
|
|
explicit legacy/full-trust migration profile. It is not part of the typed
|
|
helper/runner security claim and will remain until supported command-enabled
|
|
installs have a runner enrollment path and live action-session parity has been
|
|
qualified.
|
|
|
|
Safe-profile conversion is always deliberate:
|
|
|
|
```bash
|
|
install.sh --safe-profile-inspect ...
|
|
install.sh --safe-profile-apply ...
|
|
install.sh --safe-profile-rollback ...
|
|
```
|
|
|
|
Inspection makes no changes. Apply snapshots collector/helper files and
|
|
identity before switching profiles, and rollback restores that snapshot. The
|
|
separately installed action runner is not changed by either operation.
|
|
Inspection reports platform support, the current unit user and groups, ambient
|
|
capabilities, collector-binary owner and mode, enabled provider flags, helper
|
|
and collector-command state, independent runner presence, and the calculated
|
|
typed-helper target and degraded Docker/action differences. Apply is supported
|
|
only on reviewed standard Linux systemd hosts: it retains the monitoring token
|
|
and agent identity, lowers the collector to monitoring-only, removes legacy
|
|
sudo/Docker-group/ambient authority, requires collector health, helper socket
|
|
health, and declared server registration before commit, and automatically
|
|
restores the exact snapshot on failure. Ordinary `--update` preserves the
|
|
installed profile and never performs this migration.
|
|
|
|
The older `--least-privilege` profile without `--enable-privileged-helper`
|
|
remains available for compatibility. Its trade-offs are documented below.
|
|
|
|
On standard Linux systemd hosts, `install.sh --least-privilege` is a supported
|
|
alternative to the root profile. It runs the service as a dedicated
|
|
`pulse-agent` system user (nologin shell, owning only its state directory and
|
|
binary), joins the `docker` group when Docker monitoring is enabled so socket
|
|
reads keep working, and keeps every hardening directive of the root unit while
|
|
dropping the LXC-attach ambient capability grant entirely.
|
|
|
|
Two optional flags restore the collectors that genuinely need elevation, each
|
|
through an exact-command sudoers grant validated with `visudo` and a
|
|
root-owned wrapper the agent is pointed at via an absolute-path-only
|
|
environment override. Because `NoNewPrivileges` blocks `sudo` entirely, a
|
|
unit with an active grant sets `NoNewPrivileges=false` while keeping the
|
|
remaining hardening; a grantless least-privilege install keeps
|
|
`NoNewPrivileges=true`. Choose grants deliberately: each one is a scoped,
|
|
auditable widening of the profile.
|
|
|
|
- `--grant-smart` allows exactly `smartctl`, restoring SMART disk health.
|
|
- `--grant-pct` allows exactly `pct list` and `pct df`, restoring Proxmox LXC
|
|
filesystem capacity. The grant deliberately excludes `pct exec`, `start`,
|
|
`stop`, and `enter`, so guest Docker inventory stays a root-profile feature.
|
|
|
|
What the profile gives up: command execution (`--enable-commands` is refused
|
|
and a later server-side enable requires reinstalling the root profile),
|
|
`pct exec` guest Docker inventory, and any platform integration that needs
|
|
device or socket access you have not granted. Core metrics, mounts, `/proc`
|
|
RAID state, hwmon temperatures, and Docker socket reads work without root.
|
|
Ungranted collectors fail soft, and the agent reports its privilege profile so
|
|
**Settings → Infrastructure → Agent Doctor** shows the service user and active
|
|
helpers instead of presenting missing collectors as a fault. Appliance
|
|
platforms (TrueNAS, Synology, QNAP, Unraid) and non-systemd init systems keep
|
|
the root profile; the installer refuses `--least-privilege` there rather than
|
|
silently falling back to root.
|
|
|
|
`--update` preserves either installed least-privilege profile without the flags
|
|
being repeated. Uninstall removes the typed helper socket/service and its
|
|
installer credential directory, or the legacy sudoers file and wrappers; the
|
|
inert system user is left behind deliberately.
|
|
|
|
## Supply-Chain Boundary
|
|
|
|
The agent self-update path is not just "download the latest binary and run it".
|
|
Release builds require checksum validation, and when trusted update keys are
|
|
embedded they also require an Ed25519 release signature before replacing the
|
|
running binary.
|
|
|
|
The initial installer is different: if you paste and run a shell command as
|
|
root, you are granting root to that installer at that moment. Prefer the
|
|
release-pinned, signature-verified server installer flow documented in
|
|
[README.md](../README.md) and [INSTALL.md](INSTALL.md), then use the agent
|
|
install command generated by your own Pulse server.
|
|
|
|
For the server installer, avoid `latest` when you want a tighter change-control
|
|
boundary. Download a specific release tag, verify the `install.sh.sshsig`
|
|
signature, and pass that same tag to `bash install.sh --version`. Agent
|
|
self-updates still verify checksum headers, and release builds require
|
|
signatures when a trusted update key is embedded.
|
|
|
|
The first automatic hop from an already-installed v5 `pulse-agent` to v6 is
|
|
performed by the v5 updater. That updater verifies TLS by default, requires the
|
|
server-provided SHA-256 checksum, validates executable magic, enforces the size
|
|
limit, and swaps atomically, but it does not yet have the v6 Ed25519 signature
|
|
requirement or downloaded-binary `--self-test`. For that migration hop, use
|
|
HTTPS or a trusted local network. In high-assurance environments, reinstall the
|
|
v6 `pulse-agent` through the signed installer path instead of relying on the
|
|
automatic v5-to-v6 first hop over plain HTTP.
|
|
|
|
## Self-Update Security
|
|
|
|
The agent's self-update mechanism is critical for security and stability. To prevent supply chain attacks or compromised update servers from distributing malicious or broken agents, Pulse employs a rigorous verification process.
|
|
|
|
### 1. Checksum Verification
|
|
The agent verifies a SHA-256 checksum of the downloaded binary. The server must provide
|
|
`X-Checksum-Sha256`; updates are rejected if the header is missing or mismatched.
|
|
|
|
### 2. Signature Verification
|
|
Release builds embed trusted Ed25519 update public keys and require
|
|
`X-Signature-Ed25519` in addition to the checksum header. Updates are rejected
|
|
when the signature is missing or does not verify against the embedded trust
|
|
root.
|
|
|
|
### 3. Pre-Flight Checks
|
|
To prevent "brick-updates"—bad updates that crash immediately and require manual recovery—agents perform pre-flight validation before replacing the running executable.
|
|
|
|
Unified agent (`pulse-agent`):
|
|
1. Download new binary.
|
|
2. Verify checksum (required).
|
|
3. Verify the Ed25519 release signature when trusted update keys are embedded.
|
|
4. Validate binary magic (ELF/Mach-O/PE) and size limits (100MB max).
|
|
5. Run the downloaded binary with `--self-test`, passing any live token through a short-lived `0600` token file rather than argv.
|
|
6. Make executable and swap atomically.
|
|
|
|
## API Security
|
|
|
|
- **Token Authentication**: All agent-to-server communication requires a valid API token.
|
|
- **TLS**: Encrypted by default (unless specifically disabled).
|
|
- **Network Isolation (optional)**: The agent control plane can be served on a dedicated, separately firewalled port. It exposes the bounded report/config, command WebSocket, version, and bootstrap routes needed for the full agent lifecycle, but not the web UI or management API. See [Split-Port Agent Ingest](CONFIGURATION.md#split-port-agent-ingest-network-isolation).
|