Deploy and validate dual-stack Nebula on mass-storage #301
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
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:nix-idioms-hygiene
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:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#301
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?
Host deployment/validation phase of Dual-stack Nebula Mesh & Router Exit, following shared wiring #293.
Existing IPv4 certificate address: 10.10.0.5. Keep it while adding the agreed private IPv6 mesh address.
Synology NAS. User explicitly requires destroying the existing Portainer-managed Nebula deployment and creating a fresh Portainer stack/container, rather than an in-place upgrade. Audit the stack and dedicated mounts; remove only the Nebula deployment, preserving unrelated NAS data and stacks. Define a fresh current Nebula image, TUN/network privileges, node credentials and restart policy.
Checklist:
Do not infer live acceptance from shared-source completion. Do not disrupt existing services or remove the VPS bootstrap during rollout.
Prepared the user-operated fresh Portainer deployment in
/home/nimmo/Projects/router-nebula/portainer/mass-storage/:compose.yml, matchingconfig.yml, and a self-contained README with signing, installation, preflight, replacement and rollback steps. Kept one-shot deployment artifacts outside nixos-config as requested; the external project is local and has no Forgejo repository yet.Compose pins official
nebulaoss/nebula:1.11.2to multi-architecture digestsha256:355354d65739b74d4e4949e46c67aefb87a5de05593efdd5441782d5a0a18e9f(amd64/arm64); host networking, NET_ADMIN, /dev/net/tun, read-only credential bind and unless-stopped restart policy. New dedicated destination defaults to/volume1/docker/nebula-mesh(proposed, not an audited existing mount). Uses router IPv4+IPv6 host entries and VPS bootstrap, both lighthouse/relay endpoints, dual listener and scoped mesh firewall; no internet exit routes.Validation: Compose 5.5.1 config accepted defaults and alternate environment values, preserving both host entries. Nebula 1.10.3
-testpassed with disposable v2 credentials for 10.10.0.5/16 and fd56:f458:569c::5/64; disposable keys shredded/removed. Official image registry metadata checked (root user, /nebula entrypoint, architectures). No container was run on the NAS.User will apply via Portainer because SSH authentication is denied and no API credential exists. Existing NAS stack/image/mounts remain unaudited. Required next steps: reissue + bundle real dual-stack certificate; install files in fresh directory; test real credentials; export old Nebula stack and preserve protected rollback backup; remove only old Nebula deployment and create fresh stack. Keep unrelated stacks/data intact. Live overlay/transport/relay/service and restart/no-op acceptance remain pending, so issue remains open. Shred/delete the local generated bundle after deployment acceptance.
Live deployment accepted at the connectivity level. User supplied an authenticated mass-storage root tmux pane; verified hostname mass-storage, UID 0, x86_64 and /dev/net/tun. Transferred CA, dual-address certificate, private key, prepared config and Compose into new
/volume1/docker/nebula-mesh; all five files matched local originals. Directory root-owned mode 700, installed private key mode 600; mount read-only. No key material displayed.User removed the old Portainer stack and created the fresh
nebula-meshcontainer. Official-image preflight with the actual installed CA/certificate/key/config succeeded (exit 0). NAS older Docker CLI required colon host-entry syntax, so guide and Compose were corrected and Compose revalidated. User then explicitly selectednebulaoss/nebula:latest; prepared Compose and saved NAS Compose now follow that preference. Latest is currently build 1.11.2. Live host networking, privileged=false and restart unless-stopped confirmed. Both IPv4 and IPv6 router bootstrap entries resolved; authenticated handshakes to router and VPS completed.Live tests: Electra->NAS IPv4 3/3, IPv6 3/3; NAS->Electra IPv4 2/2, IPv6 2/2; off-LAN VPS->NAS IPv4 2/2, IPv6 2/2. Initial Electra probes during replacement failed, then new NAS-initiated handshakes restored both families. Electra logs show the new mass-storage certificate authenticated through router 10.10.0.10 relay over router IPv6 underlay; subsequent traffic was not forced to remain relayed, so do not claim isolated relay-only data acceptance.
User's recreation to latest provided a second successful startup (new UDP listener), with both addresses retained. Temporary local bundle files shredded (three passes plus zero) and directory removed after successful live tests; installed NAS credentials retained. No unrelated NAS stacks/data changed.
Remaining acceptance before closing: NAS-specific service checks, publish confirmed IPv6 DNS metadata/live DNS, explicit persistence/no-op follow-up, and additional transport/relay data-path tests where required. Keep issue open.
Confirmed NAS IPv6 address now advertised in shared metadata, router dedicated DNS hosts file and VPS CoreDNS, with live A/AAAA validation. User clarified no non-NixOS OS hosts modifications; NAS daemon config now uses direct public IPv4/IPv6 endpoint literals, validated with docker exec /nebula -test and HUP reloaded. Compose extra_hosts removed from prepared file and saved /volume1/docker/nebula-mesh/compose.yml. Portainer container recreation with the corrected stack definition is user-operated and pending; existing running container's generated hosts entries cannot be removed durably by a daemon reload. No certificate changes required. Native protected key/config backups retained.
User redeployed the corrected Portainer stack on 2026-10-10. Verified running nebulaoss/nebula:latest container with ExtraHosts=[] and restart unless-stopped. Actual installed CA/certificate/key/config preflight via docker exec /nebula -test succeeded (exit 0). Both overlay addresses retained (10.10.0.5/16 and fd56:f458:569c::5/64); Electra IPv4 and IPv6 canaries each passed 2/2. The unintended router-underlay Docker hosts entries are now durably removed from the container definition. Daemon uses direct public IPv4/IPv6 endpoint literals; no OS hosts modification required. No credential rotation or additional plaintext bundle needed.
Live Deployment & Multi-Day Persistence Evidence
Live validation completed on mass-storage (Synology NAS Portainer stack):
/volume1/docker/nebula-mesh/using officialnebulaoss/nebula:latest(1.11.2).restart: unless-stopped, andExtraHosts=[]./etc/hostspolicy respected.10.10.0.5/16andfd56:f458:569c::5/64.docker exec /nebula -test.10.10.0.5andfd56:f458:569c::5ping 100% (0% loss) from Electra.10.10.0.10) over IPv6 underlay recorded.All acceptance criteria met; closing.