1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 04:06:47 +00:00
webvirtcloud/virtsecrets
catborise 66151d42b1 fix(virtsecrets): a secret's usage value goes into its XML as text
create_secret wrote the usage value into the secret XML with an f-string,
unchecked: a quote, "<" or "&" broke the XML or added to it. The page's
pattern ([a-z0-9. ]+) was the only check and refused real values: a
volume secret's path ("/") and an iSCSI IQN ("-", ":"). The XML is now
built with lxml, so the value is text whatever it holds, and the input
keeps only required and the form's 100 characters; libvirt reports a
value it does not take.

A live test creates a volume, an iSCSI and a Ceph secret with real
values through the page.
2026-10-19 16:43:06 +03:00
..
migrations Django 3.2.4 LTS upgrade 2021-06-15 13:28:47 +03:00
templates fix(virtsecrets): a secret's usage value goes into its XML as text 2026-10-19 16:43:06 +03:00
tests fix(virtsecrets): a secret's usage value goes into its XML as text 2026-10-19 16:43:06 +03:00
__init__.py Django 3.2.4 LTS upgrade 2021-06-15 13:28:47 +03:00
forms.py format python code with black 2022-11-02 08:54:35 +03:00
models.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
views.py reorg imports and black format 2022-11-02 16:05:41 +03:00