]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: secret: Relax requirements for usage name
authorPeter Krempa <pkrempa@redhat.com>
Wed, 6 Jan 2021 16:19:03 +0000 (17:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Jan 2021 08:18:21 +0000 (09:18 +0100)
commit9aa1a1ea77ba13db6539212472e7dfc624bb39b4
tree603e55c876b1fd19150ce4188ac65742e84f4751
parent1a3c07989b5bee79713e1f2014c0c31443878d1b
schema: secret: Relax requirements for usage name

There's plenty of existing documentation [1] which shows as example a
name which contains a space and a dot ('client.admin secret') as ceph
usage name.

Use a more relaxed type in the RNG schema since the usage name is
actually just a string used to look up the secret.

[1]:
https://docs.ceph.com/en/latest/rbd/libvirt/#configuring-the-vm
https://documentation.suse.com/ses/6/html/ses-all/cha-ceph-libvirt.html#ceph-libvirt-cfg-vm
Libvirt docs were correct though:
https://libvirt.org/formatsecret.html#CephUsageType

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689168

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/schemas/domaincommon.rng
docs/schemas/secret.rng
tests/qemuxml2argvdata/disk-network-source-auth.args
tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
tests/qemuxml2argvdata/disk-network-source-auth.xml
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/disk-network-source-auth.xml
tests/secretxml2xmlin/usage-ceph-space.xml [new file with mode: 0644]
tests/secretxml2xmltest.c