Project

General

Profile

Actions

action #121729

closed

coordination #121726: [epic] Get management access to o3/osd and other QE related VMs

[timeboxed:10h][research] Find out what libvirt can do to provide access only to a single VM for users/groups

Added by okurz over 1 year ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2022-12-08
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by okurz 10 months ago

  • Status changed from New to In Progress
  • Assignee set to okurz
  • Target version changed from future to Ready

Picking this up in preparation for #132149

I researched on multiple pages including

all I found are a lot of different ways how to support authenticating with libvirtd not needing user accounts or root on the hypervisor host but nothing really about restricting access to individual machines. The best I could think of is allowing ssh logins of non-privileged users and then use a customized sudo config to only allow selected calls like "virsh console ariel"

Actions #2

Updated by okurz 10 months ago

  • Status changed from In Progress to Resolved

https://serverfault.com/questions/808172/how-to-create-a-environment-where-each-users-vm-is-isolated also explains that with PolicyKit this should generally be possible but I don't think we should ask Eng-Infra to do that for us as it looks like it's too complicated and low-level to be generally useful. ChatGPT supports that understanding. https://github.com/fxkr/virt-access is an unfinished showcase of that idea.

Actions

Also available in: Atom PDF