PegaProx 1.5.1 makes PegaProx ready for Proxmox VE 9.3, fixes a rolling update that could install on a node while its guests were still on it, closes a security issue that let an unauthenticated client stop the whole PegaProx process, and brings an experimental federation of PegaProx instances behind a switch that stays off unless you turn it on.
Updating is recommended for every install, and it is required before you upgrade a Proxmox VE cluster that PegaProx manages to 9.3. The changes most likely to matter:
- Proxmox VE 9.3 refuses cross-cluster moves into older nodes. A 9.3 node speaks a newer migration tunnel, and Proxmox VE itself refuses a move from it into a node with an older qemu-server or pve-container. PegaProx now says so before anything is touched. Upgrade the target clusters first, then the sources.
- A rolling update pauses when a node cannot be drained. On a cluster with more than one node, an evacuation that finds no other node to take the guests ends with errors naming them, and with "pause on evacuation errors" (the default) the run waits for you instead of installing.
- The tokens PegaProx makes follow the token policy of Proxmox VE 9.3, if your datacenter has one.
The in-app update and update.sh take care of everything. Docker users get it with the new image; Debian and appliance users run apt update && apt upgrade.
๐ Security
- An unauthenticated client could stop the whole PegaProx process. A websocket that the server closes, for example a console request with a wrong token, could leave the event loop with a watcher on a socket that was already closed, and the process aborted. A few such requests over HTTPS were enough, without signing in. 1.5.0 and older are affected. The connection now goes back to the server only once the websocket's reader is done, and no further request is read on it. (GHSA-9343-vw9m-h879)
๐ง Proxmox VE 9.3
PegaProx was checked against the Proxmox VE 9.3 API and live against a 9.3.1 node next to 9.2 nodes in our lab. #1390 collected what we knew while this release was built.
- Migration tunnel: a cross-cluster move from a node that runs the new tunnel (qemu-server 9.2.21 or pve-container 6.1.25 and newer) into a node that does not is refused up front with what to upgrade (
PVE_TUNNEL_TOO_OLD). This covers manual migrations, cross-cluster replication, Site Recovery, the cross-cluster balancer and linked mode. Cross-cluster replication used to stop and remove the old replica before the move, which Proxmox VE then refused, so a DR target could end up without a replica; it now checks before it touches the replica, and when the versions or the target's datacenter options (the new next-id setting) cannot be read, it keeps the replica and tries again on the next run. - Token policy (
token-policyindatacenter.cfg): the tokens PegaProx makes get the longest lifetime the policy allows. The management token PegaProx made at the first connect is renewed before the policy ends it: over a password login of the cluster account, or, without one (two-factor sign-in, no stored password), over the token itself where the account may manage its own tokens. A new token is made, stored and read back before the old one is deleted. Where neither way works, PegaProx warns once while there is still time. A policy that requires privilege separation is a clear refusal, and PegaProx stays on password logins. Rotate API Token renews the secret in place. - Negative node-affinity rules keep a guest off their nodes in the migration check, the evacuation, the rolling update, What-if and the HA view, and can be created in PegaProx. Drift no longer reports every node-affinity rule as changed.
- HA maintenance goes over the Proxmox VE API where the node has it, with SSH as the fallback for older nodes. When Proxmox VE refuses, for example because the HA stack is disarmed, PegaProx shows the reason and does not try again over SSH.
- Restore over another guest: Proxmox VE 9.3 refuses to restore a backup over a guest it was not taken from. Tick "Allow restoring a backup of another guest" to do it anyway; the guest keeps its own identity. A single restore from the Backups tab or the PBS wizard that Proxmox VE refuses for this now shows the hint as well.
- Remote migration with "keep the source" sends
allow-new-uidto nodes that know it, so a second copy of the same guest is not refused. - Pools with VNet or storage members can be deleted (a pool with pools below it says so and keeps its members), SDN IPAM and DNS fields are trimmed, a node network comment or OVS option with
${or<%is refused with a clear message instead of a 500, and firewall rules Proxmox VE skips show as not applied.
๐ Rolling updates and maintenance
- The node a rolling update just finished takes the next node's guests (#1387). On two nodes the second node's evacuation said "completed" a few seconds in, with all its guests still on it, and the run went on to install. Proxmox HA still named the first node as in maintenance for a while after it left, PegaProx took that for maintenance set from outside, and with no target left the evacuation took the path meant for a single node. Leaving maintenance is no longer undone by Proxmox VE lagging behind, the run waits for Proxmox HA to let go of a node before it starts the next one, and on a cluster with other nodes an evacuation without a target waits up to 90 seconds for one and otherwise ends with errors.
- An update, a rollback or a restart of PegaProx while an ESXi migration runs is refused until you confirm it again.
๐ Migrations
- Cross-cluster moves: the temporary token of the move is made by the target cluster's own account (#1389). A target added with an API token as its login, or whose account was not root and talked to Proxmox VE through the token PegaProx made at the first connect, failed with a 500. The token is now made over the session PegaProx has or a password login of the account itself; a target that cannot do that (only an API token, a two-factor sign-in, a password Proxmox VE refuses) gets a message that says what to change (409), and a refused password is not tried again for half an hour, so Site Recovery or the balancer do not pile failed logins onto the realm. The cluster's own token is never handed to the source node.
- Password logins PegaProx sends by itself (the token renewal, the cross-cluster balancer, scheduled replication and the cleanup of their tokens) count together: after one that failed, refused or without an answer, the next waits half an hour, and a third goes out only once the second is two days old. The fail2ban jail for pveproxy in the Proxmox VE wiki never counts three, so a directory server that is down does not get PegaProx banned from a cluster whose token needs no directory. Migrations started by hand log in at once.
- ESXi Snapshot-Iterative copies from a live clone and catches up from change tracking in rounds; the switchover reads only what changed since the last round, and every copied run is compared by checksum on both sides. The migration wizard says what each mode does, std VGA is the default, and the temporary migration key leaves ESXi also when it was the only one.
๐งช Federation (experimental, off by default)
Up to four PegaProx instances, each with its own clusters, pair into a federation in Settings > Federation. In linked mode every instance works on the clusters of the other sites as if they were its own: consoles, uploads, live updates, API tokens, migrations between sites and the sign-in at any site. Disaster recovery, where another site takes a cluster over, has a switch of its own and is off as well. With the switch off, nothing of it runs, and the panel no longer asks for linked sites. See docs/federation.md before you try it, and leave the federation before going back to 1.5.0.
๐ Fixes
- The first-start database encryption runs on Windows, and a failed or declined conversion leaves the database plain and running; the Debian package restarts once on upgrade, so the conversion is not cut short.
- The IP column of the guest list no longer holds the browser's connections to the rest of the panel, which made the panel time out on remote or lossy clusters.
- An account with a slash in its name, such as an old OIDC account, can be edited, deleted, have its password reset and its 2FA cleared, and its permissions edited (#1367).
- Bulk snapshot delete takes the snapshots of a guest one after the other, each once Proxmox VE ended the one before, and answers within 90 seconds. A delete Proxmox VE started and that was not seen to end, or one that got no answer, is said as such and the list is read again, instead of a timeout and snapshots that seemed to stay (#1347).
- On Windows a second PegaProx on the same config directory, and
--migrate-dbwhile PegaProx runs, are refused as on Linux. - The temporary ESXi migration key also leaves when two migrations end at the same moment.
- The RPM package is built for current Fedora and EL10.
- A subnet is created without a
dhcpproperty Proxmox VE does not have. - A package list refresh that failed on an XCP-ng host is an error.
- The storage rescan closes its SSH login when a command fails, and the backup check sweep looks at reachable clusters only.
- XCP-ng to Proxmox transfers log in with the cluster's stored key, stop while its SSH is switched off, and name a volume they leave behind.
๐ Translations
- The node network table, the network chart legend and two table headers in every language.
โ ๏ธ Behaviour changes
The update dialog lists all of them. The ones most installations notice:
- Cross-cluster moves from Proxmox VE 9.3 into older nodes are refused before they start (
PVE_TUNNEL_TOO_OLD). - Rolling update: an evacuation without a target on a cluster with more than one node ends with errors and pauses the run; after each node the run waits up to two minutes for Proxmox HA.
- Token policy: under a policy with a maximum lifetime, a cluster whose account signs in with two-factor authentication and whose token may not manage tokens cannot renew its management token; PegaProx warns in time, give such a cluster an API token as its login.
- Password logins PegaProx sends by itself wait half an hour after a failed one, and after two till the second is two days old; automatic work that needs one says until when.
- Bulk snapshot delete (
POST /api/snapshots/delete) answers within 90 seconds and lists deletes that were started or got no answer understartedwith their state. - RPM: EL9 cannot install the package (Python 3.9, python3-jwt 2.4.0).
- HA maintenance: a refusal by Proxmox VE is shown and not retried over SSH.
- Restore over another guest on Proxmox VE 9.3 needs the new option.
- Updates while ESXi migrations run need a second confirmation.
- Downgrade to 1.5.0 after joining a federation: leave the federation first.
Updating from 1.4.x or older? Read the behaviour changes of 1.5.0 as well; the update dialog shows them below those of 1.5.1.
๐งญ Known issues
- Federation is experimental. Try it on clusters that do not matter before relying on it.
- Snapshot-Iterative (zero downtime) ESXi migration is still experimental. Use Live Clone or Live Mirror for guests whose data matters.
- Debian and RPM packages use the PyJWT of the distribution, which is older than the 2.15.1 that pip, git and Docker installs get. With single sign-on configured, the key download of the identity provider then follows a redirect the newer PyJWT refuses. A later release fetches the keys itself.
- Container console on some nodes, automatic failover for PegaProx itself (beta), change plans and the labels in the app are as described in the 1.5.0 notes.
โ Quality
The automated suite runs more than 21,000 tests on every change. Before this release, five independent reviews went over every change since 1.5.0, the Proxmox VE 9.3 API schema was compared with 9.2 against every call PegaProx makes, and the Proxmox VE 9.3 changes were tested live against a 9.3.1 node next to 9.2 nodes: the token policy and the renewal of the management token under it, the tunnel refusal of Proxmox VE itself, negative rules, HA maintenance over the API, the cross-cluster token with a non-root account and the delete of a pool with storage members.
Thank you to everyone who filed, fixed, translated and sponsored along the way. ๐
Thanks in particular to @CKeckNorthIO, @sumpfgottheit, @MartinMDS and @mdobprv-lab, who filed, fixed or translated the issues in this release.
๐ Sponsors
PegaProx is AGPL-3.0 and built in the open. Huge thanks to our Platinum sponsors who keep it moving:
๐ Platinum
Sponsor PegaProx: opencollective.com/pegaprox | pegaprox.com/#sponsor