pve-network/debian
Hannes Duerr 894d2d33e3 api request helper: enforce TLS cert-check and add cert-fingerprint option
Currently, we do not verify the TLS certificate for API requests
external IPAM and DNS integration. This could allow man-in-the-middle
attacks, albeit most IPAM infrastructure is on controlled and isolated
LANs, so it's not something that should frequently happen; and
technically our IPAM integration is still marked as tech-preview,
which had its reasons.

Enforce verification, and allow users to pass a cert SHA256
fingerprint to ensure a certificates validity if it's not trusted by
the system trust store, as it's, e.g., the case for self-signed certs.

The code was adapted from the one in pve-apiclient, which we cannot
reuse directly as it is only implemented for requests against PVE
nodes, not as a generic HTTP client request helper.

Add the new dependency `libio-socket-ssl-perl` required to get the
verify callback for the TLS certificate used for cert-fingerprint
checking.

Signed-off-by: Hannes Duerr <h.duerr@proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
 [TL: return valid for non-leaf certs and rewrite commit message]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-03-06 10:00:21 +01:00
..
source d/source: switch to native versioning 2021-05-10 10:45:53 +02:00
changelog bump version to 0.10.0 2024-11-20 16:14:56 +01:00
control api request helper: enforce TLS cert-check and add cert-fingerprint option 2025-03-06 10:00:21 +01:00
copyright fix copyright data 2019-03-28 12:21:01 +01:00
docs initial package commit 2019-03-28 10:59:08 +01:00
libpve-network-api-perl.install split into implementation and API endpoint packages 2024-11-18 18:17:20 +01:00
libpve-network-perl.install split into implementation and API endpoint packages 2024-11-18 18:17:20 +01:00
libpve-network-perl.postinst d/postinst: do not break, if ipam-file moves fail 2024-11-20 16:13:38 +01:00
rules initial package commit 2019-03-28 10:59:08 +01:00
triggers d/triggers: activate-noawait pve-api-updates 2020-05-03 18:56:32 +02:00