mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
Make secrets RNG more strict
* docs/schemas/secret.rng: Require volume element to be an absolute path. Fix whitespace indentation
This commit is contained in:
parent
756be09d23
commit
67b2d5e0bf
@ -7,40 +7,40 @@
|
|||||||
<define name='secret'>
|
<define name='secret'>
|
||||||
<element name='secret'>
|
<element name='secret'>
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name='ephemeral'>
|
<attribute name='ephemeral'>
|
||||||
<choice>
|
<choice>
|
||||||
<value>yes</value>
|
<value>yes</value>
|
||||||
<value>no</value>
|
<value>no</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name='private'>
|
<attribute name='private'>
|
||||||
<choice>
|
<choice>
|
||||||
<value>yes</value>
|
<value>yes</value>
|
||||||
<value>no</value>
|
<value>no</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
<interleave>
|
<interleave>
|
||||||
<optional>
|
<optional>
|
||||||
<element name='uuid'>
|
<element name='uuid'>
|
||||||
<ref name='UUID'/>
|
<ref name='UUID'/>
|
||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<element name='description'>
|
<element name='description'>
|
||||||
<text/>
|
<text/>
|
||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<element name='usage'>
|
<element name='usage'>
|
||||||
<choice>
|
<choice>
|
||||||
<ref name='usagevolume'>
|
<ref name='usagevolume'>
|
||||||
</choice>
|
<!-- More choices later -->
|
||||||
<text/>
|
</choice>
|
||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
</interleave>
|
</interleave>
|
||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<value>volume</value>
|
<value>volume</value>
|
||||||
</attribute>
|
</attribute>
|
||||||
<element name='volume'>
|
<element name='volume'>
|
||||||
<text/>
|
<ref name='absFilePath'/>
|
||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
@ -65,4 +65,10 @@
|
|||||||
</choice>
|
</choice>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
<define name="absFilePath">
|
||||||
|
<data type="string">
|
||||||
|
<param name="pattern">/[a-zA-Z0-9_\.\+\-&/%]+</param>
|
||||||
|
</data>
|
||||||
|
</define>
|
||||||
|
|
||||||
</grammar>
|
</grammar>
|
||||||
|
Loading…
Reference in New Issue
Block a user