From cac76b84cc66017e359e477a0f3aaa25f1bed39a Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 8 Nov 2026 17:48:42 +0300 Subject: [PATCH] docs: how the datasource finds a VM, and the console settings only a superuser changes The datasource names the VM by the reverse DNS name of the request's address and sends keys only when its first label is one VM's name. On the console settings, the listen address and removing the password of a console listening beyond localhost are a superuser's. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- README.md | 2 +- doc/permissions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ca8b473..3d431ae2 100644 --- a/README.md +++ b/README.md @@ -384,7 +384,7 @@ Every page is sent with `X-Frame-Options: DENY` and `Content-Security-Policy: sc ### Cloud-init datasource -WebVirtCloud serves cloud-init metadata to guest instances: the hostname, and the SSH keys of the VM's users for the image's default user. The host in the URL must be in `ALLOWED_HOSTS`: +WebVirtCloud serves cloud-init metadata to guest instances: the hostname, and the SSH keys of the VM's users for the image's default user. The panel finds the VM by the reverse DNS name of the address the request comes from: its first label must be the name of exactly one VM, or no keys are sent. The host in the URL must be in `ALLOWED_HOSTS`: ```yaml datasource: diff --git a/doc/permissions.md b/doc/permissions.md index 593e3720..f5eb7d0a 100644 --- a/doc/permissions.md +++ b/doc/permissions.md @@ -17,7 +17,7 @@ WebVirtCloud combines three kinds of access rights: | Start, shut down, power cycle, force off | ✅ | ✅ | — | ❌ | | Open the console (noVNC, `.vv` file for virt-viewer, VDI URL) | ✅ | ✅ | — | ❌ | | Resize CPU/memory/disk, set root password, add SSH key, change title/description | ✅ | ✅ | `is_change` | ❌ | -| Change console settings (type, VNC password, keymap) | ✅ | ✅ | `is_change` and `is_vnc` | ❌ | +| Change console settings (type, VNC password, keymap) | ✅ | ✅ | `is_change` and `is_vnc`; the listen address, and removing the password of a console that listens beyond localhost, are a superuser's | ❌ | | Snapshots | ✅ | ✅ | `is_change` and `instances.snapshot_instances` | ❌ | | Clone | ✅ | ✅ | `is_change` and `instances.clone_instances` (templates: viewing the template is enough) | templates only, with `instances.clone_instances` | | Delete the VM | ✅ | ✅ | `is_delete` | ❌ |