openstack-ironic/devstack
Julia Kreger efc1e687de Fix Cinder Integration fallout from CVE-2023-2088
In the recent change to cinder, to address CVE-2023-2088,
cinder changed the policy rules and behavior for unbinding,
or "detaching" a volume. This was because of a vulnerability
in compute nodes where a volume which was in use by a VM
could be detached outside of Nova, and nova wouldn't become
aware the volume was detached, and the volume could be accessible
to the next VM.

This vulnerability doesn't apply to bare metal operations as
volumes are attached to whole baremetal nodes with Ironic.

We now generate and use a service token when interacting with
Cinder which allows cinder to recognize "this request is
coming from a fellow OpenStack service", and by-pass
checking with Nova if the "instance" is managed by Nova,
or Not. This allows the volumes to be attached, and detached
as needed as part of the power operation flow and overall
set of lifecycle operations.

Related-Bug: 2004555
Closes-Bug: 2019892

Change-Id: Ib258bc9650496da989fc93b759b112d279c8b217
(cherry picked from commit 9c0b4c90a1)
2023-05-19 13:45:06 +00:00
..
files CI: use a custom cirros partition image instead of the default 2022-02-16 10:12:06 +01:00
lib Fix Cinder Integration fallout from CVE-2023-2088 2023-05-19 13:45:06 +00:00
tools/ironic Bump cirros to version 0.6.1 2023-01-26 11:55:58 +01:00
upgrade Remove lib/neutron-legacy leftovers 2022-12-20 11:18:25 +01:00
common_settings Yoga: Change default boot mode to uefi 2021-10-04 11:57:55 -07:00
plugin.sh Fix unbound variable in devstack plugin 2023-01-02 10:10:50 +01:00
settings Change MTU logic to allow for lower MTUs automatically 2019-10-11 10:07:50 -07:00