SSH key injection at VM deploy time #35

Open
opened 2026-03-18 10:45:10 +00:00 by mahmoud · 0 comments
Owner

When deploying a VM, allow the user to provide one or more SSH public keys get injected into the VM at boot time.

fn deploy_vm() // gets a new optional param: ssh_keys?: [str]   # list of SSH public keys

The keys are passed to chvm/cloud-hypervisor via cloud-init or a similar mechanism so they are available in the VM on first boot.

Tasks:

  • Research how chvm supports SSH key injection (cloud-init? direct file?)
  • Add ssh_keys param to deploy_vm schema
  • Pass keys to hypervisor during VM creation
  • UI: SSH keys textarea in deploy modal
  • Show "SSH ready" indicator once VM is running and keys were provided
  • docs/api.md updated
When deploying a VM, allow the user to provide one or more SSH public keys get injected into the VM at boot time. ```rust fn deploy_vm() // gets a new optional param: ssh_keys?: [str] # list of SSH public keys ``` The keys are passed to chvm/cloud-hypervisor via cloud-init or a similar mechanism so they are available in the VM on first boot. Tasks: - [ ] Research how chvm supports SSH key injection (cloud-init? direct file?) - [ ] Add ssh_keys param to deploy_vm schema - [ ] Pass keys to hypervisor during VM creation - [ ] UI: SSH keys textarea in deploy modal - [ ] Show "SSH ready" indicator once VM is running and keys were provided - [ ] docs/api.md updated
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_compute#35
No description provided.