Commit Graph

10 Commits

Author SHA1 Message Date
pulse-triage[bot]
e790d00979 Keep manual installer updates from replacing an unknown edition
Require a successful installed Community identity before choosing a public update. Do not fall back past a broken primary executable. Keep deliberate recovery for an identifiable Community dev build, and admit an explicit signed Pro archive for a possibly paid installation only after its staged executable proves the expected Pro version.

Contract-Neutral: Enforces the existing paid-runtime continuity and pre-stop signed-archive admission contracts. Version ordering, the explicit Pro recovery route and the actual replacement gates are unchanged.
Change-source: pulse-maintainer
2026-11-20 17:21:57 +00:00
pulse-triage[bot]
4929e74173 Preserve the private runtime during manual installer updates
The manual server installer recognized the Pro version but still selected public artifacts. Stop before selection or replacement on an installed Pro runtime unless the operator supplies a signed private archive. Match the intended archive version and use the staged executable to establish its edition.

Contract-Neutral: Enforces the existing paid runtime continuity invariant on the standalone installer; signed local archive, version, broker and service replacement boundaries are unchanged.
Change-source: pulse-maintainer
2026-11-20 15:25:27 +00:00
pulse-triage[bot]
7aaada6f50 Enforce the server installer's existing service deadlines
Count manager reads within the existing startup polling budget and force-stop clients that ignore TERM. Keep uncertain replacement reads fail-closed and preserve the current prior-active recovery path. Register real-clock and pipe-closure controls and keep publication/startup test doubles compatible with the existing timeout wrapper.

Contract-Neutral: Enforces the existing bounded startup/readback and failed-start refusal policies without changing interfaces, configured budgets, recovery attempts or saved-state guarantees.
Change-source: pulse-maintainer
2026-11-03 10:36:32 +00:00
pulse-triage[bot]
9225b8b8ac Describe service recovery without claiming binary rollback
Script publication can fail after the replacement executable is installed. Report only recovered service liveness, and prove both installer paths keep the new binary while preserving the old script bundle.

Change-source: pulse-maintainer
2026-10-31 12:10:10 +00:00
pulse-triage[bot]
e4266d1aef Overlap isolated installer replacement refusal controls
Run two fixed per-flow fixture observations together while retaining every original case, deadline, file/mode preservation, no-restart and cleanup assertion. Collect outcomes on the test thread and require both bad-result and exception verdicts in the registered scheduling controls.

Contract-Neutral: Test scheduling only; installer runtime, replacement safety and recovery contracts are unchanged.
Change-source: pulse-maintainer
2026-10-30 16:46:49 +00:00
rcourtman
6dc43d298c Stage server update archives on the install filesystem, not /tmp
The server installer downloaded the release archive and extracted it
under /tmp. Debian 13 and many LXC templates mount /tmp as tmpfs, whose
pages are charged to the container's memory cgroup. A v6.5.0 archive is
~280 MB and extracts to ~750 MB, so an unattended update on a 1 GiB LXC
filled the cgroup with ~820 MB of shmem; the kernel OOM-killed the
container's systemd and Proxmox stopped the container mid-update.

Download and extract into owner-only hidden directories under the
install directory instead. It is always writable from the hardened
pulse-update.service sandbox, it is where the staged binary already
lives, and the disk headroom preflight now measures the filesystem the
update actually stages on. The Go updater already prefers its data
directory over /tmp for the same reason.

Unlike /tmp, the install filesystem keeps an interrupted run's staging
across reboots. Staging setup now removes stale staging directories that
match only the exact owner-only names, never symlinks or files, and only
once their ctime is over six hours old: install.sh has no update lock,
so age is what proves no live run still owns them. Every recursive
pulse chown of the install directory now goes through one helper that
skips staging, so the payload root still reads is never handed to the
service account and the ~750 MB tree is not rewritten for nothing.

The "Failed to print table: Broken pipe" line in the report was
systemctl list-unit-files | grep -q in v6.5.0's service discovery; main
already reads that inventory in full, and it was not the failure.

Contract-Neutral: Defect fix inside the existing private server-installer inputs and update-space boundaries; staging moves from tmpfs-prone /tmp to the install filesystem with no public contract change
2026-10-16 23:49:36 +01:00
pulse-triage[bot]
1e6629c03c Stage source-built server binaries before atomic replacement
Admit a prepared executable and source revision before stopping Pulse. Keep the live binary in place until one same-filesystem rename, and restore only a previously active service after a failed rename. Preserve existing recovery files and exercise staging, stop, rename and recovery failures.

Change-source: pulse-maintainer
2026-10-07 12:44:56 +01:00
pulse-triage[bot]
c0772f0d7d Admit archive binaries before stopping Pulse and replace them atomically
Reject signature, extraction, architecture, destination staging and version failures before the service outage. Keep the live executable until a same-filesystem rename succeeds, remove the destructive version retry, and recover only a previously active, confirmed-stopped service if rename fails. Exercise the real archive path with download/local inputs and retained byte/mode/state fault controls; preserve uncertain-stop restrictions and separate native acceptance.

Change-source: pulse-maintainer
2026-10-07 11:39:38 +01:00
pulse-triage[bot]
7ee03281c0 Keep the staging-failure fixture's menu answer in caller scope
The first exact-source proof passed all replacement controls but the menu fixture shadowed main's choice variable and exited before staging. Use a distinct local selector and retain the fixture stderr on assertion failure.

Contract-Neutral: Fixture-only shell output-variable correction; no runtime or replacement-contract delta.
Change-source: pulse-maintainer
2026-10-07 08:44:17 +01:00
pulse-triage[bot]
407da3addb Refuse server replacement until Pulse is confirmed stopped
Archive and source installs ignored stop failures, while the manual flows stopped Pulse before staging. Require bounded state reads and a confirmed inactive service before either replacement; keep prior-active attribution and installed metadata on refusal. Exercise both real paths, timeout and uncertain-state controls, and manual staging failures without native or production mutation.

Change-source: pulse-maintainer
2026-10-07 08:41:36 +01:00