Decide whether privacy VMs get a LUKS-encrypted root to allow persistent storage #135
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/archetypes#135
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?
Decide whether privacy VMs should get a LUKS-encrypted root, which would make persistent storage on those machines acceptable where today it is either unencrypted or deliberately avoided. This is an exploratory issue: the artifact is a recorded owner decision on the options below, with a follow-up implementation issue only if the answer is yes.
Primary goals:
/bootplus ext4/(allod/vmdisk.nix, imported bynixosModules.qemuGuestfor every guest). The qcow2 sits on the hypervisor's already-encrypted disk, so the image is protected while the hypervisor is powered off and exposed as plaintext while it is unlocked: a copy of the file, a backup, or a stray snapshot carries the guest's SSH host key, the Nix store with every ciphertext agenix will open with that key, and any user data the guest keeps on disk.nixos-anywherewith disko supports LUKS, but the host-key injection,new-vm --replace,rebuild-vm, and the kexec installer path each need a stated behaviour.Key-delivery options
A root compromise of a running hypervisor reads guest memory regardless of any of these, so none of them changes the posture against that; the honest framing is at-rest protection for the image file, and whether that is worth a boot-time human step.
Interactions to settle
/etc/ssh/<name>is the agenix identity; inside LUKS it is protected at rest, which closes the specific exposure that motivated this issue: a copied image yielding the key that opens every ciphertext the guest consumes.Scope
In: the decision, recorded here, and if yes a follow-up implementation issue naming the archetype(s), the key-delivery option, and the provisioning behaviour. Out: any change to
disk.nixor the builders under this issue; backup tooling for guest images.