You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add microvm.credentialFiles for passing credentials to guests
This commit implements `microvm.credentialFiles` a mechanism for passing
credentials into guest vms from the host.
Currently only support for qemu is implemented as I want to test the waters to
see if you're interested in this feature, Astro.
In addition to qmeu cloud-hypervisor can be supported via smbios. But it depends
on [this feature being added](cloud-hypervisor/cloud-hypervisor#6951 (comment)), and also microvm-nix#336 being merged to microvm.nix
cloud-hypervisor could be supported immediately, but then the secrets would be
visible in the ps output.
A cursory code search shows that the following additional hypervisors could be
supported:
- crosvm: via fw_cfg, or smbios
- alioth: via fw_cfg
- stratovirt: via fw_cfg (maybe smbios)
kvmtool and firecracker both seem like they cannot be supported.
Related:
- microvm-nix#259
- microvm-nix#52
Copy file name to clipboardExpand all lines: nixos-modules/microvm/options.nix
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -660,6 +660,18 @@ in
660
660
This is required for commands like `microvm -l` to function but removes reference to the uncompressed store content when using a disk image for the nix store.
661
661
'';
662
662
};
663
+
664
+
credentialFiles=mkOption{
665
+
type=withtypes;attrsOfpath;
666
+
description=''
667
+
Key-value pairs of credential files that will be loaded into the vm using systemd's io.systemd.credential feature.
0 commit comments