Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Agent Lifecycle Proxmox Runtime Token Permission Proof
- Date:
2026-05-05 - Lane:
L16 - Adjacent lane:
L1 - Trigger: Runtime-side follow-up to generated Proxmox setup permission hardening
Context
Generated Proxmox setup scripts already use privilege-separated PVE tokens and mirror ACLs to the concrete token id. The runtime-side host-agent setup and the root installer auto-registration path still had their own PVE token creation logic, so they needed the same canonical permission model instead of a parallel shared-token or user-only ACL variant.
Outcome
internal/hostagent/proxmox_setup.gonow creates and rotates PVE monitor tokens with privilege separation enabled, then appliesPVEAuditor, optionalPulseMonitor, and/storagePVEDatastoreAdmingrants to bothpulse-monitor@pveand the concretepulse-monitor@pve!pulse-*token id.- Host-agent PVE setup keeps the non-destructive
PulseMonitorrole update path while applying the selected guest-agent privilege shape to the token as well as the service user. - The root
install.shauto-registration path now uses the same privilege-separated PVE token posture, comma-joinedPulseMonitorprivileges, non-destructive role update, and user-plus-token ACL pairing before posting the generated token to/api/auto-register.
Proof Commands
Run as part of this slice:
bash -n install.shgo test ./internal/hostagent -run 'TestProxmoxSetup_(SetupPVETokenUsesPrivilegeSeparatedTokenACLs|ConfigurePVEPermissions_FallsBackToGuestAgentAudit|RunForType|RunAll)|TestPrivProbeRoleName|TestProxmoxSetup_ProbePVEPrivilege' -count=1go test ./scripts/installtests -run TestRootInstallScriptAutoRegisterUsesSecureContractShape -count=1go test ./internal/hostagent -count=1go test ./scripts/installtests -count=1python3 scripts/release_control/status_audit.py --prettypython3 scripts/release_control/contract_audit.py --prettypython3 scripts/release_control/registry_audit.py --prettypython3 scripts/release_control/canonical_completion_guard.pypython3 scripts/release_control/staged_commit_shape_guard.pygit diff --cached --check
Follow-Up Guard
Any future PVE setup path that creates a Pulse-managed API token must use the
same privilege-separated token contract and mirror effective ACLs to the service
user and concrete token id. A user-only ACL or --privsep 0 token is not a
canonical Proxmox API Inventory setup path.