setup-machine: Add and deploy new host key automatically #8
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kebado.net/nixos-servers#8
Loading…
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?
Right now, when setting up a new machine that will require secrets immediately, one must generally:
age-keygen -pq -o newhost.keys.txtto get the private key.age-keygen -y newhost.keys.txtto.sops.yaml..sops.yaml.etc/age.--extra-filestonixos-anywhereto ensure it gets copied.This should be automatable:
etc/agestructure..sops.yamlwithyqfor the new host folder.sops updatekeysto rotate in the new key.nixos-anywherewhile passing the temporary folder as--extra-files.