1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 11:46:49 +00:00
webvirtcloud/instances/templates
catborise 8e23699987 fix(instances): show console settings and the VNC password only to console managers
The console settings form on the VM detail page renders the VNC password
(PasswordInput(render_value=True)) and was shown to every is_staff user.
A staff user with the global view_instances permission, or a staff owner
without is_vnc, could read the VNC password of every VM they could see.

Add instances.utils.can_manage_console (active superuser, or an active
owner with is_change and is_vnc), which matches what update_console
already enforced. The detail view only builds the form, and so only puts
the password into the page, when it returns True; the template and
update_console use the same rule.
2026-10-02 22:04:05 +03:00
..
instances fix(instances): show console settings and the VNC password only to console managers 2026-10-02 22:04:05 +03:00
add_instance_network_block.html change name for network model to nic type 2023-08-17 13:22:18 +03:00
add_instance_owner_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
add_instance_volume.html logger updates (#31) 2023-08-09 09:20:18 +03:00
allinstances.html fix listing vms for normal users 2024-02-13 14:24:38 +03:00
allinstances_index_grouped.html fix listing vms for normal users 2024-02-13 14:24:38 +03:00
allinstances_index_nongrouped.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
bottom_bar.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_flav_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_inst_block.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
create_instance_w1.html Rest framework (#24) 2022-08-22 15:12:33 +03:00
create_instance_w2.html feat(console): remove deprecated SPICE support in favor of noVNC 2026-09-26 22:43:40 +03:00
instance.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
instance_actions.html feat(security): enforce require_POST on power actions, prevent open redirects, and isolate instance permissions 2026-09-27 13:20:45 +03:00