feat(fw): authorize ssh keys for root on cloonar.vms guests #164

Merged
dominik.polakovics merged 1 commit from feat/qemu-vm-root-keys into main 2026-06-14 17:30:37 +02:00

Authorizes the configured cloudInit.sshKeys for root on every cloonar.vms.<name> guest, so ssh root@<ip> works with the normal key — which is what the nixos-infect bootstrap (ADR-0018, #161) expects.

Why it didn't before: the cloud-init seed listed only the per-VM user (dev / openclaw) under users:, and the NoCloud seed provides no datasource keys, so root's authorized_keys was never written (and Ubuntu cloud images disable root SSH by default).

Change: add a { name = "root"; ssh_authorized_keys = sshKeys; } entry to the cloud-init users: list and set disable_root = false. The per-VM sudo user is unchanged, so openclaw's setup still runs as openclaw.

Scope: future provisions only — an already-provisioned guest (e.g. the running dev-temp on .97.16) won't re-run cloud-init for the same instance-id, so use ssh dev@… there.

Pre-commit dry-build green for all 6 hosts. Note: eval can't exercise cloud-init — root login is verifiable only on the next fresh provision.

Authorizes the configured `cloudInit.sshKeys` for **root** on every `cloonar.vms.<name>` guest, so `ssh root@<ip>` works with the normal key — which is what the `nixos-infect` bootstrap (ADR-0018, #161) expects. **Why it didn't before:** the cloud-init seed listed only the per-VM user (`dev` / `openclaw`) under `users:`, and the NoCloud seed provides no datasource keys, so root's `authorized_keys` was never written (and Ubuntu cloud images disable root SSH by default). **Change:** add a `{ name = "root"; ssh_authorized_keys = sshKeys; }` entry to the cloud-init `users:` list and set `disable_root = false`. The per-VM sudo user is unchanged, so openclaw's setup still runs as `openclaw`. **Scope:** future provisions only — an already-provisioned guest (e.g. the running `dev-temp` on .97.16) won't re-run cloud-init for the same instance-id, so use `ssh dev@…` there. Pre-commit dry-build green for all 6 hosts. Note: eval can't exercise cloud-init — root login is verifiable only on the next fresh provision.
dominik.polakovics deleted branch feat/qemu-vm-root-keys 2026-06-14 17:30:37 +02:00
Sign in to join this conversation.
No reviewers
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
Cloonar/nixos!164
No description provided.