summaryrefslogtreecommitdiff
path: root/nova/conf/compute.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-03-23 13:34:14 +0000
committerGerrit Code Review <review@openstack.org>2023-03-23 13:34:14 +0000
commitcdccf4ed2ad5d73756b76bb2740e93010f8a33af (patch)
tree62475989507643a42a1a1d7b401fcf704022393d /nova/conf/compute.py
parent898593e223ce837ffe0a4fa853677fe1d029d02e (diff)
parenteabb16a421326388c8d53a1b6ca47d79a03e0e16 (diff)
downloadnova-cdccf4ed2ad5d73756b76bb2740e93010f8a33af.tar.gz
Merge "[stable-only][cve] Check VMDK create-type against an allowed list" into stable/victoriastable/victoria
Diffstat (limited to 'nova/conf/compute.py')
-rw-r--r--nova/conf/compute.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/conf/compute.py b/nova/conf/compute.py
index 92b5ab7918..cdd282a862 100644
--- a/nova/conf/compute.py
+++ b/nova/conf/compute.py
@@ -986,6 +986,15 @@ Additional documentation is available here:
https://docs.openstack.org/nova/latest/admin/managing-resource-providers.html
"""),
+ 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
+form of VMDK image will be allowed.
+"""),
]
interval_opts = [