bug: SSH keys not injected when deploying VM from master dashboard to worker node #56
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_compute#56
Loading…
Add table
Add a link
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?
Description
When a user saves SSH keys in the master node's Settings page and deploys a VM on a worker node, the keys are not injected into the VM.
The deploy modal correctly shows:
"1 SSH key(s) will be injected at boot"
But the deployment logs show:
"No SSH keys configured — add keys in Settings to enable SSH access."
This is a contradiction of the UI promises injection, but the backend never received the keys.
Steps to Reproduce
Expected Behavior
Deployment logs should show:
"SSH key(s) injected successfully"
User should be able to SSH into the VM using their saved key.
Actual Behavior
Deployment logs show:
"No SSH keys configured, add keys in Settings to enable SSH access."
SSH keys are NOT injected into the VM.
Work done:
Root cause confirmed: in explorer deploy flow, UI sent ssh_keys: [] to worker deploy, so worker tried local key store lookup only. If target worker had no keys for that secret, logs showed No SSH keys configured....
UI fix implemented in dashboard.js:
Server hardening added in rpc.rs:
Result: