Blame SOURCES/libvirt-qemuDomainSecretStorageSourcePrepare-Change-aliases-for-disk-secrets.patch

d76c62
From 753a2f4071eadeed34e92c9b3b98423ae33fbfad Mon Sep 17 00:00:00 2001
d76c62
Message-Id: <753a2f4071eadeed34e92c9b3b98423ae33fbfad@dist-git>
d76c62
From: Peter Krempa <pkrempa@redhat.com>
d76c62
Date: Mon, 16 Mar 2020 22:11:54 +0100
d76c62
Subject: [PATCH] qemuDomainSecretStorageSourcePrepare: Change aliases for disk
d76c62
 secrets
d76c62
MIME-Version: 1.0
d76c62
Content-Type: text/plain; charset=UTF-8
d76c62
Content-Transfer-Encoding: 8bit
d76c62
d76c62
Originally there was only the secret for authentication so we didn't use
d76c62
any suffix to tell it apart. With the introduction of encryption we
d76c62
added a 'luks' suffix for the encryption secrets. Since encryption is
d76c62
really generic and authentication is not the only secret modify the
d76c62
aliases for the secrets to better describe what they are used for.
d76c62
d76c62
This is possible as we store the disk secrets in the status XML thus
d76c62
only new machines will use the new secrets.
d76c62
d76c62
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
d76c62
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d76c62
(cherry picked from commit 70d2758a9cee795b26563fe33b38a2396efa2324)
d76c62
https://bugzilla.redhat.com/show_bug.cgi?id=1804750
d76c62
Message-Id: <ca3a038969c81a17495add50a445901d5e42de5a.1584391727.git.pkrempa@redhat.com>
d76c62
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d76c62
---
d76c62
 src/qemu/qemu_domain.c                        |  4 +--
d76c62
 ...-backing-chains-noindex.x86_64-2.12.0.args |  4 +--
d76c62
 ...-backing-chains-noindex.x86_64-latest.args |  6 ++--
d76c62
 ...sk-hostdev-scsi-virtio-iscsi-auth-AES.args |  6 ++--
d76c62
 .../disk-network-iscsi.x86_64-2.12.0.args     | 12 +++----
d76c62
 .../disk-network-iscsi.x86_64-latest.args     |  8 ++---
d76c62
 .../disk-network-rbd.x86_64-2.12.0.args       |  4 +--
d76c62
 .../disk-network-rbd.x86_64-latest.args       |  4 +--
d76c62
 ...isk-network-source-auth.x86_64-2.12.0.args | 10 +++---
d76c62
 ...isk-network-source-auth.x86_64-latest.args |  8 ++---
d76c62
 .../disk-nvme.x86_64-latest.args              |  4 +--
d76c62
 .../encrypted-disk-usage.args                 |  4 +--
d76c62
 tests/qemuxml2argvdata/encrypted-disk.args    |  4 +--
d76c62
 .../luks-disks-source-qcow2.args              | 24 +++++++-------
d76c62
 ...luks-disks-source-qcow2.x86_64-latest.args | 32 +++++++++----------
d76c62
 tests/qemuxml2argvdata/luks-disks-source.args | 26 ++++++++-------
d76c62
 tests/qemuxml2argvdata/luks-disks.args        | 10 +++---
d76c62
 tests/qemuxml2argvdata/user-aliases.args      |  4 +--
d76c62
 18 files changed, 90 insertions(+), 84 deletions(-)
d76c62
d76c62
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
d76c62
index 3599e0c9aa..65df463acc 100644
d76c62
--- a/src/qemu/qemu_domain.c
d76c62
+++ b/src/qemu/qemu_domain.c
d76c62
@@ -1786,7 +1786,7 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,
d76c62
                                                             &src->auth->seclookupdef);
d76c62
         } else {
d76c62
             srcPriv->secinfo = qemuDomainSecretAESSetupFromSecret(priv, aliasprotocol,
d76c62
-                                                                  NULL,
d76c62
+                                                                  "auth",
d76c62
                                                                   usageType,
d76c62
                                                                   src->auth->username,
d76c62
                                                                   &src->auth->seclookupdef);
d76c62
@@ -1798,7 +1798,7 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,
d76c62
 
d76c62
     if (hasEnc) {
d76c62
         if (!(srcPriv->encinfo = qemuDomainSecretAESSetupFromSecret(priv, aliasformat,
d76c62
-                                                                    "luks",
d76c62
+                                                                    "encryption",
d76c62
                                                                     VIR_SECRET_USAGE_TYPE_VOLUME,
d76c62
                                                                     NULL,
d76c62
                                                                     &src->encryption->secrets[0]->seclookupdef)))
d76c62
diff --git a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
d76c62
index a8675debd5..47691339d6 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
d76c62
@@ -39,12 +39,12 @@ id=virtio-disk1 \
d76c62
 if=none,id=drive-virtio-disk2 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk2,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=virtio-disk3-secret0,\
d76c62
+-object secret,id=virtio-disk3-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
d76c62
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
d76c62
-6322,file.password-secret=virtio-disk3-secret0,format=qcow2,if=none,\
d76c62
+6322,file.password-secret=virtio-disk3-auth-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk3' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk3,\
d76c62
 id=virtio-disk3 \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
d76c62
index 4108943574..23ceb0aa48 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
d76c62
@@ -80,15 +80,15 @@ id=virtio-disk2 \
d76c62
 "node-name":"libvirt-15-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-15-format","read-only":true,"driver":"qcow2",\
d76c62
 "file":"libvirt-15-storage","backing":null}' \
d76c62
--object secret,id=libvirt-14-storage-secret0,\
d76c62
+-object secret,id=libvirt-14-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
d76c62
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
d76c62
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
d76c62
 "auth-client-required":["cephx","none"],\
d76c62
-"key-secret":"libvirt-14-storage-secret0","node-name":"libvirt-14-storage",\
d76c62
-"auto-read-only":true,"discard":"unmap"}' \
d76c62
+"key-secret":"libvirt-14-storage-auth-secret0",\
d76c62
+"node-name":"libvirt-14-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-14-format","read-only":false,"driver":"qcow2",\
d76c62
 "file":"libvirt-14-storage","backing":"libvirt-15-format"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-14-format,\
d76c62
diff --git a/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args b/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
d76c62
index aece52dad2..47b014aacc 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
d76c62
@@ -28,13 +28,13 @@ server,nowait \
d76c62
 -no-acpi \
d76c62
 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3 \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-secret0,\
d76c62
+-object secret,id=virtio-disk0-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file.driver=iscsi,file.portal=example.org:6000,\
d76c62
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
d76c62
-file.user=myname,file.password-secret=virtio-disk0-secret0,format=raw,if=none,\
d76c62
-id=drive-virtio-disk0 \
d76c62
+file.user=myname,file.password-secret=virtio-disk0-auth-secret0,format=raw,\
d76c62
+if=none,id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
 -object secret,id=hostdev0-secret0,\
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
d76c62
index 55347521da..930d8d5db2 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
d76c62
@@ -38,22 +38,22 @@ file.target=iqn.1992-01.com.example,file.lun=1,file.transport=tcp,format=raw,\
d76c62
 if=none,id=drive-virtio-disk1 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,\
d76c62
 id=virtio-disk1 \
d76c62
--object secret,id=virtio-disk2-secret0,\
d76c62
+-object secret,id=virtio-disk2-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file.driver=iscsi,file.portal=example.org:6000,\
d76c62
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
d76c62
-file.user=myname,file.password-secret=virtio-disk2-secret0,format=raw,if=none,\
d76c62
-id=drive-virtio-disk2 \
d76c62
+file.user=myname,file.password-secret=virtio-disk2-auth-secret0,format=raw,\
d76c62
+if=none,id=drive-virtio-disk2 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=virtio-disk3-secret0,\
d76c62
+-object secret,id=virtio-disk3-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file.driver=iscsi,file.portal=example.org:6000,\
d76c62
 file.target=iqn.1992-01.com.example:storage,file.lun=2,file.transport=tcp,\
d76c62
-file.user=myname,file.password-secret=virtio-disk3-secret0,format=raw,if=none,\
d76c62
-id=drive-virtio-disk3 \
d76c62
+file.user=myname,file.password-secret=virtio-disk3-auth-secret0,format=raw,\
d76c62
+if=none,id=drive-virtio-disk3 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk3,\
d76c62
 id=virtio-disk3 \
d76c62
 -drive file.driver=iscsi,file.portal=example.org:3260,\
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
d76c62
index 8831db6622..1cb2f369f6 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
d76c62
@@ -42,23 +42,23 @@ id=virtio-disk0,bootindex=1 \
d76c62
 "file":"libvirt-4-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=libvirt-4-format,\
d76c62
 id=virtio-disk1 \
d76c62
--object secret,id=libvirt-3-storage-secret0,\
d76c62
+-object secret,id=libvirt-3-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
d76c62
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
d76c62
-"user":"myname","password-secret":"libvirt-3-storage-secret0",\
d76c62
+"user":"myname","password-secret":"libvirt-3-storage-auth-secret0",\
d76c62
 "node-name":"libvirt-3-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-3-format","read-only":false,"driver":"raw",\
d76c62
 "file":"libvirt-3-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-3-format,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=libvirt-2-storage-secret0,\
d76c62
+-object secret,id=libvirt-2-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
d76c62
 "target":"iqn.1992-01.com.example:storage","lun":2,"transport":"tcp",\
d76c62
-"user":"myname","password-secret":"libvirt-2-storage-secret0",\
d76c62
+"user":"myname","password-secret":"libvirt-2-storage-auth-secret0",\
d76c62
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
d76c62
 "file":"libvirt-2-storage"}' \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
d76c62
index 18cb534552..21d1c2deba 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
d76c62
@@ -45,12 +45,12 @@ id=virtio-disk2 \
d76c62
 format=raw,if=none,id=drive-virtio-disk3 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk3,\
d76c62
 id=virtio-disk3 \
d76c62
--object secret,id=virtio-disk4-secret0,\
d76c62
+-object secret,id=virtio-disk4-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
d76c62
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
d76c62
-6322,file.password-secret=virtio-disk4-secret0,format=raw,if=none,\
d76c62
+6322,file.password-secret=virtio-disk4-auth-secret0,format=raw,if=none,\
d76c62
 id=drive-virtio-disk4' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk4,\
d76c62
 id=virtio-disk4 \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
d76c62
index 2d05e63cd2..4c26dad497 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
d76c62
@@ -56,14 +56,14 @@ id=virtio-disk2 \
d76c62
 "file":"libvirt-3-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-3-format,\
d76c62
 id=virtio-disk3 \
d76c62
--object secret,id=libvirt-2-storage-secret0,\
d76c62
+-object secret,id=libvirt-2-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
d76c62
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
d76c62
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
d76c62
 "auth-client-required":["cephx","none"],\
d76c62
-"key-secret":"libvirt-2-storage-secret0","node-name":"libvirt-2-storage",\
d76c62
+"key-secret":"libvirt-2-storage-auth-secret0","node-name":"libvirt-2-storage",\
d76c62
 "auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
d76c62
 "file":"libvirt-2-storage"}' \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
d76c62
index f34c6b678d..279d5c73ec 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
d76c62
@@ -27,21 +27,21 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
d76c62
 -no-acpi \
d76c62
 -boot strict=on \
d76c62
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
d76c62
--object secret,id=virtio-disk0-secret0,\
d76c62
+-object secret,id=virtio-disk0-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file.driver=iscsi,file.portal=example.org:6000,\
d76c62
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
d76c62
-file.user=myname,file.password-secret=virtio-disk0-secret0,format=raw,if=none,\
d76c62
-id=drive-virtio-disk0 \
d76c62
+file.user=myname,file.password-secret=virtio-disk0-auth-secret0,format=raw,\
d76c62
+if=none,id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=virtio-disk1-secret0,\
d76c62
+-object secret,id=virtio-disk1-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
d76c62
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
d76c62
-6322,file.password-secret=virtio-disk1-secret0,format=raw,if=none,\
d76c62
+6322,file.password-secret=virtio-disk1-auth-secret0,format=raw,if=none,\
d76c62
 id=drive-virtio-disk1' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk1,\
d76c62
 id=virtio-disk1 \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
d76c62
index 057cd97273..182c8ab883 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
d76c62
@@ -27,25 +27,25 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
d76c62
 -no-acpi \
d76c62
 -boot strict=on \
d76c62
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
d76c62
--object secret,id=libvirt-2-storage-secret0,\
d76c62
+-object secret,id=libvirt-2-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
d76c62
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
d76c62
-"user":"myname","password-secret":"libvirt-2-storage-secret0",\
d76c62
+"user":"myname","password-secret":"libvirt-2-storage-auth-secret0",\
d76c62
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
d76c62
 "file":"libvirt-2-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=libvirt-2-format,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=libvirt-1-storage-secret0,\
d76c62
+-object secret,id=libvirt-1-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
d76c62
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
d76c62
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
d76c62
 "auth-client-required":["cephx","none"],\
d76c62
-"key-secret":"libvirt-1-storage-secret0","node-name":"libvirt-1-storage",\
d76c62
+"key-secret":"libvirt-1-storage-auth-secret0","node-name":"libvirt-1-storage",\
d76c62
 "auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\
d76c62
 "file":"libvirt-1-storage"}' \
d76c62
diff --git a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
d76c62
index 3393a9129b..2d52c58dff 100644
d76c62
--- a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
d76c62
@@ -46,7 +46,7 @@ id=virtio-disk1 \
d76c62
 "file":"libvirt-2-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=libvirt-2-format,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=libvirt-1-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-1-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"nvme","device":"0001:02:00.0","namespace":2,\
d76c62
@@ -54,7 +54,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 "auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,\
d76c62
 "cache":{"direct":true,"no-flush":false},"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-1-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-1-format-encryption-secret0"},\
d76c62
 "file":"libvirt-1-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=libvirt-1-format,\
d76c62
 id=virtio-disk3,write-cache=on \
d76c62
diff --git a/tests/qemuxml2argvdata/encrypted-disk-usage.args b/tests/qemuxml2argvdata/encrypted-disk-usage.args
d76c62
index 4522d2cb84..8641701293 100644
d76c62
--- a/tests/qemuxml2argvdata/encrypted-disk-usage.args
d76c62
+++ b/tests/qemuxml2argvdata/encrypted-disk-usage.args
d76c62
@@ -27,11 +27,11 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
d76c62
 -no-shutdown \
d76c62
 -no-acpi \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-luks-secret0,\
d76c62
+-object secret,id=virtio-disk0-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
diff --git a/tests/qemuxml2argvdata/encrypted-disk.args b/tests/qemuxml2argvdata/encrypted-disk.args
d76c62
index 4522d2cb84..8641701293 100644
d76c62
--- a/tests/qemuxml2argvdata/encrypted-disk.args
d76c62
+++ b/tests/qemuxml2argvdata/encrypted-disk.args
d76c62
@@ -27,11 +27,11 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
d76c62
 -no-shutdown \
d76c62
 -no-acpi \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-luks-secret0,\
d76c62
+-object secret,id=virtio-disk0-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
diff --git a/tests/qemuxml2argvdata/luks-disks-source-qcow2.args b/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
d76c62
index ab1c864cf6..e7a29b2e03 100644
d76c62
--- a/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
d76c62
+++ b/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
d76c62
@@ -27,53 +27,53 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
d76c62
 -no-shutdown \
d76c62
 -no-acpi \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-luks-secret0,\
d76c62
+-object secret,id=virtio-disk0-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=virtio-disk1-luks-secret0,\
d76c62
+-object secret,id=virtio-disk1-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk2,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk1-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk1-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk1 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
d76c62
 id=virtio-disk1 \
d76c62
--object secret,id=virtio-disk2-luks-secret0,\
d76c62
+-object secret,id=virtio-disk2-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\
d76c62
 6000/iqn.1992-01.com.example%3Astorage/1,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk2-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk2-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk2 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=virtio-disk3-luks-secret0,\
d76c62
+-object secret,id=virtio-disk3-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=iscsi://iscsi.example.com:3260/demo-target/3,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk3-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk3-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk3 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-virtio-disk3,\
d76c62
 id=virtio-disk3 \
d76c62
--object secret,id=virtio-disk4-luks-secret0,\
d76c62
+-object secret,id=virtio-disk4-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive 'file=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\:\
d76c62
 6321\;mon2.example.org\:6322\;mon3.example.org\:6322,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk4-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk4-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk4' \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk4,\
d76c62
 id=virtio-disk4 \
d76c62
--object secret,id=virtio-disk5-luks-secret0,\
d76c62
+-object secret,id=virtio-disk5-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk5,encrypt.format=luks,\
d76c62
-encrypt.key-secret=virtio-disk5-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=virtio-disk5-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-virtio-disk5 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x9,drive=drive-virtio-disk5,\
d76c62
 id=virtio-disk5 \
d76c62
diff --git a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
d76c62
index 021bcb6961..44e4c5698d 100644
d76c62
--- a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
d76c62
+++ b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
d76c62
@@ -28,53 +28,53 @@ file=/tmp/lib/domain--1-encryptdisk/master-key.aes \
d76c62
 -no-acpi \
d76c62
 -boot strict=on \
d76c62
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
d76c62
--object secret,id=libvirt-7-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-7-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk",\
d76c62
 "node-name":"libvirt-7-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-7-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-7-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-7-format-encryption-secret0"},\
d76c62
 "file":"libvirt-7-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=libvirt-7-format,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=libvirt-6-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-6-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk2",\
d76c62
 "node-name":"libvirt-6-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-6-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-6-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-6-format-encryption-secret0"},\
d76c62
 "file":"libvirt-6-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-6-format,\
d76c62
 id=virtio-disk1 \
d76c62
--object secret,id=libvirt-5-storage-secret0,\
d76c62
+-object secret,id=libvirt-5-storage-auth-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
--object secret,id=libvirt-5-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-5-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
d76c62
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
d76c62
-"user":"myname","password-secret":"libvirt-5-storage-secret0",\
d76c62
+"user":"myname","password-secret":"libvirt-5-storage-auth-secret0",\
d76c62
 "node-name":"libvirt-5-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-5-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-5-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-5-format-encryption-secret0"},\
d76c62
 "file":"libvirt-5-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=libvirt-5-format,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=libvirt-4-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-4-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"iscsi","portal":"iscsi.example.com:3260",\
d76c62
 "target":"demo-target","lun":3,"transport":"tcp",\
d76c62
 "node-name":"libvirt-4-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-4-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-4-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-4-format-encryption-secret0"},\
d76c62
 "file":"libvirt-4-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=libvirt-4-format,\
d76c62
 id=virtio-disk3 \
d76c62
--object secret,id=libvirt-3-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-3-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
d76c62
@@ -82,25 +82,25 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],\
d76c62
 "node-name":"libvirt-3-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-3-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-3-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-3-format-encryption-secret0"},\
d76c62
 "file":"libvirt-3-storage"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=libvirt-3-format,\
d76c62
 id=virtio-disk4 \
d76c62
--object secret,id=libvirt-2-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-2-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/base.qcow2",\
d76c62
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-2-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-2-format-encryption-secret0"},\
d76c62
 "file":"libvirt-2-storage","backing":null}' \
d76c62
--object secret,id=libvirt-1-format-luks-secret0,\
d76c62
+-object secret,id=libvirt-1-format-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk5",\
d76c62
 "node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
d76c62
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2",\
d76c62
-"encrypt":{"format":"luks","key-secret":"libvirt-1-format-luks-secret0"},\
d76c62
+"encrypt":{"format":"luks","key-secret":"libvirt-1-format-encryption-secret0"},\
d76c62
 "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \
d76c62
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=libvirt-1-format,\
d76c62
 id=virtio-disk5 \
d76c62
diff --git a/tests/qemuxml2argvdata/luks-disks-source.args b/tests/qemuxml2argvdata/luks-disks-source.args
d76c62
index 4566f84ff1..e2bd559212 100644
d76c62
--- a/tests/qemuxml2argvdata/luks-disks-source.args
d76c62
+++ b/tests/qemuxml2argvdata/luks-disks-source.args
d76c62
@@ -27,41 +27,45 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
d76c62
 -no-shutdown \
d76c62
 -no-acpi \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-luks-secret0,\
d76c62
+-object secret,id=virtio-disk0-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk,\
d76c62
-key-secret=virtio-disk0-luks-secret0,format=luks,if=none,id=drive-virtio-disk0 \
d76c62
+key-secret=virtio-disk0-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=virtio-disk1-luks-secret0,\
d76c62
+-object secret,id=virtio-disk1-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk2,\
d76c62
-key-secret=virtio-disk1-luks-secret0,format=luks,if=none,id=drive-virtio-disk1 \
d76c62
+key-secret=virtio-disk1-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk1 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
d76c62
 id=virtio-disk1 \
d76c62
--object secret,id=virtio-disk2-luks-secret0,\
d76c62
+-object secret,id=virtio-disk2-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\
d76c62
-6000/iqn.1992-01.com.example%3Astorage/1,key-secret=virtio-disk2-luks-secret0,\
d76c62
-format=luks,if=none,id=drive-virtio-disk2 \
d76c62
+6000/iqn.1992-01.com.example%3Astorage/1,\
d76c62
+key-secret=virtio-disk2-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk2 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,\
d76c62
 id=virtio-disk2 \
d76c62
--object secret,id=virtio-disk3-luks-secret0,\
d76c62
+-object secret,id=virtio-disk3-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=iscsi://iscsi.example.com:3260/demo-target/3,\
d76c62
-key-secret=virtio-disk3-luks-secret0,format=luks,if=none,id=drive-virtio-disk3 \
d76c62
+key-secret=virtio-disk3-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk3 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-virtio-disk3,\
d76c62
 id=virtio-disk3 \
d76c62
--object secret,id=virtio-disk4-luks-secret0,\
d76c62
+-object secret,id=virtio-disk4-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive 'file=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\:\
d76c62
 6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\
d76c62
-key-secret=virtio-disk4-luks-secret0,format=luks,if=none,\
d76c62
+key-secret=virtio-disk4-encryption-secret0,format=luks,if=none,\
d76c62
 id=drive-virtio-disk4' \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk4,\
d76c62
 id=virtio-disk4 \
d76c62
diff --git a/tests/qemuxml2argvdata/luks-disks.args b/tests/qemuxml2argvdata/luks-disks.args
d76c62
index db1ae45b60..47626966f2 100644
d76c62
--- a/tests/qemuxml2argvdata/luks-disks.args
d76c62
+++ b/tests/qemuxml2argvdata/luks-disks.args
d76c62
@@ -27,18 +27,20 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
d76c62
 -no-shutdown \
d76c62
 -no-acpi \
d76c62
 -usb \
d76c62
--object secret,id=virtio-disk0-luks-secret0,\
d76c62
+-object secret,id=virtio-disk0-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk,\
d76c62
-key-secret=virtio-disk0-luks-secret0,format=luks,if=none,id=drive-virtio-disk0 \
d76c62
+key-secret=virtio-disk0-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk0 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
d76c62
 id=virtio-disk0,bootindex=1 \
d76c62
--object secret,id=virtio-disk1-luks-secret0,\
d76c62
+-object secret,id=virtio-disk1-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/storage/guest_disks/encryptdisk2,\
d76c62
-key-secret=virtio-disk1-luks-secret0,format=luks,if=none,id=drive-virtio-disk1 \
d76c62
+key-secret=virtio-disk1-encryption-secret0,format=luks,if=none,\
d76c62
+id=drive-virtio-disk1 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
d76c62
 id=virtio-disk1 \
d76c62
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
d76c62
diff --git a/tests/qemuxml2argvdata/user-aliases.args b/tests/qemuxml2argvdata/user-aliases.args
d76c62
index 54463386cd..88e540bc3c 100644
d76c62
--- a/tests/qemuxml2argvdata/user-aliases.args
d76c62
+++ b/tests/qemuxml2argvdata/user-aliases.args
d76c62
@@ -48,11 +48,11 @@ id=drive-ua-myDisk1,cache=none \
d76c62
 id=drive-ua-myDisk2 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-ua-myDisk2,id=ua-myDisk2,\
d76c62
 bootindex=1 \
d76c62
--object secret,id=ua-myEncryptedDisk1-luks-secret0,\
d76c62
+-object secret,id=ua-myEncryptedDisk1-encryption-secret0,\
d76c62
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
d76c62
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
d76c62
 -drive file=/var/lib/libvirt/images/OtherDemo.img,encrypt.format=luks,\
d76c62
-encrypt.key-secret=ua-myEncryptedDisk1-luks-secret0,format=qcow2,if=none,\
d76c62
+encrypt.key-secret=ua-myEncryptedDisk1-encryption-secret0,format=qcow2,if=none,\
d76c62
 id=drive-ua-myEncryptedDisk1 \
d76c62
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-ua-myEncryptedDisk1,\
d76c62
 id=ua-myEncryptedDisk1 \
d76c62
-- 
d76c62
2.25.1
d76c62