Deploy and validate dual-stack Nebula on vega #297

Closed
opened 2026-10-09 18:52:19 +01:00 by nimmo · 7 comments
Owner

Host deployment/validation phase of Dual-stack Nebula Mesh & Router Exit, following shared wiring #293.

Existing IPv4 certificate address: 10.10.0.2. Keep it while adding the agreed private IPv6 mesh address.

Registered NixOS server and mesh DNS node. The phone now exits through the router; Vega's older live configuration awaits its normal auto-update cutover. The user requires retirement of its internet exit role, including fallback use. Source disables exitNode; the newly signed dual-address certificate has no unsafe route authority. Deploy through the normal pull-only auto-update once merged to main; retain ordinary mesh and DNS services. Preserve CoreDNS/phone mesh service access.

Checklist:

  • Deploy removal of Vega internet exit forwarding/NAT and verify it cannot serve phone unsafe routes.
  • Confirm host is active/intended, identify live Nebula manager/version, and record current addressing/bootstrap.
  • Confirm Nebula v1.10+ and trusted v2 CA compatibility.
  • Prepare dual-address certificate and credential rollback without exposing keys.
  • Apply shared dual-stack listener, router/VPS lighthouse and relay settings with reachable endpoints; relays must not list other relay hosts.
  • Run target-appropriate configuration validation and required repository checks.
  • Deploy on the correct live OS/manager, with a remote auto-update hold where applicable.
  • Test direct IPv4 and IPv6 overlay traffic, public IPv6 transport where available, hostname/DNS behavior, and relevant mesh services.
  • Verify router lighthouse registration and a genuine relay path where applicable.
  • Verify persistence and a no-op follow-up; attach evidence before closing.

Do not infer live acceptance from shared-source completion. Do not disrupt existing services or remove the VPS bootstrap during rollout.

Certificate rotation policy (user decision, 2026-10-10): retain current long-lived CA/certificate validity and do not require blanket blocklisting of uncompromised superseded credentials. Mandatory post-rollout Vega fingerprint revocation checklist from review of MR #307: superseded. Vega's old exit certificate may remain CA-valid until expiry; keep Vega's internet forwarding/exit role disabled and absent from phone routing. Blocking that fingerprint remains optional hardening, not an acceptance gate. Targeted revocation still applies to compromised credentials and explicitly retired Chaos/Cosmos identities.

Host deployment/validation phase of [Dual-stack Nebula Mesh & Router Exit](https://git.nimmog.uk/nimmo/nixos-config/milestones/32), following shared wiring #293. Existing IPv4 certificate address: 10.10.0.2. Keep it while adding the agreed private IPv6 mesh address. Registered NixOS server and mesh DNS node. The phone now exits through the router; Vega's older live configuration awaits its normal auto-update cutover. The user requires retirement of its internet exit role, including fallback use. Source disables exitNode; the newly signed dual-address certificate has no unsafe route authority. Deploy through the normal pull-only auto-update once merged to main; retain ordinary mesh and DNS services. Preserve CoreDNS/phone mesh service access. Checklist: - [x] Deploy removal of Vega internet exit forwarding/NAT and verify it cannot serve phone unsafe routes. - [x] Confirm host is active/intended, identify live Nebula manager/version, and record current addressing/bootstrap. - [x] Confirm Nebula v1.10+ and trusted v2 CA compatibility. - [x] Prepare dual-address certificate and credential rollback without exposing keys. - [x] Apply shared dual-stack listener, router/VPS lighthouse and relay settings with reachable endpoints; relays must not list other relay hosts. - [x] Run target-appropriate configuration validation and required repository checks. - [x] Deploy on the correct live OS/manager, with a remote auto-update hold where applicable. - [x] Test direct IPv4 and IPv6 overlay traffic, public IPv6 transport where available, hostname/DNS behavior, and relevant mesh services. - [x] Verify router lighthouse registration and a genuine relay path where applicable. - [x] Verify persistence and a no-op follow-up; attach evidence before closing. Do not infer live acceptance from shared-source completion. Do not disrupt existing services or remove the VPS bootstrap during rollout. Certificate rotation policy (user decision, 2026-10-10): retain current long-lived CA/certificate validity and do not require blanket blocklisting of uncompromised superseded credentials. Mandatory post-rollout Vega fingerprint revocation checklist from review of MR #307: superseded. Vega's old exit certificate may remain CA-valid until expiry; keep Vega's internet forwarding/exit role disabled and absent from phone routing. Blocking that fingerprint remains optional hardening, not an acceptance gate. Targeted revocation still applies to compromised credentials and explicitly retired Chaos/Cosmos identities.
Author
Owner

Vega exitNode.enable is now false in source; CoreDNS and ordinary mesh remain enabled. Old mobile-full-tunnel (Vega) bundle mode is removed. Router is the only supported phone internet exit. Full nix flake check and shell/provisioning/bundle regressions pass. Existing upstream stdenv platform deprecation warnings reviewed; no option/evaluation failure.

Live Vega activation still requires operator authentication: root SSH is denied and nimmo's unattended sudo nixos-rebuild does not succeed. Do not mark the existing Vega service retired until the prepared configuration is activated and its unsafe-route allowance/Nebula NAT role is checked. Preserve auto-update hold until the change is published and live validation is complete.

Vega exitNode.enable is now false in source; CoreDNS and ordinary mesh remain enabled. Old mobile-full-tunnel (Vega) bundle mode is removed. Router is the only supported phone internet exit. Full nix flake check and shell/provisioning/bundle regressions pass. Existing upstream stdenv platform deprecation warnings reviewed; no option/evaluation failure. Live Vega activation still requires operator authentication: root SSH is denied and nimmo's unattended sudo nixos-rebuild does not succeed. Do not mark the existing Vega service retired until the prepared configuration is activated and its unsafe-route allowance/Nebula NAT role is checked. Preserve auto-update hold until the change is published and live validation is complete.
Author
Owner

Prepared an isolated source snapshot on Vega at /home/nimmo/nixos-config-nebula-cutover-e7af20a using git archive of local commit e7af20a. It excludes ignored plaintext deployment bundles. Full Vega system build succeeded through the configured Nova builder and is copied back to Vega:
/nix/store/h7qfhclg11dwx6fb7ccl58xjcrc4zfsq-nixos-system-vega-26.11.20261007.39ad350

Operator activation steps in that directory: just auto-update-hold "retire Vega Nebula exit"; just test; sudo nixos-rebuild switch --flake .#vega. Leave the hold active until source publication and acceptance; original main checkout still enables the old exit. Root/sudo operator authentication remains required. No live retirement evidence yet.

Prepared an isolated source snapshot on Vega at /home/nimmo/nixos-config-nebula-cutover-e7af20a using git archive of local commit e7af20a. It excludes ignored plaintext deployment bundles. Full Vega system build succeeded through the configured Nova builder and is copied back to Vega: /nix/store/h7qfhclg11dwx6fb7ccl58xjcrc4zfsq-nixos-system-vega-26.11.20261007.39ad350 Operator activation steps in that directory: just auto-update-hold "retire Vega Nebula exit"; just test; sudo nixos-rebuild switch --flake .#vega. Leave the hold active until source publication and acceptance; original main checkout still enables the old exit. Root/sudo operator authentication remains required. No live retirement evidence yet.
Author
Owner

Deployment plan corrected per user instruction: use Vega's normal pull-only NixOS auto-update once the prepared changes are published and merged to main. A manual root shell/activation is not required for this path. Read-only checks confirm the updater timer is active and /run/nixos-auto-update has no hold file. Source already disables Vega's exit role; shared wiring is locally committed and validated. Keep this issue open for genuine post-update checks of the active revision, removal of exit forwarding/NAT, mesh/DNS availability, and subsequent dual-address rollout. This supersedes the earlier request for authenticated manual activation.

Deployment plan corrected per user instruction: use Vega's normal pull-only NixOS auto-update once the prepared changes are published and merged to main. A manual root shell/activation is not required for this path. Read-only checks confirm the updater timer is active and /run/nixos-auto-update has no hold file. Source already disables Vega's exit role; shared wiring is locally committed and validated. Keep this issue open for genuine post-update checks of the active revision, removal of exit forwarding/NAT, mesh/DNS availability, and subsequent dual-address rollout. This supersedes the earlier request for authenticated manual activation.
Author
Owner

Preparing Vega certificate retirement before auto-update rollout: its current v2 certificate still authorizes 0.0.0.0/1 and 128.0.0.0/1, and ordinary nebula-reissue intentionally preserves routes. Added explicit none unsafe-networks argument to clear authority while retaining the empty-argument preserve behavior. External provisioning regressions cover preserve/clear/replace; both provisioning and actual Nebula bundle regressions plus ShellCheck pass. Next operator signing command: just nebula-reissue vega 2 none '10.10.0.2/16,fd56:f458:569c::2/64'. This rotates the key without activation; afterwards verify certificate has no unsafeNetworks, prepare router discovery, and use normal main/auto-update deployment as agreed.

Preparing Vega certificate retirement before auto-update rollout: its current v2 certificate still authorizes 0.0.0.0/1 and 128.0.0.0/1, and ordinary nebula-reissue intentionally preserves routes. Added explicit `none` unsafe-networks argument to clear authority while retaining the empty-argument preserve behavior. External provisioning regressions cover preserve/clear/replace; both provisioning and actual Nebula bundle regressions plus ShellCheck pass. Next operator signing command: `just nebula-reissue vega 2 none '10.10.0.2/16,fd56:f458:569c::2/64'`. This rotates the key without activation; afterwards verify certificate has no unsafeNetworks, prepare router discovery, and use normal main/auto-update deployment as agreed.
Author
Owner

User completed reissue. nebula-cert verify against repository CA passes; new v2 certificate contains 10.10.0.2/16 and fd56:f458:569c::2/64, unsafeNetworks=null (no internet exit authority). Added Vega router-underlay bootstrap opt-in. Evaluated configuration confirms [::] listener, lighthouses/relays [10.10.0.1,10.10.0.10], exitNode=false, resolver=true. Full nix flake check passes; complete host build is running. Live mesh/CoreDNS/updater remain active with no hold. Pre-rotation certificate/encrypted key retained at local annotated tag pre-vega-nebula-dual-stack. Do not publish Vega AAAA until live dual-address activation is confirmed. Live retirement, router registration, relay, persistence/no-op evidence remain open for normal auto-update deployment.

User completed reissue. nebula-cert verify against repository CA passes; new v2 certificate contains 10.10.0.2/16 and fd56:f458:569c::2/64, unsafeNetworks=null (no internet exit authority). Added Vega router-underlay bootstrap opt-in. Evaluated configuration confirms [::] listener, lighthouses/relays [10.10.0.1,10.10.0.10], exitNode=false, resolver=true. Full nix flake check passes; complete host build is running. Live mesh/CoreDNS/updater remain active with no hold. Pre-rotation certificate/encrypted key retained at local annotated tag pre-vega-nebula-dual-stack. Do not publish Vega AAAA until live dual-address activation is confirmed. Live retirement, router registration, relay, persistence/no-op evidence remain open for normal auto-update deployment.
Author
Owner

Complete prepared Vega host build passed: /nix/store/arcmn8wjaj60l76qbp2rdwx8r1pjf54r-nixos-system-vega-26.11.20261007.39ad350. Source/certificate changes committed locally as a55fa06, with no activation or publication. Full flake checks also pass. Live evidence remains pending normal main/auto-update rollout.

Complete prepared Vega host build passed: /nix/store/arcmn8wjaj60l76qbp2rdwx8r1pjf54r-nixos-system-vega-26.11.20261007.39ad350. Source/certificate changes committed locally as a55fa06, with no activation or publication. Full flake checks also pass. Live evidence remains pending normal main/auto-update rollout.
Author
Owner

Live Deployment & Multi-Day Persistence Evidence

Live validation completed on Vega:

  1. Auto-Update Deployment:
    • Pulled and switched via Vega's automated updater to generation nixos-system-vega-26.11.20261008.8edc0c7.
  2. Interface & Addressing:
    • nebula.mesh active with 10.10.0.2/16 and fd56:f458:569c::2/64.
    • Running Nebula 1.11.2, persistent and active for >1.8 days (since Sat Oct 10 20:05:34 BST).
  3. Exit Role Retired:
    • Reissued v2 certificate verified with unsafeNetworks=null.
    • Active host configuration has nixosConfig.nebula.exitNode.enable = false.
    • Internet routing for the Android phone traverses the router exit node only.
  4. Overlay Traffic & Mesh Services:
    • Both 10.10.0.2 and fd56:f458:569c::2 pass 100% (0% loss) from Electra.
    • CoreDNS service active on overlay interface; resolver queries functional.
    • SSH over mesh (vega / vega.mesh) active.
  5. Relay & Lighthouse Evidence:
    • Vega daemon logs confirm relay traffic using router (10.10.0.10) and VPS (10.10.0.1), receiving relayed handshakes from Electra.

All acceptance criteria met; closing.

### Live Deployment & Multi-Day Persistence Evidence Live validation completed on Vega: 1. **Auto-Update Deployment**: - Pulled and switched via Vega's automated updater to generation `nixos-system-vega-26.11.20261008.8edc0c7`. 2. **Interface & Addressing**: - `nebula.mesh` active with `10.10.0.2/16` and `fd56:f458:569c::2/64`. - Running Nebula 1.11.2, persistent and active for >1.8 days (since Sat Oct 10 20:05:34 BST). 3. **Exit Role Retired**: - Reissued v2 certificate verified with `unsafeNetworks=null`. - Active host configuration has `nixosConfig.nebula.exitNode.enable = false`. - Internet routing for the Android phone traverses the router exit node only. 4. **Overlay Traffic & Mesh Services**: - Both `10.10.0.2` and `fd56:f458:569c::2` pass 100% (0% loss) from Electra. - CoreDNS service active on overlay interface; resolver queries functional. - SSH over mesh (`vega` / `vega.mesh`) active. 5. **Relay & Lighthouse Evidence**: - Vega daemon logs confirm relay traffic using router (`10.10.0.10`) and VPS (`10.10.0.1`), receiving relayed handshakes from Electra. All acceptance criteria met; closing.
nimmo closed this issue 2026-10-12 15:27:34 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#297
No description provided.