guest-base: make the operator account optional for root-only guests #11
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/vm#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A guest with no operator account should be able to compose the shared guest base without undoing an account it never asked for. Today
modules/guest-base.nixalways createsusers.users.${username}as a normal user inwheelwith the hypervisor's keys, andmodules/qemu-guest.nixchowns/home/${username}; the newservicearchetype inallod/archetypes(allod/archetypes#137) is root-only, passesusername = "root", and has tomkForceisNormalUserback to false and replace the key list, which works but is a trap for the next reader.Primary goals:
username = null(or an explicitallod.vm.operatorAccount = false) and gets sshd, the Nix settings and the runtime assertion, but no login account, no sudo, no/homechown; the hypervisor's keys then authorize root instead, since a guest with no account must still be reachable by the machine that provisions it.mkServiceVmpasses no username and removes the twomkForces and their comment.Scope
In:
modules/guest-base.nix,modules/qemu-guest.nix, the README. Out: the archetypes side, which follows under its own issue after the lock bump.