summaryrefslogtreecommitdiff
path: root/glance/common/config.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-03-07 16:58:27 +0000
committerGerrit Code Review <review@openstack.org>2023-03-07 16:58:27 +0000
commiteb6ad61c1edafd79fa3fd583f119838de6771838 (patch)
tree8a578cdb3e8789666796887575fed23250779ab1 /glance/common/config.py
parent5930c56125886710443321bc4f863f8b2e81c31a (diff)
parent7756a90b7dacf44061d473eb03b92d2a40a307f6 (diff)
downloadglance-stable/train.tar.gz
Merge "Enforce image safety during image_conversion" into stable/trainstable/train
Diffstat (limited to 'glance/common/config.py')
-rw-r--r--glance/common/config.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/glance/common/config.py b/glance/common/config.py
index b5fe91ad6..6b6f24410 100644
--- a/glance/common/config.py
+++ b/glance/common/config.py
@@ -98,6 +98,18 @@ image_format_opts = [
"image attribute"),
deprecated_opts=[cfg.DeprecatedOpt('disk_formats',
group='DEFAULT')]),
+ cfg.ListOpt('vmdk_allowed_types',
+ default=['streamOptimized', 'monolithicSparse'],
+ help=_("A list of strings describing allowed VMDK "
+ "'create-type' subformats that will be allowed. "
+ "This is recommended to only include "
+ "single-file-with-sparse-header variants to avoid "
+ "potential host file exposure due to processing named "
+ "extents. If this list is empty, then no VDMK image "
+ "types allowed. Note that this is currently only "
+ "checked during image conversion (if enabled), and "
+ "limits the types of VMDK images we will convert "
+ "from.")),
]
task_opts = [
cfg.IntOpt('task_time_to_live',