1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/virtsecrets
catborise f4cdd91210 fix(virtsecrets): saving a secret's value unchanged keeps it
get_secret_value returned bytes, so the edit dialog showed b'cHc=' (the
bytes' repr) for the base64 value cHc=. Saving the dialog as shown fed
"b'cHc='" to b64decode, which dropped the quotes and the b and stored
other bytes: the secret silently changed (pw became m\xc1\xdc). The value
is now base64 text, and set_secret_value decodes with validate=True, so
a value that is not base64 is refused with a message instead. The field
had an invalid pattern ([a-zA-Z0-9]$+, ignored by browsers) and a 45
character limit; it takes base64 of any length.
2026-10-19 21:17:44 +03:00
..
migrations Django 3.2.4 LTS upgrade 2021-06-15 13:28:47 +03:00
templates fix(virtsecrets): saving a secret's value unchanged keeps it 2026-10-19 21:17:44 +03:00
tests fix(virtsecrets): saving a secret's value unchanged keeps it 2026-10-19 21:17:44 +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