Standardize the VM provisioning scripts to the rotation scripts' conventions #17
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
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
allod/nexus#17
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?
Bring the VM provisioning scripts —
rotate-token,bootstrap-vm.sh,bootstrap-vm-from-host.sh,rebuild-vm-from-host, andverify-vm-from-host— up to the same coding standard the SSH-key-rotation scripts already follow after their shared-helper consolidation.Primary goals:
lib/rotation-common.shandlib/resolve-repos.shinstead of rebuilding it inline in each script.usage()/--helpin every script (two have none today).Current state and specifics
The SSH-key-rotation scripts now share
lib/rotation-common.sh(resolve_forge_connection, key fingerprinting, tmpfs workdirs, JSON-field readers) andlib/resolve-repos.sh(registry resolution). Most provisioning scripts sourceresolve-repos.shfor checkout paths but otherwise have not adopted these conventions:bootstrap-vm-from-host.shderives the host/user vianix eval,bootstrap-vm.shbuildsssh://git@…/.git, androtate-tokenbuildshttps://…/.git— each its own way.resolve_forge_connectionis called only by the rotation scripts.bootstrap-vm.shandbootstrap-vm-from-host.shhave no usage/help; the others do.rotate-tokendecrypts secrets straight into bash variables; review these and the key-install flows for stdin/tmpfs alternatives.~/.ssh/<key>or/etc/ssh/<target>and harden remote command construction.Scope
Limited to the provisioning scripts listed above. Hardening of the SSH-key-rotation scripts themselves is tracked separately; this issue should not fold in rotation-specific changes.