Skip to content

fix(start-wrt): review fixes for the nested VPN tunnel diagram - #4675

Merged
gStart9 merged 18 commits into
wrt/vpn-chain-pipesfrom
wrt/vpn-chain-pipes-fixes
Nov 10, 2026
Merged

gStart9 merged 18 commits into
wrt/vpn-chain-pipesfrom
wrt/vpn-chain-pipes-fixes

Conversation

@Dominion5254

Copy link
Copy Markdown
Member

Review fixes for #4320, as a PR into its branch so they can be adopted with one merge.

The diff looks large because the first commit merges master. Review the other two commits on their own:

  • Merge master (99e84d1). master has since used dictionary IDs 619–632, so feat(start-wrt): draw chained outbound VPNs as nested tunnels #4320 conflicted in all five dictionaries. Its four new strings move to 633–636. Nothing else needed resolving.
  • fix(start-wrt): keep nested VPN tunnel colors and labels legible (dbe85a4)
    • Colors. Two pairs of tunnel colors were hard to tell apart even with full color vision: the 2nd and 4th (yellow #fcbb14 and orange #ff8a00, OKLab ΔE 11.3 against a floor of 15) and the adjacent 5th and 6th (dark red and magenta, 12.5). The first three colors stay. The last three are now --tui-chart-categorical-09, -21 and -06, so all six pairs are distinct under protan, deutan and normal vision in both themes. These were measured against @taiga-ui/styles' chart palette, which is the one the app loads.
    • Labels. A 12-character label of wide letters (e.g. WWWWWWWWWWWW, 168px) ran past its 140px server card into the next one. The label is now HTML inside a foreignObject, cut with an ellipsis. Realistic labels measure at most ~103px of the 124px available, so in practice only extreme names are cut.
    • Accessibility. The diagram is announced as one image (role="img"), labelled with the route, e.g. "Router → Proton → Mullvad → Internet".
  • fix(start-wrt): describe Connects via as the route to a VPN's own server (8e124b9)
    • The VPN page's help still defined Connects via as "where traffic from this VPN should be routed" and said chained traffic "exits through multiple servers". The outbound overview said the same. Both now match the Connection Path entry, the docs and the Add VPN dialog: traffic passes through every server in the chain but leaves for the Internet from this VPN's server. All five languages are updated.
    • The label fragment's release-notes selection is now false: a renamed label is a routine change.

Verification

  • npm run check:wrt, npm run check:i18n:wrt, npm run build:wrt, prettier --check on the PR's files and node scripts/changelog.mjs check-version projects/start-wrt all pass.
  • Rendered the VPN page against the mock API in headless Chromium: one- and two-VPN chains, light and dark themes, and 390px width. The labels render inside the HTML namespace without truncation, and the screen-reader label reads "Router → Proton → Mullvad → Internet".
  • Ran the dataviz palette validator on the new six colors, all pairs, in both themes: CVD ΔE ≥ 11.5 and normal-vision ΔE ≥ 17.8. Lightness-band and contrast warnings remain for the yellow and lavender. The labelled server cards and the legend provide the required secondary encoding.
  • Not exercised: Safari's handling of foreignObject inside a scaled SVG; only Chromium was available.

start9-docs-bot Bot and others added 18 commits November 9, 2026 21:24
fix(start-os): persist GRUB overrides and isolate NVMe tests

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
#4604 added the NameProfileFirewallSections migration and #4608 added
Migration::purpose(), whose match has no arm for it. Each passed CI on
its own; together master's startwrt-core does not compile.
* fix(start-wrt): let Edit change a Wi-Fi password

The Wi-Fi password dialog hid the Password field when editing, so the
only way to change a password was to delete and re-create it, and the
unique-label rule made keeping the label a three-step dance. Edit now
shows the field pre-filled with the current value, with reveal and
Generate, and notes that devices on the old password will disconnect.
The backend already classifies a key-only change as a PSK hot-reload,
and hostapd's RELOAD_WPA_PSK kicks only stations whose PSK no longer
matches, so clients on other passwords stay connected.

Edit's save now runs through FormService.save (ActionService) instead
of a bare store(): the dry-run preview returns before validation, so a
rejected apply (duplicate password or label, too-long PSK) used to fail
silently with no toast.

The dialog help described the label as the SSID devices see and each
entry as its own network; every password joins the one SSID and the
label is never broadcast. Fixed in all five locales, and the book's
Editing section now lists the password.

Closes #4388

* fix(start-wrt): warn that a Wi-Fi password change can restart Wi-Fi

The first Admin password is also each interface's main key, so changing
it makes set_config report a full restart and every Wi-Fi client drops
briefly. Other passwords take the PSK-only reload. Correct the dialog
note, the five help locales, the book, and the changelog fragment.

* Proposed changes for #4470

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* chore(start-wrt): select the Wi-Fi password edit fragment for release notes

---------

Co-authored-by: Shadowy Super Coder <musashidisciple@proton.me>
Co-authored-by: helix-a <267227783+helix-a@users.noreply.github.com>
Backports the following from live-docs:

- 1e4bcb8 docs(start-sdk): require IPv6 listeners behind unproxied bindings (#4659)
…4605)

* feat(start-wrt): keep the admin password off the wire in plaintext

Both first-boot paths run over plain HTTP before the router's CA is
trusted, and both posted the new admin password in clear JSON:
auth.set-initial-password and POST /api/setup/flash. They now take
start-core's EncryptedWire, as StartOS setup does. setup.get-pubkey
publishes the public half of start-core's process-wide CURRENT_SECRET,
which ServerContext exposes through AsRef<Jwk> like every start-core
context; a key field would give each throwaway ServerContext::default()
an unrelated key. The browser encrypts with node-jose, which falls back
to node-forge where an insecure page has no WebCrypto. It loads lazily
from a module of ours, because a dynamic import of the CommonJS package
itself yields only a default export in the production bundle.

LuCI's login, which takes the root password, was reachable over plain
HTTP twice: uhttpd listened on every address at 8080, and the daemon
proxied /cgi-bin/* on port 80 without redirecting. uhttpd now binds
127.0.0.1:8080, the proxy's upstream, and migration BindLuciToLoopback
rewrites the shipped listen pair on existing routers. The proxy answers
the HTTP listener with a 307 to HTTPS.

An off-router CLI build defaulted to http://router.lan, so auth login
and set-password sent the password unencrypted. Following start-cli, it
now defaults to https://router.lan/rpc/v1 and trusts extra CAs through
--root-ca.

Closes #3679

* fix(start-wrt): describe the profile firewall-section migration in the activity log

#4604 and #4608 merged independently; the migration #4604 added had no
purpose() arm, so master's startwrt-core did not compile.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

* feat(start-wrt): describe the LuCI loopback migration in the activity log

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

---------

Co-authored-by: helix-a <267227783+helix-a@users.noreply.github.com>
…ttings (#4611)

* fix(start-wrt): read and write UCI values the way libuci does

uciedit tokenized values with inpt's Quoted/SingleQuoted/Spaced, which
does not match libuci. libuci writes an apostrophe as '\'' on every
commit (LuCI Save & Apply, `uci commit`, StartWRT's own WAN-schedule
cron job), and uciedit's lazy single-quote match stopped at the first
quote with no backtracking, so the whole file failed with BadOption.
It also unescaped backslashes inside single quotes, which libuci keeps
literally, and wrote values containing an apostrophe with Rust's {:?}
double-quoting, whose \n and \u{..} escapes libuci reads as letters.

The tokenizer now follows libuci's parse_str: adjacent quoted and
unquoted pieces join, single-quoted text is literal, a backslash
elsewhere keeps the next character or continues the line, quoted
values may span lines, an unquoted # starts a comment and ; ends a
statement. It also accepts package lines, the one-letter keywords and
an option with no value, as libuci does. Tokens keep their source
text, so untouched lines still round-trip byte for byte; new values
are written in libuci's quoting.

Closes #4600

* fix(start-wrt): borrow plain single-quoted UCI values and widen the lexer tests

A value quoted with no inner apostrophe decodes without copying, which
is nearly every line libuci writes. Tests add CRLF continuation, \#,
a quote followed directly by #, a backslash at end of input, and the
empty word. The fragment is selected for release notes: one apostrophe
saved through LuCI made a whole config unreadable.

* fix(start-wrt): write a dangling UCI end-of-file escape in libuci quoting

A file that ends in an unmatched backslash lexes as a token whose
raw text ends in that backslash. Written back unchanged, the newline
the dump adds after it became a line continuation, so an option
appended to that section joined the previous value and the saved file
failed with too many arguments. Display now re-quotes the decoded
value when the raw text ends in a dangling escape, including a
backslash before a bare carriage return.

Found by review on #4602.

* feat(start-wrt): show what a page cannot represent in place of its settings

A hand edit or a LuCI change StartWRT cannot represent made the affected
page fail with a red toast every five seconds, show wrong values, or
overwrite the change on save, and two boot repairs acted on settings they
could not read.

config.check reads ddns, dhcp, firewall, network, startwrt and wireless
and reports each finding with its file, one-based line, section, option
and value, and the pages it affects:
- a file that does not parse, for every page that reads it;
- a section that fails its typed read, for the pages whose requests read
  it (interfaces, devices, bridge VLANs, wifi devices and interfaces, the
  LAN and profile DHCP sections, zones, forwardings, profiles);
- values a page reads but cannot show or keep: a WAN or WAN6 protocol the
  WAN page has no mode for, a LAN or profile interface that is not
  static, an RA or DHCPv6 mode other than server/disabled, a DHCP section
  set to ignore, a second access point on a radio, a non-AP, disabled or
  non-LAN Wi-Fi interface, encryption other than psk2/none, a lease with
  several MACs;
- sections a page requires: br-lan, lan, wan, the wan zone, and each
  profile's interface;
- as a notice rather than a block, the entries after the first of a
  `list ipaddr` or `list ip6addr`, which the page reads past and a save
  leaves in place.

The shell shows CustomConfig in place of a page with blocking findings,
with a link to LuCI and a recheck, and ConfigNotices above a page with
notices. FormService hands a load error from configuration StartWRT
cannot read or model to the same page instead of toasting it on every
poll.

Forms StartWRT can read without loss are read rather than flagged. A
`Vec` field reads an `option` line as its whitespace-separated words, so
`option proto 'udp'` on a LuCI rule no longer reads as every protocol in
the reserved-port and inbound checks. `#[uci(accept_list)]` reads the
first item of a `list` and a write replaces that item and keeps the rest;
it now covers DhcpHost.mac, NetworkInterface.ipaddr and ip6addr. ipaddr
is an Ipv4Address that keeps a prefix length, with ipv4() and
ipv4_netmask() giving callers the address and the mask the prefix implies.

uciedit tokens keep their file line, typed-read errors name the option
and value they could not read, MissingOption and ExpectedSectionType
point at the section header, ConfigBytes keeps the line when it adds the
file name, and parse_each parses files independently.

heal_ipv6_state now acts only on a dhcp.lan in the off state StartWRT
writes, so an unreadable section or a LuCI relay no longer turns IPv6 off
at boot, and bootstrap_admin_profile no longer appends a second Admin
profile when the existing one fails its typed read.

Refs #3678, #4607

* Proposed changes for #4611

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* fix(uciedit): propose preserving only effective list entries

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* fix(start-wrt): note and locate only the addresses libuci keeps

An `option ipaddr` replaces every earlier `ipaddr` line, and typed writes
now discard those lines. The second-address notice still took the first
`list` item whenever an `option` was present, so it could name an address
the option overrides, and the non-/24 mask finding pointed at the first
`option ipaddr` rather than the last one the typed reader keeps. Both now
use the values libuci ends with.

* docs(start-wrt): describe accept_list writes as libuci resolves them

A typed write now drops the lines a later `option` overrides, so the
attribute's docs and the ipaddr/ip6addr field comments no longer keep
"the rest" as written.

* fix(start-wrt): describe the profile firewall naming migration

#4604 added NameProfileFirewallSections and #4608 added Migration::purpose
without it, so master's startwrt-core no longer compiled.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

---------

Co-authored-by: helix-a <267227783+helix-a@users.noreply.github.com>
* fix(start-os): race DNS families in the SOCKS proxy

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* docs(start-os): describe musl resolver behavior accurately

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* chore(start-os): advance to 0.4.2.1 after the 0.4.2 release

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Backports the following from live-docs:

- 0649403 docs(start-sdk): IPv4-mapped clients and documenting IPv4-only listeners (#4661)
Backports the following from live-docs:

- 5765e81 docs(start-sdk): a restore runs the backed-up s9pk (#4664)
Backports the following from live-docs:

- abb0a84 docs: network-folder backups require SMB 3 (#4671)
…-fixes

Master took dictionary IDs 619-632, so this branch's four new strings
move to 633-636.
Two pairs of tunnel colors were hard to tell apart with full color
vision: the second and fourth, yellow and orange (OKLab ΔE 11.3, below
15), and the adjacent fifth and sixth, dark red and magenta (12.5). The
first three stay; the new last three make every pair of the six distinct
under protan, deutan and normal vision, in both themes. Measured against
@taiga-ui/styles' chart palette, which the app loads.

A 12-character label of wide glyphs ran past its 140px server card into
the next one. The label is now HTML in a foreignObject, cut with an
ellipsis; realistic labels measure at most ~103px of the 124px available.

The diagram is announced as one image, labelled with the route from the
router through each server to the Internet.
The VPN page's help still defined Connects via as "where traffic from
this VPN should be routed" and said chained traffic exits through
multiple servers, as did the outbound overview. Traffic passes through
every server in the chain but leaves for the Internet from one, which
the Connection Path entry and the docs already say. Both passages are
corrected in all five languages, matching the Add VPN dialog's help.

The label fragment drops its release-notes selection: a renamed label
is a routine change.
@Dominion5254
Dominion5254 requested a review from gStart9 November 10, 2026 18:45
@gStart9
gStart9 merged commit 8fe0c4b into wrt/vpn-chain-pipes Nov 10, 2026
1 check passed
@gStart9
gStart9 deleted the wrt/vpn-chain-pipes-fixes branch November 10, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants