# Release Notes for MultiPortal 1.2.2

**Release Version:** 1.2.2
**Release Date:** September 30, 2026

MultiPortal 1.2.2 is a patch release that resolves issues identified after the 1.2.1 release. It completes the stored cross-site scripting remediation begun in 1.2.1, closes a cross-site request forgery weakness on virtual machine power controls, and fixes a number of problems in usage reporting, backup restore, storage placement and high availability. We recommend upgrading at the next available maintenance window for all environments, and particularly for those that bill from the usage API, use custom domains, or run more than one API integration against the same account.

## Security and Access

- **Stored cross-site scripting remediation completed.** Names entered in user roles, internal networks and external networks are now encoded wherever they are displayed, along with the remaining page titles, grid columns, drop-down templates and client-side views that were missed in 1.2.1. A Content Security Policy, `X-Content-Type-Options: nosniff` and a Referrer-Policy header are now sent on every page, and third-party scripts previously loaded from a CDN are served locally. See MultiPortal Security Advisory [MPSA-2026-001](https://docs.multiportal.io/security-advisories/mpsa-2026-001/).
- **Virtual machine power controls protected against cross-site request forgery.** Start, stop, reboot, reset and shutdown, the language switcher, and the login-attempt reset controls now only accept POST requests carrying a valid CSRF token, so a crafted link can no longer act on behalf of a signed-in operator. Redirects back to the previous page also reject disguised external addresses.
- **Virtual machine power commands check each action and ownership.** Each power command is now authorised against its own permission and against ownership of the virtual machine, rather than a single shared check.
- **Backup restore checks tenant ownership.** Restoring a backup now verifies that the backup belongs to the requesting tenant, and reseller access to backups and backup logs is limited to the tenants that reseller owns.
- **Custom domains can no longer claim the platform's own hostname.** A reseller or tenant can no longer register the installation's primary hostname as a custom domain, which previously allowed them to take over the login page for service provider users. Any existing custom domain that uses a reserved hostname is suspended on upgrade.
- **Login options scoped on custom domains.** The login page on a custom domain now only shows the SSO, SAML and LDAP options belonging to the company that owns the domain.
- **Provider portal login no longer reveals account details.** The provider portal now gives the same "Invalid username or password" message for every failed login, so it can no longer be used to find out whether an account exists or what type it is. Service provider users who sign in on the standard login page are no longer sent to a second login form.
- **Backup storage quota enforced when editing a VDC.** Editing a virtual data centre now only offers, and only accepts, backup storage that has been allocated to the reseller, matching the create screen. This applies to pay-as-you-go VDCs as well.
- **Secrets removed from logs and error-log exports.** Session identifiers, session cookies, API tokens, database credentials and password fields are no longer written in plain text to the application log or included in the error-log export. 
- **Queue worker management hardened.** The queue worker scaling control now strictly validates its input before starting worker services.

## Reliability and Performance

- **Daily usage rollup fixed on every 1.2.1 install.** The daily usage aggregation failed on every run after upgrading to 1.2.1 because of missing database columns and deleted virtual machines.
- **Usage events are no longer lost when a node is unreachable.** The Proxmox usage sync no longer moves past events it failed to collect when one node is unavailable, and the hourly aggregation now runs after the sync and revisits recent hours, so late-arriving data is counted.
- **Accurate virtual machine counts in usage reports.** Total and running virtual machine counts are now calculated for the requested period and no longer count deleted machines forever. Machines deleted during the same period are counted correctly.
- **Combined storage averages corrected.** Average storage in the combined usage format is no longer inflated by a factor of 86,400.
- **VDC deletion no longer stalls.** Deleting a virtual data centre now completes in stages and retries short-lived lock failures, so a large deletion no longer sticks partway through (for example at 62%). Scheduled tasks are also claimed atomically so the same task cannot run twice.
- **Storage sync no longer creates duplicates.** Storage sync no longer creates a second copy of each local storage when Proxmox omits the shared flag, which had split storage policy assignments across the two copies. Existing duplicates are repaired automatically on upgrade, including on multi-node clusters.
- **Storage sync no longer aborts on in-use storage.** Removing a storage in Proxmox no longer stops the storage sync task permanently. Storage that is still in use is kept, each data centre is synced independently, and a failed storage fetch is shown per data centre.
- **Deleting a user no longer deletes their data centres, VDCs or virtual machines.** Records created by a user are now kept when that user, or their company, is deleted. Previously, deleting a user could remove every VDC and virtual machine they had created.
- **Health check covers every runtime directory.** The system health check now tests every directory the application writes to, shows the owner, group and permissions of each, and raises a clear alert when one is not writable. The support bundle now includes all application logs, including rotated logs.
- **Permission changes take effect immediately.** Permission changes applied during an upgrade now reach users who are already signed in, rather than waiting for their cached permissions to expire.
- **Failed scheduled tasks are visible.** The Scheduled Tasks page now shows when a task has failed and why, instead of reporting success.

## Bug Fixes

- **VM creation places the machine where its storage is.** Virtual machines are now created on a node that can reach the storage policy's storage and has room for the disk, and disabled storage is refused. If the Proxmox task fails, the MultiPortal task now fails too instead of leaving the machine stuck in "Pending". Template clones follow the same placement rules.
- **Storage policy Default Format shows every supported format.** Storages that support more than one disk format now offer all of them, instead of falling back to raw only.
- **EFI and TPM disks follow the storage policy format.** EFI disks, and data disks added through the API, are now created in the storage policy's default format rather than raw, so these virtual machines can be snapshotted. TPM state disks are created as qcow2 on Proxmox 9.1 and later.
- **Backups of deleted virtual machines can be restored.** Restoring a backup whose original virtual machine has been deleted now creates a new virtual machine instead of failing. Tenants can see backups of their own deleted machines in the VDC backup list.
- **Backup count and backup list now agree.** The "Total VM Backups" card and the Virtual Machine Backups list now show the same number.
- **Confirmation required before an in-place backup restore.** Restoring a backup over an existing virtual machine now shows a warning and requires you to type the machine's name before it is overwritten. Restoring to a new virtual machine is unchanged.
- **VXLAN networks default to MTU 1500.** New internal and external networks are created with an MTU of 1500 instead of 9000. A default MTU can now be set per data centre, and the MTU of an existing network can be changed from the Internal Networks list. Existing networks are not changed.
- **High availability groups applied correctly.** Virtual machines created or updated through the API are now placed in the correct high availability group for their operating system on Proxmox 8, and VDC-level HA groups are applied. On Proxmox 9, a virtual machine is moved between node-affinity rules correctly, and genuine HA placement failures are now reported.
- **Node-affinity rule errors resolved.** Applying a node-affinity rule no longer fails with "already used in another node affinity rule" when a machine is still listed in another rule. When the conflict cannot be resolved automatically, a clear message names the rule to change.
- **VM creation no longer loops on a VM ID collision.** Creating a virtual machine no longer retries forever when the chosen Proxmox VM ID is already in use, and stale records no longer block new VM IDs.
- **Roles assigned when creating a user.** The role selected when creating a user is now assigned, and users with a custom role can reach the dashboard after signing in. Existing custom roles are repaired on upgrade.
- **VM power buttons work for Virtual Machine Admin roles.** Users granted the Virtual Machine Admin permission can now use the power buttons without a 403 error.
- **Tenant administrators can select storage policies on fresh installs.** Tenant administrators on new installations no longer get a 403 when choosing a storage policy while cloning.
- **Service providers can create tenants and VDCs under a restricted reseller.** A reseller's "Allow Tenant/VDC Creation" settings now only restrict the reseller, not the service provider.
- **Overcommitted VDCs can be saved.** A VDC with overcommitment enabled can now be saved when its allocation is below the total already provisioned.
- **Console works on custom domains.** The VM console now opens on an active custom domain without adding the domain to the server configuration or restarting the console service.
- **Create Security Group and Create Network dialogs open again.** Both dialogs failed to open with an error and now load correctly.
- **VM card reboot and shutdown links fixed.** The reboot and shutdown links on the VDC virtual machine grid view no longer return "not found".
- **VDC list no longer errors on empty VDCs.** The VDC list no longer fails when it contains a VDC with no CPU or memory allocated.
- **External networks table readable in dark mode.**
- **Unused MultiPortal Service Status widget removed.**
- **Clearer zone MTU error messages.** A failed zone MTU change now explains why it failed.

## API and Integrations

- **Multiple API integrations can run side by side.** Requesting an API token no longer revokes every other token held by the same user, so two integrations on one account no longer sign each other out. Tokens and refresh tokens are now scoped to the OAuth client that requested them. A revoked token is rejected with a distinct `token_revoked` error so a client can re-authenticate.
- `GET /virtual-machine` reports failures honestly. When the details of a single machine cannot be fetched from Proxmox, its `status` is now `unknown` rather than an HTTP status code, its `cores`, `sockets` and `memory_in_gb` are `null` rather than zero, and a new `config_available` field indicates the row is incomplete.
- **Usage API totals and completeness.** The fleet usage endpoint now returns the same figures as the per-VDC endpoint, and both report whether the requested period is fully covered by collected data. The usage rebuild is available from the Cron Task Management page.
- **Usage API documentation.** The API documentation now explains which usage fields describe the requested period, how long aggregation takes to catch up, and the API's concurrency limits. The usage endpoint appears in the published OpenAPI specification again.
- **Backup restore over the API.** Backups of deleted virtual machines can be restored through the v1 API. An in-place restore now requires a `confirm_vm_name` parameter (see Upgrade Notes).

## Upgrade Notes

- This patch release includes database migrations. Please take a backup of your database prior to upgrading; the migrations run as part of the standard upgrade procedure.
- **API change: in-place backup restore.** `POST .../restore` with `is_new_vm` false or omitted now requires a `confirm_vm_name` field matching the virtual machine's current name, and returns HTTP 422 without it. Restores to a new virtual machine are unaffected.
- **API change: virtual machine list.** On a row that could not be fetched from Proxmox, `GET /virtual-machine` now returns `status: "unknown"` and `null` numeric fields. Integrations that treat these fields as always numeric should be checked.
- **Power controls now require POST.** Any script or bookmark that used a plain GET link to start, stop, reboot, reset or shut down a virtual machine through the web interface will no longer work. The REST API is unaffected.
- **Custom domains using a reserved hostname are suspended.** If a reseller or tenant registered the installation's own hostname as a custom domain, it is suspended on upgrade. Ensure `PRIMARY_HOST` is set in your environment; the System Info page now warns when it is missing.
- **Duplicate storage records are repaired on upgrade.** Storage policy assignments are merged onto the remaining record. Review storage policies after upgrade if you previously worked around duplicate storages manually.
- **Rebuild missing daily usage history.** Installations that ran 1.2.1 have gaps in their daily usage history. After upgrading, run the rebuild from the Cron Task Management page for the affected period.
- **New networks use MTU 1500.** If your underlay supports jumbo frames and you rely on 9000 for new networks, set the Default Zone MTU on each data centre's Settings tab.
- **HA rule cleanup task ships disabled.** A new scheduled task removes stale members from Proxmox 9 affinity rules.
- **Existing log secrets.** New log entries are redacted automatically. 
- **Permission changes on upgrade.** The updater grants resellers access to backups for their own tenants, grants the VM power route to the containers that show the power buttons, adds the new MTU permissions, and repairs custom roles missing basic access. We recommend reviewing reseller and custom role permissions after upgrade.

Using the Community edition? Join the conversation on the [MultiPortal community forum](//forum.multiportal.io). It is the best place to ask questions, share feedback, and get support from the MultiPortal team and other operators.

For full details on everything in this release, see the [1.2.2 release notes](//docs.multiportal.io/release-notes/v1.2.2/).

Thank you for choosing MultiPortal.

