render / rpms / libvirt

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