Repair stale new-host and SOPS registration helpers #224
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#224
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?
Problem
Phase 4 wiki verification found that the public new-host helpers no longer match the current repository architecture and secret-scope policy.
just add-host HOSTNAMEcorrectly creates and stageshosts/HOSTNAME/default.nix, but its printed flake registration example still expands the old inlinenixpkgs.lib.nixosSystemform. Current hosts use the sharedmakeNixosSystem { configName = "HOSTNAME"; }builder.just add-secretandjust add-secret-remotetell the operator to use a nonexistentmigrate-host-keyrecipe when a host is already registered..sops.yaml. In the current scoped layout, host access must be selected per explicit consumer rule; appending to one syntactic location is not a reliable expression of required access.sops updatekeysacross tracked secret files, which can give a false impression that every required host/service rule was deliberately reviewed.Scope
makeNixosSystemregistration pattern and current host/profile boundaries.Acceptance criteria
flake.nix..sops.yamlbehavior.Discovered while executing wiki rebuild issue #222 against source commit
556df88494.Additional verified defect: after nixos-anywhere completes, the provision recipe prints
ssh root@TARGET 'rm /root/.config/sops/age/keys.txt'. Managed hosts that enable SSH setPermitRootLogin = "no", so this cleanup path is normally unavailable after first boot. The supported guidance should use the configured administrative account with sudo (and a TTY where required), after permanent host-key decryption has been proven. The current wiki runbook documents that safe sequence.Additional Phase 4 finding: secrets/README.md still instructs just migrate-host-key HOSTNAME, but just --list and justfiles/secrets.just confirm that recipe does not exist. The new wiki runbook uses a staged manual recipient-rotation procedure until this issue repairs the helper and README guidance. The current remove-secret-key helper also bulk-runs updatekeys using the invoking host SSH identity, which may not be authorised for every scoped file; avoid presenting it as a complete rotation procedure without per-file checks.