feat(working): give each host its own unnic wireguard peer #61
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/per-host-work-vpn"
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?
Summary
Each host gets its own unnic WireGuard peer, so two machines can be on the work VPN at once. The module picks the secrets by hostname.
To give another host the profile, add
unnic/wireguard/<hostname>/{priv,psk,address}to the secrets and theworkingfeature to that host.Evidence
After: each host's
unnic-wireguard.envtemplate points at its own sops entries. The sops manifests for cumputer and cumwork build, which means sops-nix found every key in.secrets.yaml.nix build --dry-runof the toplevel passes for cumputer, cumwork and cumpad.Merge Danger
Door: two-way
Reverting restores the shared secret layout. The old key and PSK now sit under
cumwork/, so nothing is lost.Blast Radius: work-VPN
Only hosts with the
workingfeature are affected (cumputer and cumwork). A host that getsworkingwithout its own sops entries fails at build time, not at runtime.🤖 Generated with Claude Code
Every machine shared one WireGuard identity, so only one of them could be connected to the work VPN at a time. The keys and tunnel address now live under unnic/wireguard/<hostname>/{priv,psk,address} and the module picks them by hostname: cumwork keeps the old peer (10.8.0.4), cumputer gets a new one (10.8.0.16). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>