Files
Nexus-Guard-Suite/.omo/plans/archived/wg-auto-up-privatekey-fix.md
T
datadunia cbacfea7f2
NexusGuard CI / server-core-test (push) Failing after 3m6s
NexusGuard CI / server-core-build (push) Has been skipped
NexusGuard CI / device-agent-test (push) Failing after 4s
NexusGuard CI / device-agent-cross-build (amd64, linux) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (amd64, windows) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (arm64, linux) (push) Has been skipped
NexusGuard CI / dashboard-test (push) Failing after 4s
NexusGuard CI / dashboard-dist (push) Has been skipped
chore: update submodule refs, clean up plans/evidence, update .gitignore
2026-06-07 23:53:15 +07:00

32 lines
1.1 KiB
Markdown

# 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
- [x] 1. **main.go: auto `wg up` on startup** — commit `8e476db`
- [x] 2. **servers.go: accept PrivateKey in Create** — commit `8e476db`
- [x] 3. **Servers.vue + servers.ts: PrivateKey input** — commit `8e770ae`
- [x] 4. **update.sh** — SKIPPED (backend auto-init is the real fix)
---
## Final Verification
- [x] F1: `go build -tags dev ./...` — PASS
- [x] F2: `npm run build` — PASS
- [x] F3: Server starts, `/wg/status` shows is_running=true — **VERIFIED** `{"IsRunning":true,"PeerCount":1}`
- [x] 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