openstack-ironic/ironic
Jay Faulkner 98c25db51d OSSA-2025-001: Disallow unsafe image file:// paths
Before this change, Ironic did not filter file:// paths when used as an
image source except to ensure they were a file (and not, e.g. a
character device). This is problematic from a security perspective
because you could end up with config files from well-known paths being
written to disk on a node.

The allowlist default list is huge, but it includes all known usages of
file:// URLs across Bifrost, Ironic, Metal3, and OpenShift in both CI
and default configuration.

For the backportable version of this patch for stable branches, we have
omitted the unconditional block of system paths in order to permit
operators using those branches to fully disable the new security
functionality.

Generated-by: Jetbrains Junie
Closes-bug: 2107847
Change-Id: I2fa995439ee500f9dd82ec8ccfa1a25ee8e1179c
2025-05-12 14:36:43 +00:00
..
api CVE-2024-44982: Harden all image handling and conversion code 2024-09-04 15:20:36 -07:00
cmd Start API after conductor is started in the combined executable 2022-03-24 18:07:51 +01:00
common OSSA-2025-001: Disallow unsafe image file:// paths 2025-05-12 14:36:43 +00:00
conductor Merge "Wipe Agent Token when cleaning timeout occcurs" into stable/zed 2023-03-15 10:14:08 +00:00
conf OSSA-2025-001: Disallow unsafe image file:// paths 2025-05-12 14:36:43 +00:00
db Fix online upgrades for Bios/Traits 2023-03-15 15:41:47 +00:00
dhcp Implement a DHCP driver backed by dnsmasq 2022-09-05 13:57:39 +12:00
drivers Checksum files before raw conversion 2024-09-25 11:47:31 -07:00
hacking Fix the remaining hacking issues 2020-03-31 13:40:00 +00:00
objects Explicit parameter to distinguish partition/whole-disk images 2022-01-28 19:13:13 +01:00
tests OSSA-2025-001: Disallow unsafe image file:// paths 2025-05-12 14:36:43 +00:00
__init__.py
version.py