feat(network): verify selected uplinks, roll back failures and manage NetBird policy
This commit is contained in:
@@ -67,3 +67,59 @@ 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.
|
||||
|
||||
## Native QUIC transport and Mac policy (2026-11-14)
|
||||
|
||||
The VPS owner package 0.1.10 supplies the pinned official NetBird 0.82.0 native
|
||||
relay with TLS and QUIC on TCP/UDP 8444. The management URL remains unchanged.
|
||||
STUN remains on UDP3478, now owned by the standalone relay; placing a `relay`
|
||||
field in the upstream combined server configuration does not configure that
|
||||
component. Update an existing owned server with `relay-plan`, inspect its exact
|
||||
hash, then `relay-apply --plan-sha256 ...`; `relay-plan --rollback` and
|
||||
`relay-rollback` preserve peer keys, the database and other VPS services.
|
||||
The relay renew timer tracks the existing Caddy certificate. Private metrics
|
||||
are blocked on external interfaces. See the VPS repository's native operations.
|
||||
|
||||
On Mac, new owned connections request `--network-monitor=false`; existing
|
||||
connected profiles need the separate deterministic package built by
|
||||
`scripts/build_netbird_policy.py` (policy 1.0.2). Its root-authorized plan reads
|
||||
the protected active profile, checks the owning Core server and NetBird version,
|
||||
then its apply invokes the official CLI **as that profile's user**, using the
|
||||
verified existing profile ID. In NetBird 0.82.0 plain `up` returns "Already
|
||||
connected" without applying new flags. An explicit existing profile is therefore
|
||||
needed for the native reconnect. The package verifies all persisted fields and
|
||||
peer/IP identity and rolls back the flag if acceptance fails. No launchd edits,
|
||||
replacement VPN client, direct key edits or new enrollment are involved.
|
||||
The Mac CLI migration is a separate maintenance artifact, not an automatically
|
||||
run frontend action. An already-connected older profile is not silently migrated
|
||||
by the normal connect button.
|
||||
|
||||
Node152 adds passive proof for QUIC's unconnected UDP socket. It matches the
|
||||
advertised active relay, NetBird's socket cgroup/local port, selected interface,
|
||||
source/destination IP and port, and the marked kernel route. The bounded observer
|
||||
reads header bytes only, sends nothing, stores no packets, stops after 0.6s or
|
||||
512 frames, and fails closed when idle, unsupported or unauthorized. Existing
|
||||
TCP/P2P proof and authenticated Core acknowledgements remain required. The owner
|
||||
explicitly approved adding CAP_NET_RAW/AF_PACKET to the restricted uplink service;
|
||||
this expands service privileges and is carried in the versioned Debian package.
|
||||
The Node binary, UI, motor runtime and routing policy are unchanged from151.
|
||||
|
||||
Prepared-Ubuntu qualification and isolated Linux namespace tests are required.
|
||||
The latter cannot run in the host network namespace. A stationary camera check
|
||||
with recorded actual-path proof is distinct from a physical drive, weak coverage,
|
||||
clean OS installation or deliberate cable/power loss. Private evidence is under
|
||||
`outputs/netbird-quic-20261114`; do not interpret the first camera-on-quic run as
|
||||
LTE acceptance: Node151 failed QUIC proof and used Wi-Fi during that run.
|
||||
|
||||
Stationary acceptance on 14 November completed two 220-second Ethernet/QUIC runs
|
||||
with a live X4 preview. All 440 Core observations were fresh; all 389 recorded
|
||||
physical-path proofs selected Ethernet. Across 4204 HTTP telemetry exchanges,
|
||||
medians were 53/54 ms, p95 was 125 ms, maxima were 416/218 ms; errors were zero.
|
||||
The remaining 416 ms event includes retransmission of an inner TCP segment and
|
||||
is not claimed eliminated. Both passive DEV recordings closed without dropped
|
||||
records. Mac audit found no engine restarts from 17:06 through 17:28 local time.
|
||||
No physical motion, cold boot, deliberate link removal or Mac network handover
|
||||
was performed. Next acceptance is a short operator-controlled drive, not a
|
||||
long-distance mission. Qualified Node152 and VPS0.1.10 artifacts were published
|
||||
through the owning installer catalog and download hashes verified. Detailed
|
||||
conditions and limitations remain in `outputs/netbird-quic-20261114/REPORT.md`.
|
||||
|
||||
@@ -0,0 +1,452 @@
|
||||
# Board uplink selection and recovery
|
||||
|
||||
## Node155 authenticated-command lease correction
|
||||
|
||||
A valid manual command could be rejected with a stale Core-binding lease after a
|
||||
transport interruption: `acceptUplink` sent the command instead of the heartbeat
|
||||
that renewed the helper's lease. Stage, confirmation and reserve-setting work now
|
||||
carry the authenticated reply's binding/provider/peer and arrival time. The single
|
||||
IPC worker renews that scope before the command, without interleaving another work
|
||||
item. A response older than 20 seconds in the queue, a failed renewal, or an obsolete
|
||||
Core endpoint/revision cannot authorize a change. Arrival time is captured before
|
||||
other response handlers run. The helper's independent current-path proof, command
|
||||
expiry, NM checkpoint and local rollback remain unchanged.
|
||||
|
||||
The complete Go `internal/node` suite and 55 focused physical-path/rollback/QUIC
|
||||
simulations pass. Node155 is rebuilt over exact qualified Node154; only the Node
|
||||
binary, provenance and package version change. Prepared-Ubuntu qualification,
|
||||
normal owner-package installation and all 13 installed binary/helper hashes passed.
|
||||
This is not a new clean-image qualification. Local evidence: `.runtime/uplink-155`.
|
||||
|
||||
Stationary GUI acceptance on 15 November: Wi-Fi→Ethernet, Ethernet→Wi-Fi and
|
||||
Wi-Fi→Ethernet all completed on their first request, with confirmed transport and
|
||||
reserve enabled. Request-to-confirmation took approximately 63/72/58 seconds,
|
||||
including delivery gaps; this is not seamless handover. A three-minute camera
|
||||
capture on direct Beeline showed no stream suspension and fresh Core telemetry
|
||||
throughout. Final state is Ethernet, Wi-Fi reserve enabled. Physical link-failure
|
||||
acceptance was not added by this trial. The full comparison and remaining
|
||||
adaptive-video-budget issue are retained in the private report
|
||||
`vpn/outputs/beeline-ethernet-155-20261115/REPORT.txt` in the operator workspace.
|
||||
|
||||
|
||||
## Node145–148 rollback and route-application correction
|
||||
|
||||
The rollback baseline is the proven physical Core transport, not NetworkManager's
|
||||
unmarked default. The reserve toggle uses the same proof. A manual trial restores
|
||||
that baseline in either reserve mode; recovery is announced only after actual
|
||||
path evidence and two fresh Core replies at least ten seconds apart. Service
|
||||
restart retains the owned selected transport while awaiting fresh proof. Explicit
|
||||
local Ubuntu edits still release ownership.
|
||||
|
||||
Stationary GUI trials exposed an immediate route-write failure after NetworkManager
|
||||
Reapply, independently of whether Ethernet had Internet access. Node146 captured
|
||||
its boundary and exception class. Node147 separates NM preference application
|
||||
from transport-route installation by the next normal watchdog poll, applies NM
|
||||
preferences once, and retries a missing/expired DHCP route within the existing
|
||||
trial deadline. Only disappearance of the exact owned route permits an already
|
||||
completed deletion to be ignored; other failures still roll back. Local evidence
|
||||
also records bounded `ip` command/exit/kernel error details, excluding commands
|
||||
that may contain credentials. The precise original kernel error was not captured
|
||||
by Node146; the DHCP publication explanation remains a hypothesis until the final
|
||||
live outcome and error evidence are examined.
|
||||
|
||||
The Node147 reverse GUI trial proved rollback with fallback disabled, but failed
|
||||
before route application: the global `CheckConnectivity` D-Bus call exceeded its
|
||||
20-second timeout. Node148 removes this synchronous global probe from selection.
|
||||
It reads NM's existing per-device readiness and still requires fresh authenticated
|
||||
Core acknowledgement over the actual selected transport. It does not relax the
|
||||
commit proof or turn a carrier/default route into a successful connection.
|
||||
|
||||
The GUI resets its selection to the reported channel on a new terminal receipt,
|
||||
including rollback; a later deliberate draft remains editable. This prevents a
|
||||
failed Ethernet draft from looking like the active connection after Wi-Fi recovery.
|
||||
|
||||
Qualification/evidence: `.runtime/uplink-145`, `.runtime/uplink-146` and
|
||||
`.runtime/uplink-147`. The first GUI trials verified Wi-Fi rollback and captured
|
||||
its failure boundary. A separate Wi-Fi association/DHCP interruption then
|
||||
recovered over Ethernet without operator action. Node147 passed 108 helper
|
||||
simulations and ten real kernel cases in an isolated namespace, including an
|
||||
address expiring between route observation and installation. Exact package
|
||||
installation and all twelve installed binary/helper hashes are verified on the
|
||||
prepared Ubuntu board. The final GUI Wi-Fi→Ethernet trial completed with a
|
||||
proved Core transport through the router after approximately 52 seconds, including
|
||||
a temporary connectivity gap; it was not a seamless switch. Final reverse-trial
|
||||
and reserve receipts are retained with the same evidence.
|
||||
|
||||
Node148 then passed both directions through the Mission Control GUI: Ethernet→Wi-Fi
|
||||
with reserve disabled (52.07 s) and Wi-Fi→Ethernet with reserve enabled (52.25 s).
|
||||
These are board-operation-to-confirmation durations, not exact packet-gap duration.
|
||||
Final state is proven Ethernet through the router with reserve enabled, while
|
||||
Wi-Fi remains active. The exact Node148 installer is published; twelve installed
|
||||
binary/helper hashes match. Physical cable/power loss and a drive on Node148
|
||||
remain operator acceptance steps.
|
||||
|
||||
These observations do not identify the Wi-Fi radio's original failure or prove
|
||||
field LTE reliability, a different VPN provider, IPv6 steering or clean-Ubuntu
|
||||
installation. The prepared-host installer is portable as a versioned artifact,
|
||||
while those wider qualification gates remain separate.
|
||||
|
||||
## Node144 stationary audit correction
|
||||
|
||||
The stationary Node143 trial exposed a NetworkManager normalization case:
|
||||
Ethernet has IPv6 disabled, so NM reports its metric as -1 even after an attempted
|
||||
metric write. Treating this as a foreign profile edit incorrectly releases our
|
||||
routing ownership. The correction excludes inactive IP families from planned
|
||||
writes, avoids profile reapply when the same channel recovers, and uses the proven
|
||||
marked VPN path rather than the unmarked default to report the active channel.
|
||||
One hundred focused tests pass. Prepared-Ubuntu qualification also checks
|
||||
inactive-family preference handling against the actual NetworkManager inventory.
|
||||
Installation and stationary acceptance receipts are in `.runtime/uplink-144`.
|
||||
Node144 was installed through its exact owner release and published in Core's
|
||||
installer catalog. All eleven installed binary/helper files match the qualified
|
||||
package. The GUI disabled and re-enabled reserve permission with board receipts
|
||||
(revisions 3 and 4); the marked Core transport remained on the selected Wi-Fi
|
||||
while Ethernet stayed connected. The final setting is enabled. No NetworkManager
|
||||
profile-reapply entries occurred during this stationary post-installation check.
|
||||
This acceptance does not include deliberate physical link loss or an LTE drive.
|
||||
The observed DHCP duplicate-address conflict is separate evidence; this correction
|
||||
does not claim to repair the LAN DHCP server or prove the cause of every outage.
|
||||
|
||||
## Installed Node143: operator-controlled reserve permission
|
||||
|
||||
The Network settings block includes the canonical “Переключаться на резервный
|
||||
канал” switch. Its value lives in the board's atomic operation journal and
|
||||
survives Node/helper/Core restarts. Existing installations default to enabled.
|
||||
Core sends a runtime-bound, expiring revision-checked command and displays the
|
||||
board's receipt; it never optimistically claims that a setting was applied.
|
||||
|
||||
Enabled retains Node142 recovery behavior: hold the healthy operator-selected
|
||||
channel, verify a replacement after failure, then latch the recovered channel.
|
||||
Disabled retains the chosen qualified NetBird IPv4 transport even if its physical
|
||||
link disappears. An owned unreachable default in the transport-only table prevents
|
||||
kernel fallthrough to a different uplink; ordinary LAN traffic and physical
|
||||
interfaces remain available. Returning the selected link restores its route.
|
||||
This is distinct from the safety rollback of a failed manual selection, which
|
||||
remains active in either mode. Explicit local Ubuntu changes retain authority.
|
||||
|
||||
Confirmed automatic recovery and manual rollback produce bounded durable event
|
||||
receipts on Node. Core deduplicates these into operator notification history and
|
||||
displays a toast once; periodic probes do not create notification spam.
|
||||
|
||||
Qualification: nine real Linux namespace routing cases, including disabled
|
||||
fallback, NIC return, re-enabled fallback and journal idempotence; focused helper,
|
||||
Core and Go tests; the complete Control Station suite (1594 tests) and production
|
||||
build. Prepared-host installation and stationary policy toggles are recorded in
|
||||
`.runtime/uplink-143`. These do not establish physical live failover or a new LTE
|
||||
drive test, IPv6 transport, another VPN provider, or clean-image qualification.
|
||||
|
||||
## Historical field correction — Node142
|
||||
|
||||
The 19:40 Wi-Fi selection changed the default route but NetBird kept a direct
|
||||
Core endpoint on the Ethernet connected subnet. After the proof deadline, NM
|
||||
checkpoint rollback disconnected Wi-Fi with USER_REQUESTED. That inhibits both
|
||||
device and saved-profile autoconnect; setting Device.Autoconnect alone is not
|
||||
an inverse. These were implementation defects, not a requirement for an admin
|
||||
monitor or a limitation of saved Wi-Fi in Ubuntu.
|
||||
|
||||
The v2 transaction keeps both physical links and their default routes. It only
|
||||
changes standard route metrics. No Device.Disconnect is issued. An initially
|
||||
disconnected reserve is excluded from the NM checkpoint, so rollback cannot
|
||||
introduce a new USER_REQUESTED autoconnect block. Its temporary metrics are
|
||||
restored separately, without removing its association/address.
|
||||
|
||||
For the qualified NetBird 0.82.0 transport, its actual WireGuard fwmark is read
|
||||
from the live interface. A private IPv4 table 51001, rule priority 5100, protocol
|
||||
242 directs only that transport's outer packets through the selected gateway.
|
||||
The table also carries the selected interface's connected routes. Ordinary LAN
|
||||
traffic and other VPNs keep their own routes. Occupied/foreign tables fail
|
||||
closed; an exact durable ownership journal enables cleanup. Missing links
|
||||
leave an empty table and fall through to native routes, never a blackhole.
|
||||
IPv6 transport and other providers are not newly qualified by this change.
|
||||
|
||||
A manual selection commits only after actual marked VPN path evidence and an
|
||||
authenticated Core acknowledgement. A failed transaction rolls back locally.
|
||||
After loss of path proof/Core replies, a 15-second grace releases the transport
|
||||
rule. Native NetworkManager retains association/DHCP/autoconnect. If needed,
|
||||
recovery tries currently active, internet-checked channels at most once per
|
||||
minute; it never activates a historical profile merely because it once worked.
|
||||
Two Core replies at least 10 seconds apart latch a recovered path. A healthy
|
||||
choice is retained; returning Ethernet does not by itself promote it. Explicit
|
||||
Ubuntu disconnects and subsequent saved-profile edits release our routing
|
||||
ownership rather than re-enabling a disabled device.
|
||||
|
||||
Inventory distinguishes `available`, `active`, `verified` and overall
|
||||
`path_verified`. A disconnected saved connection can be selected for a guarded
|
||||
trial, but its historical success is never displayed as current verification.
|
||||
The UI labels a pending change as being checked, not completed.
|
||||
|
||||
Acceptance: synthetic controller/API regressions plus real kernel routes in a
|
||||
separate Linux network namespace (connected-subnet conflict, both directions,
|
||||
LAN preservation, physical link disappearance and cleanup). These do not claim
|
||||
a live cable-swap/LTE field test or diagnose the earlier Banana physical link
|
||||
loss. Private installation and live acceptance evidence: `.runtime/uplink-142`.
|
||||
|
||||
Installed through the exact owner release on 13 November, 17:37 UTC; all installer
|
||||
steps completed. Readback matches every shipped helper module and Node binary.
|
||||
Core receives authenticated traffic over the existing USB Wi-Fi; native Wi-Fi
|
||||
autoconnect remains enabled and the operator-disabled Ethernet remains disabled.
|
||||
The installation does not force a new manual selection. The same qualified
|
||||
0.8.53-142 installer is published in Core's normal download catalog. The prepared
|
||||
Ubuntu host and isolated kernel test do not establish clean-host or LTE drive
|
||||
acceptance. An earlier pre-install transfer interruption recovered without any
|
||||
operator action; no NetworkManager switching was observed, and its transit cause
|
||||
remains unproved.
|
||||
|
||||
|
||||
## Current contract — 13 November 2026
|
||||
|
||||
The owner superseded the 12 November manual-only rule. A healthy connection
|
||||
chosen in Mission Core remains selected. When the reserve switch is enabled, failure permits native NetworkManager
|
||||
recovery through another saved, available connection. With the switch disabled,
|
||||
the selected qualified transport is retained until an explicit operator change. If all channels disappear,
|
||||
Ubuntu continues its normal reconnection attempts. After a fresh authenticated
|
||||
Core exchange and stable physical-path evidence confirm a recovered channel,
|
||||
Node retains that channel; it does not automatically return to an earlier choice.
|
||||
The next explicit user selection takes precedence.
|
||||
|
||||
Local Ubuntu actions remain available. Node does not delete profiles, disable
|
||||
Wi-Fi globally, rewrite passwords, force a saved profile onto another radio or
|
||||
periodically undo the operator's local changes. Unknown networks are not joined.
|
||||
|
||||
## Historical Node134 implementation — superseded by Node142
|
||||
|
||||
The existing NetworkManager helper owns bounded manual transactions and observes
|
||||
native recovery. There is no separate Wi-Fi scan/roaming engine. Profile UUIDs,
|
||||
permanent device identities and the paired Core peer come from live inventory;
|
||||
no board IP, SSID, interface name or VPS is built into the policy.
|
||||
|
||||
- Manual selection retains the 90-second NetworkManager checkpoint and 80-second
|
||||
application deadline. It commits only after a fresh Core exchange proves the
|
||||
selected physical path; otherwise it restores the transaction baseline.
|
||||
- Saved settings express priority through route metrics. Non-selected profiles
|
||||
retain their original autoconnect and default-route eligibility. Only admitted
|
||||
participants are changed; unrelated inactive profiles are not rewritten.
|
||||
- A competing Wi-Fi path is disconnected during manual verification. Its native
|
||||
device autoconnect pause remains while the selected channel is healthy, so
|
||||
NetBird cannot silently retain a local Wi-Fi path behind an Ethernet default.
|
||||
This is a runtime pause, not a saved profile ban. Local Ubuntu activation can
|
||||
override it. Fifteen seconds of failed path evidence, or an expired Core lease
|
||||
plus that grace period, releases the owned pause once. Helper shutdown also
|
||||
releases it. Node never disables the global Wi-Fi radio.
|
||||
- Restoring the pause permits NetworkManager to use its normal saved-network
|
||||
activation and connectivity policy. A Core outage alone does not cause Node to
|
||||
disconnect a working interface or cycle through profiles.
|
||||
- Recovery requires separate authenticated Core replies at least ten seconds
|
||||
apart with stable physical-path evidence. Old replies and changed pairings do
|
||||
not qualify. The recovered connection receives preferred metrics, including
|
||||
demotion of an absent former participant so its return does not steal priority.
|
||||
- A later local profile edit ends Node's ownership of those preferences; Node
|
||||
observes the actual path without rewriting the operator's configuration.
|
||||
- Reapply preserves external addresses. Migration and recovery preference writes
|
||||
have durable undo records. A failed write attempts independent saved-profile
|
||||
and live-route restoration; deleted profiles are not recreated.
|
||||
|
||||
Node134's installer removes old autoconnect/never-default restrictions only where
|
||||
an existing operation journal proves ownership and the current values still
|
||||
match. It preserves foreign edits. Historical disabled profiles without an owned
|
||||
baseline are not guessed or globally enabled. The migration receipt remains
|
||||
private on the board at `/var/lib/mission-core-uplink/native-fallback-v1.json`.
|
||||
|
||||
## Historical Node134 qualification and limits
|
||||
|
||||
The supported environment remains Ubuntu 24.04 amd64, NetworkManager >=1.46
|
||||
and the qualified NetBird 0.82.0 path adapter. The admitted Core path is IPv4; an IPv6 route on another
|
||||
interface does not invalidate a working IPv4-only candidate. Native IPv6
|
||||
routing remains separate. WireGuard/Tailscale physical-path
|
||||
selection is not qualified by this work. VPN/firewall/host-route configuration
|
||||
is not rewritten. Non-default local-only links such as the scanner are not
|
||||
silently turned into internet candidates. Custom routing/ambiguous transport
|
||||
fails closed for manual selection while Ubuntu networking remains available.
|
||||
|
||||
Node134 passed 75 focused Python/helper/Core API checks, Ruff, and ten bounded
|
||||
prepared-Ubuntu package checks (including the expected CLI help exit code).
|
||||
The simulation covers all channels lost, fresh Core recovery, sticky preference,
|
||||
wrong VPN path, manual rollback, local Ubuntu edits, installer migration and
|
||||
address preservation. These are not a physical unplug, drive-away or clean-Ubuntu
|
||||
acceptance test. The helper relies on native NetworkManager connectivity policy;
|
||||
it does not promise instantaneous failover or seamless existing TCP sessions.
|
||||
Private build and installation evidence belongs to `.runtime/uplink-134`.
|
||||
|
||||
Prepared-board acceptance: the exact owner installer completed, installed payload
|
||||
hashes matched, and the same full installer download was verified through Core.
|
||||
Core reported both Ethernet and Wi-Fi as verified candidates and the actual
|
||||
current Core path as Ethernet. Separate interface-bound HTTP probes both
|
||||
returned the Ubuntu connectivity endpoint’s online response. Migration restored
|
||||
the journal-owned Wi-Fi autoconnect/default eligibility and preserved a locally
|
||||
modified Ethernet preference. No physical cable/radio removal was performed.
|
||||
|
||||
Native references:
|
||||
[Device autoconnect, checkpoints and Reapply](https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.Device.html),
|
||||
[connection preferences](https://networkmanager.dev/docs/api/latest/settings-connection.html),
|
||||
[per-device connectivity policy](https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#connectivity-section).
|
||||
|
||||
## Superseded contract — 12 November 2026
|
||||
|
||||
The following section records the earlier decision and its tested limitations.
|
||||
Its manual-only failover and saved Wi-Fi bans are no longer current policy.
|
||||
|
||||
Owner clarification, 12 November 2026: Ethernet through the onboard router is
|
||||
the preferred connection. Wi-Fi is selected explicitly in Core. Automatic
|
||||
cross-channel failover after a confirmed selection is removed. The only
|
||||
automatic rollback belongs to a manual selection that cannot establish Core
|
||||
communication on its requested physical path.
|
||||
|
||||
The existing Board settings → Network card keeps its canonical Select, Connect
|
||||
button and compact status. No new UI mode or automation control is introduced.
|
||||
|
||||
## NetworkManager policy
|
||||
|
||||
Node131 uses native NetworkManager connection activation, runtime Reapply,
|
||||
checkpoints and saved connection preferences. Core sends only authenticated,
|
||||
expiring commands scoped to the pairing and Node runtime. The separate root
|
||||
helper admits only the Node UID and exact action schemas.
|
||||
|
||||
- Selecting Ethernet enables its default route and disconnects non-selected
|
||||
Wi-Fi. After confirmation, those Wi-Fi profiles have autoconnect disabled.
|
||||
- Explicitly selecting Wi-Fi enables its default route. Ethernet keeps its
|
||||
address and connected LAN route, but has never-default enabled, so Banana Pi
|
||||
remains accessible locally without becoming an automatic internet fallback.
|
||||
- A confirmed choice saves only route metrics, never-default and autoconnect on
|
||||
the current participants and all existing saved Wi-Fi station profiles. Ethernet keeps native autoconnect for its cable;
|
||||
only the explicitly selected Wi-Fi profile may autoconnect. Reconnecting the
|
||||
same selected profile is distinct from choosing another channel.
|
||||
- Loss of Core, internet or hardware after confirmation does not select another
|
||||
connection. Merely seeing Wi-Fi does not change the chosen connection.
|
||||
- Helper/Node restart does not roll back an already confirmed choice.
|
||||
- Unknown Wi-Fi networks are never joined. Profiles are never silently rebound
|
||||
from a USB radio to another radio. Foreign VPN configuration remains untouched.
|
||||
|
||||
Profile UUIDs and interface identities come from NetworkManager; no board IP,
|
||||
interface name, VPS or Core identity is embedded. The admitted profile remains
|
||||
Ubuntu 24.04 amd64 / NetworkManager 1.46 / NetBird 0.82.0. Other providers are
|
||||
readable but selection requires their own physical-path qualification.
|
||||
|
||||
Non-default Ethernet connections are not initially admitted as internet choices
|
||||
(for example the K1 USB network). A previously verified router connection kept
|
||||
as LAN-only remains selectable and is checked again with its default route
|
||||
enabled. A disconnected known profile must be available to NetworkManager.
|
||||
Custom routing tables/rules, explicit default routes and ambiguous topology
|
||||
remain unsupported rather than overwritten.
|
||||
|
||||
## Manual transaction and rollback
|
||||
|
||||
Before changing the connection, the helper snapshots fresh participating settings
|
||||
and all existing saved station-profile preferences (excluding AP/shared/VPN profiles).
|
||||
The historical discovery catalog is separate and cannot reintroduce deleted profiles.
|
||||
Profile restoration attempts each entry independently, preserves concurrent foreign
|
||||
edits, and cannot prevent native runtime checkpoint rollback. The helper then
|
||||
creates a 90-second NM checkpoint. Its stage deadline is 80 seconds.
|
||||
The target must pass current device connectivity checks. Confirmation requires
|
||||
a new authenticated Core connection plus actual physical path evidence:
|
||||
|
||||
- P2P: current WireGuard endpoint, applicable ICE source and kernel route.
|
||||
- Relay: connected Core peer and established NetBird relay sockets whose kernel
|
||||
cgroup, source addresses and kernel routes match the chosen interface.
|
||||
|
||||
Unknown transport evidence fails closed. Socket ownership does not require
|
||||
CAP_SYS_PTRACE. An unrelated successful heartbeat or a default route alone does
|
||||
not prove the intended path.
|
||||
|
||||
Saved preferences change only at confirmed commit, while the checkpoint is still
|
||||
available. A failed save or unconfirmed selection restores the previous settings
|
||||
and attempts only that transaction's previous connection. It never searches for
|
||||
an arbitrary alternative network. Rollback is reported complete only after the
|
||||
previous physical path and actual Core communication are confirmed. Unavailable
|
||||
previous hardware remains an unresolved rollback.
|
||||
|
||||
Core keeps the operation guard through recovering, unknown and rollback-failed
|
||||
states, including after a Core restart. A changed Core peer or pairing invalidates
|
||||
old path proof and requires read-only revalidation against that peer. Available
|
||||
radio candidates match permanent hardware identity (legacy entries require the
|
||||
same interface until refreshed), never just a shared profile UUID.
|
||||
|
||||
After commit, path checks are read-only. Missing Core acknowledgements can make
|
||||
the observation unverified but cannot initiate a network change. Failed HTTP
|
||||
requests do not renew the helper's authenticated Core lease.
|
||||
|
||||
Native references:
|
||||
[Reapply and device state](https://www.networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.Device.html),
|
||||
[connection preferences](https://networkmanager.dev/docs/api/latest/settings-connection.html),
|
||||
[never-default](https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-settings-nmcli.html).
|
||||
|
||||
## Why the earlier implementation was replaced
|
||||
|
||||
Node125 changed metrics and accepted a fresh Core reply. A subsequent drive showed
|
||||
that NetBird could still use a local Wi-Fi ICE path, so metrics alone were not
|
||||
physical path proof.
|
||||
|
||||
Node127 added real path evidence and ongoing automatic failover. Its stationary
|
||||
test successfully returned to Wi-Fi after a simulated interruption. Later loss
|
||||
of connectivity caused it to disconnect Ethernet completely, hiding the still
|
||||
wired Banana Pi. The owner then explicitly narrowed the behavior to manual
|
||||
selection and transaction-only rollback. These earlier acceptance reports are
|
||||
historical, not the current product contract.
|
||||
|
||||
## Qualification
|
||||
|
||||
Node128 source checks cover manual timeout rollback, wrong-path rejection,
|
||||
no switching after lost Core or failed path evidence, no switching on helper
|
||||
restart, preserving Ethernet addresses, saved preference behavior and returning
|
||||
only to the previous connection. Forty-four focused Python/API checks and the
|
||||
full Node Go suite passed. The package passed ten prepared-Ubuntu checks.
|
||||
|
||||
Node128 was installed through the owner installer, selected Ethernet through the
|
||||
Core UI and confirmed the actual path to Core. Banana Pi was again attached and
|
||||
ready. The published installer catalog contains the same qualified release.
|
||||
Receipts belong to `.runtime/uplink-128/acceptance.json`.
|
||||
|
||||
The optional live pause test did not start because SSH was unavailable; no process
|
||||
was paused. Loss-after-confirmation behavior and rollback were checked in
|
||||
simulation. Do not infer a clean-image install, physical radio/cable removal or
|
||||
drive-away acceptance from these checks.
|
||||
|
||||
## Node130 regression coverage
|
||||
|
||||
The audit corrections cover independent runtime rollback after a profile-save
|
||||
error, unresolved-operation guards across Core restart, current-peer path proof,
|
||||
fresh profile snapshots, physical Wi-Fi adapter identity, saved station autoconnect,
|
||||
and status text that reflects current evidence. Sixty focused helper, Core API and
|
||||
isolated admin-bridge checks pass; the Node/routers Go suites and both production
|
||||
UI builds pass. The package passes ten prepared-Ubuntu checks. These checks do not
|
||||
claim a live connection switch, cold clean-image installation or drive-away test.
|
||||
Node131 was installed through the owner installer and the identical installer
|
||||
was published to Core. Installed payload hashes match the qualified package.
|
||||
Stationary acceptance confirms Ethernet as the default route, current physical
|
||||
path proof to Core, both Wi-Fi radios disconnected and all saved station profiles
|
||||
with autoconnect disabled. The isolated native admin page opens and authenticates
|
||||
through the current paired channel. Node131 extends only authenticated native
|
||||
admin POST response deadlines; no automatic write retry is added. Receipts belong
|
||||
to `.runtime/uplink-131`. Aggregation remains unconfirmed by both the vendor panel
|
||||
and Client API after a separate cold router restart; this is not claimed repaired.
|
||||
|
||||
## K1 maintenance boundary
|
||||
|
||||
The operator had physically stopped K1 with its button before the earlier
|
||||
maintenance request. The software acquisition state was stale. The authorized
|
||||
canonical reset closed that stale session and sealed the capture manifest;
|
||||
raw data and camera fragments were retained.
|
||||
|
||||
The owner installer contains a bounded migration for the exact older K1 bridge
|
||||
whose prepare-safe endpoint refuses that terminal interrupted session. It requires
|
||||
an idle/reset local session, matching durable operator retirement, a completed
|
||||
manifest and no open evidence files, then preserves evidence metadata across
|
||||
worker maintenance. It does not confirm an unknown physical STOP or admit a new
|
||||
active acquisition. Scanner-button status synchronization is a separate defect,
|
||||
not claimed fixed by this network change.
|
||||
|
||||
## QUIC physical-path correction: Node152
|
||||
|
||||
The legacy relay check required an established TCP socket. After enabling the
|
||||
native NetBird QUIC relay, that test falsely rejected a working UDP channel and
|
||||
entered recovery. Node152 recognizes the official active relay transport and
|
||||
requires an actual outgoing UDP header from a NetBird-owned socket on the chosen
|
||||
physical interface, followed by agreement of the marked kernel route. Merely
|
||||
having an Ethernet carrier, route or healthy Core over Wi-Fi remains insufficient.
|
||||
No packet probes or payload recording are added. Privileges, limits and the Mac
|
||||
policy migration are documented in `20_NETBIRD_ONBOARD.md`.
|
||||
|
||||
Regression qualification:114 helper simulations and three real UDP capture cases
|
||||
inside a separate Linux network namespace. The owner installer retains Node151's
|
||||
binary/UI, camera and motor packages. First physical-path acceptance confirmed
|
||||
Ethernet via the router with fresh Core proof; longer observation and drive
|
||||
acceptance are reported separately in the private experiment report.
|
||||
Reference in New Issue
Block a user