Pulse/scripts/installtests
rcourtman 16f791a656 Harden install-time PVE token extraction with JSON-first parsing (#44/#1312)
The install-time auto-register path (auto_register_pve_node) parsed the API
token secret out of pveum's box-drawing table output with a fragile awk
column-split. The web-setup render path was already hardened to request
'pveum ... --output-format json' first and parse the value field, but this
secondary install.sh path was never ported.

auto_register_pve_node now requests --output-format json first (falling back
to the bare --privsep 1 form only when an older pveum rejects the JSON flag,
which keeps the secure-installer contract pin on that form satisfied) and
extracts the secret via a new extract_pve_token_value helper: JSON value-field
parse first, then a locale-independent box-drawing table fallback (normalizes
the column separator to a plain pipe byte-wise before splitting, so it works
regardless of host locale). This mirrors the hardened render path and removes
the silent-failure / mis-parse risk when pveum table formatting drifts.

Functional + contract tests in root_install_sh_test.go; deployment-installability
contract documents the deterministic extraction. The host-agent path
(internal/hostagent/proxmox_setup.go setupPVEToken) carries an agent-lifecycle
token-permission proof obligation and is left for a governed lane.
2026-06-09 15:47:12 +01:00
..
backfill_release_assets_test.go Add historical release asset backfill workflow 2026-04-22 17:25:58 +01:00
build_release_assets_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
docker_entrypoint_test.go Avoid tenant runtime image copy-up 2026-04-24 09:21:42 +01:00
install_docker_sh_test.go Prepare v6.0.0 stable release 2026-06-03 17:31:11 +01:00
install_ps1_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
install_sh_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
provider_msp_deploy_test.go Harden v6 upgrade release proofs 2026-06-03 17:07:25 +01:00
pulse_auto_update_test.go Guard stable updater from prerelease tags 2026-04-25 23:49:27 +01:00
release_ldflags_test.go Require signed unified agent release assets 2026-04-22 02:00:29 +01:00
root_install_sh_test.go Harden install-time PVE token extraction with JSON-first parsing (#44/#1312) 2026-06-09 15:47:12 +01:00
uninstall_sensor_proxy_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00