The copied Unix install and setup commands settled sudo with `sudo -v`
before the silent token prompt. sudo applies its verifypw rule to -v, so
it asks for a password whenever any matching sudoers entry needs one,
even if the rule that would run a command is NOPASSWD. Ubuntu cloud
images match both `%sudo ALL=(ALL:ALL) ALL` and the cloud-init NOPASSWD
rule, and the default user there has no password, so the command failed
with "a password is required" for exactly the hosts most providers spin
up. Found while installing an agent on a fresh MSP client VM.
The preflight now tries a silent `sudo -n true` first. It runs a
command, so sudo applies the rule it would actually use, and it passes
for NOPASSWD users and cached credentials. Otherwise the old `sudo -v`
runs unchanged, so hosts that need a password are prompted as before and
a policy that allows only bash (where `true` is denied) still validates.
Both producers (the Go install command builder and the frontend one)
change together, and their tests pin the new preflight; the bootstrap
fixtures' fake sudo answers `-n true` the way it answers `-v`, so the
refusal cases still refuse.
Verified on an Ubuntu 24.04 cloud-init host: the old preflight prints
"sudo: a password is required", the new one passes without a prompt. The
Settings installer renders the new preflight in every Unix command at
desktop and phone widths.
Contract-Neutral: sudo preflight only; command shape, privilege dispatch and token handling unchanged
Mirror the qualified Unix reader in setup, Proxmox and container producers: select one terminal tool, distinguish missing terminal/tool/mode failures, restore its complete state before installation and on cleanup, and retain silent overflow draining. Emit the isolated privileged body once without changing tokens, trust, scopes, profiles or state. Cover serialized contracts and actual consumer payloads.
Change-source: pulse-maintainer
The executable overflow regression and a bounded Bash PTY probe show canonical terminals truncate long input before the size check. Read a bounded character count with echo held off, drain an invalid line before returning to the calling shell, and restore its modes on every exit. Pin maximum-size preservation, overflow history safety and terminal restoration.
Contract-Neutral: Repair bounded private terminal entry, overflow draining and mode restoration; no issuance, scope, install transport or response-shape delta.
Change-source: pulse-maintainer
Reuse the complete-download and preflight private-token entry boundary for both monitoring modes. Keep issued credentials separate and no-store, use the installer-owned token path in the diagnostic service reference, and reject structural unit injection before minting. Add executable root/sudo, history, transport, failure cleanup and systemd grammar regressions alongside the subsystem contracts.
Change-source: pulse-maintainer
Separate PVE/PBS setup and telemetry credentials from shell source and download URLs. Use silent root/sudo input, private-file handoff, complete downloads and the agent preflight; preserve scope, TLS defaults, single-line paste and coherent rolling-upgrade metadata. Reveal tokens through the existing dialog and discard late issuance after close. Pin executable shell, history, TLS/registration and browser contracts without using real credentials.
Change-source: pulse-maintainer