feat(network): integrate NetBird clients, profiles and private backups
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
# NetBird on the onboard computer
|
||||
|
||||
Surface brief: the owner requests network selection in onboard settings after automatic Ubuntu preparation. Extend the existing System private-network page (formerly Tailscale) and the same section following environment preparation. This keeps one lifecycle and existing SettingsCard, Select, TextField, Button, ActivityIndicator and StatusBadge. The presentation-only global settings window is unsuitable for operating-system configuration. No new product root or shared visual primitive is introduced.
|
||||
|
||||
The versioned Ubuntu 24.04 amd64 installer carries the pinned official client. Environment preparation installs it idempotently, preserves foreign versions/configuration, and enables automatic service startup. It does not enroll a machine or guess a server. The user supplies an HTTPS server URL, then browser authentication or a setup key issued for the boards group. The key is passed in an environment variable to the CLI, never saved by Node, exposed in argv or returned in status. Browser authentication requires the administrator to place the peer in the boards group; operator and board permissions remain separate.
|
||||
|
||||
The unprivileged Node API is protected by the existing OS-authorized session, same-origin checks and a fixed root-owned Unix adapter restricted by peer UID. Core and Node ship the same client implementation, pin, server receipt validation, bounded connection operation and cancellation rules. DNS, subnet routes, exit routes, remote SSH/jobs and IPv6 stay disabled in the owned NetBird profile. Worker settings and Synology routes are not modified.
|
||||
|
||||
A joined network is separate from the active Core channel. Authenticated heartbeats compare server URL and subnet, prepare only the exact Core/board addresses, and advertise a verified alternative to the board UI. A local NetBird selection is first sent to Core over the existing authenticated channel; the same control-session interlock as remote settings rejects it while vehicle control is active. An accepted request stages the endpoint, requires an authenticated response over it and commits only after confirmation. The existing timeout restores the previous endpoint. Keys and board identity survive service restart; a stale status cannot authorize a new endpoint.
|
||||
|
||||
## Operator path
|
||||
|
||||
1. Download the Node installer from Mission Core and run its installation window
|
||||
on Ubuntu 24.04 amd64: `python3 mission-core-node-install.pyz --launch`.
|
||||
2. Open Node's system preparation and confirm the OS administrator prompt. The
|
||||
shipped environment profile installs Tailscale and the pinned NetBird client,
|
||||
enables their services and reports each preparation step.
|
||||
3. In **System → Private network**, choose **NetBird**, enter the server URL
|
||||
(this deployment: `https://netbird.nodedc.ru:8443`) and authenticate in the
|
||||
browser or enter a setup key whose automatic group is Mission Core boards.
|
||||
The server address is operator input, not an installer default.
|
||||
4. Pair Node with Core separately if it is a new board. Once both peers are
|
||||
connected to the same server, choose NetBird in Node's **Mission Core** page
|
||||
or Core's **Onboard computer → Connection to Core**, then save. Wait for the
|
||||
verified channel to be applied. Network enrollment alone does not select
|
||||
the application channel or grant motor control.
|
||||
|
||||
The client keeps its own peer identity and reconnects automatically; a setup key
|
||||
is only enrollment material. The server receipt must confirm both peer login
|
||||
and inactivity expiration are disabled. This removes scheduled reauthentication,
|
||||
not failures caused by Internet loss or a stopped VPS. The active profile must
|
||||
not be copied with private keys to another computer.
|
||||
|
||||
## Accepted scope, 2026-10-31
|
||||
|
||||
Node `0.8.51-96` was built through the bounded Linux source artifact and installed
|
||||
on N006 with the versioned owner installer. X4 stayed at `0.1.3-30`. All 24 Linux
|
||||
qualification steps passed, including Go/race checks, Node UI/environment checks
|
||||
and systemd validation. The final focused Core/NetBird/network-profile suite had
|
||||
54 passing tests; Ruff passed. The Linux helper's private XDG configuration
|
||||
directory allows the official CLI to mirror its profile without weakening
|
||||
`ProtectHome`; Core's selection API now admits the NetBird provider explicitly.
|
||||
|
||||
Live UI acceptance covered Node enrollment, selecting NetBird locally, selecting
|
||||
Tailscale in Core and selecting NetBird again in Core. Final state was
|
||||
`provider=netbird`, `phase=applied`, revision 6, fresh telemetry, no active vehicle
|
||||
control. The peer connection used the deployment's VPS relay. A bounded WebRTC
|
||||
preview decoded 1280×640 frames with advancing playback time; it was stopped
|
||||
afterward, with camera recording off. This is not a long-duration media or
|
||||
latency qualification, and no motor commands were sent.
|
||||
|
||||
Environment preparation completed at revision `ubuntu-24.04-amd64/4`; Node,
|
||||
NetBird and its restricted adapter were enabled and active without restarts.
|
||||
VPS account expiry flags remained false, with four role policies and no networks
|
||||
or routes. Policy semantics were unchanged; the boards group's peer count grew
|
||||
from zero to one. Worker and Synology configuration were not changed.
|
||||
|
||||
Published owner release: `eb6559831c2e2a79517848fe`.
|
||||
Installer SHA-256:
|
||||
`62f7b6682c72ff821e5a6e94b38972849503dbe37ae9e3f3dcecb3ece0d6f9a3`.
|
||||
Node DEB SHA-256:
|
||||
`1584b6d83f3063427c1c4e4aa910e73cfc4deb6023870146547c348b039ca77b`.
|
||||
Private evidence is retained under `.runtime/netbird-node95`; qualified build
|
||||
outputs are under `apps/node-agent/build/qualified-0.8.51-96`. Node94 remains a
|
||||
rollback release. No secrets or raw telemetry belong in this document.
|
||||
|
||||
A prepared N006 and an empty-dpkg-status dependency simulation are not evidence
|
||||
of installing on a clean OS image. Clean Ubuntu execution, reboot, Wi-Fi handover,
|
||||
new standalone clients and fleet load still require separate qualification.
|
||||
Reference in New Issue
Block a user