cinder/cinder/image
Eric Harney 0297964207 Abort volume creation when encryption spec is invalid
When the encryption spec is missing the cipher field,
just fail the request rather than sending an invalid
request to Castellan and letting the Barbican server
reject it.

This happens when an admin had previously created an
invalid encryption spec.

Similarly, check for a malformed cipher field in
image_utils decode_cipher, such as "aes" instead of
"aes-xts-plain64".  An invalid cipher field like this
would previously cause a failure during volume creation
in some volume drivers.

Partial-Bug: #1926630 (1/2)
Change-Id: Ia4b1c303a057fe70cf88bdbbebc1d4f62474f011
(cherry picked from commit 0a1cc1a2d4)
2021-07-09 10:36:31 -04:00
..
accelerators Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
accelerator.py Merge "Don't create LOG if not logging" 2020-10-22 16:30:49 +00:00
cache.py Remove six of dir cinder/image/* 2020-10-13 09:06:09 +08:00
glance.py Open local image files with "rb" mode 2021-04-19 12:39:39 -04:00
image_utils.py Abort volume creation when encryption spec is invalid 2021-07-09 10:36:31 -04:00