freenas-proxmox/perl5/PVE/Storage
Kevin Adams 43a8efd125 Fix TrueNAS 25.04 compatibility: handle 404 on v1.0 API endpoint
TrueNAS 25.04 removed the v1.0 REST API entirely. Previously it redirected
(302) to v2.0; now it returns 404. The plugin treated 404 as a fatal
connection failure, preventing any operation on 25.04 hosts.

Fix: extend the v1.0→v2.0 upgrade condition in freenas_api_connect to also
trigger on HTTP 404, but only while probing the v1.0 endpoint (guarded by
`$apiping =~ /v1\.0/`). A 404 on the v2.0 endpoint still fails cleanly.

Also add a syslog warn when Bearer Token auth is attempted over plain HTTP:
TrueNAS 25.04+ revokes API keys sent without SSL, causing auth failures that
are otherwise invisible in the plugin log. The warning points admins to the
"Use SSL" storage config option.

Closes #205

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 22:51:32 -04:00
..
LunCmd Fix TrueNAS 25.04 compatibility: handle 404 on v1.0 API endpoint 2026-05-15 22:51:32 -04:00
.gitignore Update the FreeNAS-API related files to the latest Proxmox VE 2019-05-11 11:13:54 -04:00
ZFSPlugin-5.0-30.pm.patch Fix 'Parameter verification failed' when editing 2018-10-28 21:37:06 -04:00
ZFSPlugin-5.0-33_1.pm.hotfix.patch Fix ZFS error: Unrecognized command "list_extent" 2018-12-15 09:50:44 -05:00
ZFSPlugin-5.0-33_1.pm.patch Fix ZFS error: Unrecognized command "list_extent" 2018-12-15 09:50:44 -05:00
ZFSPlugin-5.0-34_1.pm.patch Update Proxmox VE patches to 5.3-6 2018-12-24 07:36:33 -05:00
ZFSPlugin-5.0-38_1.pm.patch Update to latest Proxmox VE update 2019-02-26 21:28:15 -05:00
ZFSPlugin-5.0-42_1.pm.patch Update the FreeNAS-API related files to the latest Proxmox VE 2019-05-11 11:13:54 -04:00
ZFSPlugin-5.0-44_1.pm.patch Patches created for latest 5.4 branch of Proxmox VE 2019-08-05 18:02:01 -04:00
ZFSPlugin-6.0-6_1.pm.patch Updated patches for the latest Proxmox VE updates and added donation 2019-08-07 22:57:22 -04:00
ZFSPlugin-6.0-8_1.pm.patch Update patch sets 2019-10-13 13:03:43 -04:00
ZFSPlugin-6.0-9_1.pm.patch Update patch sets 2019-10-13 13:03:43 -04:00
ZFSPlugin-7.1-1_1.pm.patch Update patches and some fixes. 2022-04-03 09:18:31 -04:00
ZFSPlugin-8.1.3_1.pm.patch Update for Proxmox 8 and Bearer Token 2024-01-06 13:43:35 -05:00
ZFSPlugin.pm.patch Update for Proxmox 8 and Bearer Token 2024-01-06 13:43:35 -05:00