mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-06 18:39:42 +00:00
ef5f3bc187
The agent can report a failed container's last log lines since #4342, but only through a flag or an environment variable on the agent itself. Nobody installing from the copied command would find it, and the installer rejected the flag as an unknown argument. The shell installer now takes --enable-failure-logs and --disable-failure-logs, and the PowerShell installer takes -EnableFailureLogs or PULSE_ENABLE_FAILURE_LOGS. Each writes the flag into the service arguments. An update or reinstall that names neither keeps what the installed service has, so the choice survives agent updates, and the disable flag is the way off: without it the recovered service argument would turn the option back on. The install screen gains "Send the last log lines of a failed container" beside the copied commands, outside the advanced options and unticked by default. Command access sat behind the advanced fold until #1728 because people missed it there. Ticking it adds the flag, or the PowerShell environment assignment, to every copied install command. It mints no token and changes no scope, and it cannot reach an agent that is already installed. The text says what leaves the host, that masking can miss a secret, and how to turn it off. It is still a local choice. Nothing here gives the server a way to turn it on.