mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
cozy:tenant:super-admin:base carried '*' on kubevirt.io virtualmachines. A VirtualMachine written directly is sized outside any application: it is not a HelmRelease the tenant ordered, so nothing that accounts for applications sees it, and the same verbs let a super-admin raise the guest size of a VM a VMInstance release rendered. Nothing in tree needs the write: power goes through the virtualmachines start/stop/restart subresources, console and VNC through the VMI subresources, size, disks and networking through VMInstance values. The grant arrived together with a '*' on helmreleases that was later removed; this one was missed. watch stays, because the dashboard watches the VirtualMachine for its live power state and no other tenant role grants it. The tenant roles are aggregated from ClusterRoles in several packages, so a write path can reach a tenant without touching the role that names it; the install e2e now guards against that. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>