From 2a773f6ec033b239b3550049d60a95199fcd197c Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 29 Oct 2026 09:38:08 +0300 Subject: [PATCH] feat(virtsecrets): the secrets page on Bootstrap's cards, tables and dialogs - One searchable card: each secret's type, usage and UUID, whether it is kept on disk or in memory and private, and the VMs and pools that use it, linked. A row menu sets its value or deletes it; Delete is disabled while the secret is in use, and its confirmation says what is not checked. - One Set value dialog for every secret; its label and help follow the type (Ceph key, CHAP password, passphrase), and it says a new passphrase does not encrypt anew what the old one encrypted. - New secret dialog: the usage's and value's labels and help follow the type; the value is optional; Private and Ephemeral are switches with help. --- .../icon_cache/hdd-stack_None_None_None.svg | 14 ++ .../templates/create_secret_block.html | 89 ++++--- virtsecrets/templates/secrets.html | 229 ++++++++++++------ virtsecrets/tests/test_secrets_page.py | 47 +++- virtsecrets/views.py | 8 +- 5 files changed, 249 insertions(+), 138 deletions(-) create mode 100644 static/icon_cache/hdd-stack_None_None_None.svg diff --git a/static/icon_cache/hdd-stack_None_None_None.svg b/static/icon_cache/hdd-stack_None_None_None.svg new file mode 100644 index 00000000..0637766c --- /dev/null +++ b/static/icon_cache/hdd-stack_None_None_None.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/virtsecrets/templates/create_secret_block.html b/virtsecrets/templates/create_secret_block.html index 26e33296..ecc20a5d 100644 --- a/virtsecrets/templates/create_secret_block.html +++ b/virtsecrets/templates/create_secret_block.html @@ -1,57 +1,54 @@ {% load i18n %} {% load bootstrap_icons %} {% if request.user.is_superuser %} - - - + - -