mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
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.
This commit is contained in:
parent
665ade00c8
commit
8c96fa957f
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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` | ❌ |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue