The central question is: how do you manage secrets like SSH keys, API keys, and passwords for disposable VMs ? 🤷♂️ Let's establish some ground rules for this scenario. Suppose I want to pass an API key to the VM chimera , which is run by the chimera-runner user on the host. My security requirements are: On the host, only root and chimera-runner should have access to the secrets. In VM chimera , only root and relevant service users should have access to the secrets. No one from other VMs, including their root users, should have access to VM chimera 's secrets. The guest VMs themselves are not trusted . The bootc documentation on this topic is very informative. On a high level, there are a few ways to achieve this. 1. OEM Strings / Firmware QEMU can pass data to a VM via SMBIOS OEM strings ( -smbios ) or firmware configuration ( -fw_cfg ). Notably, both methods are supported by systemd-creds using special keys. This approach is practical for sma...
久病成医 | Prolonged Illness Makes the Patient a Good Doctor