Files
proxmox-manager/tests
Tim BaumannandClaude Opus 5 24d5812a2d fix(health): harden notification and state handling
- http:// NTFY_URL together with NTFY_TOKEN_FILE is a config error
  (--check exits 3, --test-notify exits 1).
- Token file: directory must be owned by root/current user and not
  group/world-writable; the token is read through one opened descriptor
  that is verified via /proc/self/fd (regular file, owner, mode 0600).
- Lock file opened for append (never truncated); the parent of
  HEALTH_STATE_DIR must not be group/world-writable.
- qm/pct config fallback runs with timeout 10.
- curl: -q first, --proto =https when a token is used, no --retry.
- json_escape escapes remaining control characters as \u00XX.
- --test-notify removes its temp body file on exit and on INT/TERM.
- _truncate keeps UTF-8 characters intact.
- Tests for each item where practical.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 19:07:05 +02:00
..