Files
Nexus-Guard-Suite/.sisyphus/plans/wg-auto-up-privatekey-fix.md
T
datadunia f7a5431db8
NexusGuard CI / server-core-test (push) Failing after 37s
NexusGuard CI / device-agent-test (push) Failing after 32s
NexusGuard CI / dashboard-ui-build (push) Failing after 35s
chore: update submodules + docker-compose fixes + new plan docs
2026-05-28 14:43:50 +07:00

1.1 KiB

Plan: WG Auto Up + PrivateKey Node Registration

TL;DR

Fix WireGuard interface goes down after update.sh (container restart) and allow registering nodes using PrivateKey (from MikroTik export) instead of requiring PublicKey manually.

Status: ALL DONE + VERIFIED ON PRODUCTION


TODOs

  • 1. main.go: auto wg up on startup — commit 8e476db
  • 2. servers.go: accept PrivateKey in Create — commit 8e476db
  • 3. Servers.vue + servers.ts: PrivateKey input — commit 8e770ae
  • 4. update.sh — SKIPPED (backend auto-init is the real fix)

Final Verification

  • F1: go build -tags dev ./... — PASS
  • F2: npm run build — PASS
  • F3: Server starts, /wg/status shows is_running=true — VERIFIED {"IsRunning":true,"PeerCount":1}
  • F4: Can register node using PrivateKey via API — VERIFIED PublicKey auto-derived from PrivateKey

Commits

  • 8e476db — Backend (auto wg up + accept PrivateKey)
  • 8e770ae — Frontend (PrivateKey input in Register form)
  • 4a56516 — Root (submodule refs)
  • All pushed + deployed to production