openwrt-iac / uapi / docs / 4.0.1 / Roadmap
Things deliberately not yet shipped. Each entry says why and what shape the change would take. Update this file when an item moves between sections.
The section of each release in CHANGELOG.md is the full record.
system/cron_jobs and dhcp/hosts.match_tag./api/v3 mount.disabled on network resources.wg syncconf is all or
nothing and the proto handler escalates any failure to proto_setup_failed,
so a peer whose endpoint hostname does not resolve stopped the interface
coming up at all, healthy peers included. Measured: up=false, zero peers,
no addresses, netifd retrying and giving up. The ucode handler of main now
leaves out the endpoint, preshared key or keepalive line that wg would
refuse, and the peer of a key that is not a WireGuard key, so the other peers
come up. An allowed IP that wg refuses still takes the tunnel down, and so
does an endpoint host of digits and dots that inet_aton does not read, such
as 10.0.0.256, which the handler gives wg as an address with no lookup. A
write refuses such a host. A write to an interface that a peer from another
writer keeps down keeps its commit and answers X-Kernel-Status: blocked,
with the peer in X-Kernel-Blocked.25.12, which 4.x does not support, keeps wireguard.sh, where the half that
matters to 3.x remains: the wg set apply protects the write, not the
boot. A peer whose endpoint resolves when written and stops resolving later
sits in uci, and the next reboot runs it through the proto handler and drops
the tunnel. No amount of local code fixes that, because the platform owns the
boot path.
The peer change detection half needs nothing from us. It was reported
twice, on the devel list in 2023 and as
netifd#66 in 2026, and neither
landed in that form; it is instead solved in master by the ucode proto rewrite
(package/network/utils/wireguard-tools/files/wireguard.uc), whose config
function loads peers so the framework's change detection covers them. That
rewrite also fixed route metrics
(#23199) but left
proto.setup_failed() exactly as it was.
Neither outcome retires src/lib/wg.uc. Even with both fixed, a netifd-driven
apply stays asynchronous, so uapi still could not report whether a write
reached the kernel, which is what the transaction contract needs. Retiring the
local code would take netifd applying peer deltas synchronously, which is not
on anyone's roadmap.
Upstream: uhttpd serves its request queue last-in first-out. When every
max_requests handler slot is taken, uhttpd queues a new request and serves
the
newest queued one first, so a client that keeps the slots busy keeps the
earliest
queued request waiting the longest, and it needs no token to do so. uapi's 10
s body
deadline frees its own slots, but the order of the queue is uhttpd's and no
ucode
handler can change it. Found while measuring the body reads of
#296 and
#299 on uhttpd 2025.10.03. A
fix
belongs to uhttpd, and this is recorded so the question is not re-opened as
uapi work.
Upstream: luci-base reads a request body with no deadline. LuCI's ucode
runtime
reads a POST body with uhttpd.recv on the same blocking pipe as uapi and
sets no
deadline (modules/luci-base/ucode/uhttpd.uc, luci.http), so a body that
stalls
holds one of the shared max_requests slots until the script timeout of
uhttpd, the
login included. uapi bounds its own bodies
(#299). LuCI's requests share
the same
slots and keep their behavior. A fix belongs to luci-base, and this is
recorded so the
question is not re-opened as uapi work.
Standalone confirm arm, POST /uapi/confirm
(#324). Additive, so a
4.x minor can ship it. It waits for a consumer that asks for it.
docs/commit-confirm.md holds the design, the authz model and the reasons
for the wait.
network/interfaces". Scope-level is enough today, and this is
enterprise creep. Don't add until requested by a real deployment.application/json) is correct for IaC. Defer indefinitely.docs/adding-a-resource.md:
add when a
typical real configuration sets options the curated layer doesn't
surface.Partly done in 2.5.0. lldpd and vnstat2 are installed by install_uapi's
bootstrap, about
560 KiB together, so lldpd/config and vnstat/config are exercised by
tests/integration/49_daemon_gated_resources_test.sh and included in the
stock-config
round-trip. The install sits in the bootstrap rather than inside a test, which
is what avoids
the QEMU SLIRP failure that cost hours of CI when it was tried inline.
Still outside the image, so still unexercised: snmpd, mwan3, sqm, usteer,
prometheus-node-exporter-lua and the openvpn handler, whose uci storage
53_interface_proto_scope_test.sh checks without it. unbound is installed by
40_unbound_uci_ext_test.sh
but only while that test runs, which is not a guarantee another test can lean
on.
The cost of leaving it is measurable rather than theoretical:
vnstat/interfaces modelled a
section type vnstat never reads and shipped that way, because a resource for an
uninstalled
package is never exercised against real configuration, so a wrong section type
is
indistinguishable from a right one.
Note for whoever picks up the rest: on the standing test box the distfeeds
needed pointing at
25.12.5 and the kmods feed at kernel 6.12.94-1-a7bc15f4..., or every kmod-*
dependency
is unresolvable.
Decide whether the perf bench should gate, and on what. It measures
per-endpoint p99 on every CI run and gates nothing: the comparison in
tests/bench/ci_bench.sh runs only against a committed bench/baseline.json,
which has never existed, so any size of latency regression has always shipped
green. The naive fix is to commit a baseline, and it is probably wrong: a p99
recorded on one GitHub runner class says little on another, so a percentage
threshold would flake instead of catching anything, and a flaky gate gets
ignored and then removed. The options worth weighing are an absolute ceiling
loose enough to survive runner variance while still catching an order-of-
magnitude regression, or leaving it as measurement and reading the numbers at
release time. Deciding needs a few runs' worth of variance data across
runners,
which nobody has gathered. Until then the tree says measurement, not gate.
A request that uhttpd kills after its commit still leaves the write half
done. uhttpd
sends SIGKILL to the request process, and to no other, when the client
closes the
connection before the response and when script_timeout runs out (60 s unless
set). A
Terraform interrupt or a client-side timeout does the first. No ucode code
runs after a
SIGKILL. transaction() commits, then reloads, runs the stay-up watch and
the kernel
apply, and after a failure restores the snapshot and reloads again, all in
that process.
A kill after the commit leaves uci with the new config, runs no check and no
restore, and
answers nothing. The reload that the request started runs on, and since the
lock fds
close on exec the kill also releases the lock, so the next write can commit
and reload
beside it. multi_transaction() and the crontab apply in crontab.uc have
the same
shape. The steps after the commit are not short: the reloads, which uapi waits
for up to
20 s in all, the stay-up watch, which waits up to 2 s and again on a restore,
and the kernel
apply.
The write journal reports such a write in GET /uapi/diagnostics since
3.5.0. It does not finish or restore the write: one request may not undo a
write that is not its own, because the scopes of the request that started the
write are the only authority over what its revert may touch. Nothing inside
the request can close the rest, so it needs a design change. The shapes left,
none chosen:
docs/concurrency.md rules out, and the client
still gets
no answer.A change to uhttpd to send SIGTERM and wait before SIGKILL, so that a
request can
ignore it with ucode's signal() until its recipe ends. That is upstream
work, and the
wait would bound how long a recipe may take.
The details are under Open findings in docs/lock-state-audit.md.
The restore after a failed reload leaves a package that another writer
committed to during
the reload, and the operator repairs it. LuCI and a shell take no uapi lock,
so they can commit
to the package while its daemons reload, into the file that the request
committed. The restore
wrote back the snapshot from before both, so it undid that commit too. It now
compares the file
with what the request committed, under libuci's flock, leaves a file that
differs as it is, and
answers reload_failed_unrecovered with the package named in restore_error.
The package then
keeps the write that the daemon refused beside the other commit. A commit that
libuci renames
between the comparison and the rename of the restore is still undone, and so
is one between the
rename of the request's own commit and the read of the file that follows it.
Two ways to recover
such a package without the operator were not chosen:
Hold libuci's flock from the commit to the end of the restore: libuci's own load and commit in the request would wait on that lock, LuCI would wait for the whole reload, and libuci releases its flock before its rename anyway.
Reporting-surface consumption is the provider's. X-Kernel-Status,
management_path and ?validate=1 are all emitted and documented here, and
terraform-provider-uapi consumes none of them. That is the provider's call,
not a gap
in this repo, and it is recorded here only so the question is not re-opened as
uapi
work.
The idempotent retry of a POST that lost its answer is the provider's. uhttpd can kill a request after its commit, which leaves the write applied and no answer sent, and the idempotency store replays a 2xx answer to the same key and body for 24 h, so the retry is client work (terraform-provider-uapi#45). Recorded here only so the question is not re-opened as uapi work.
unbound/srv.ip_transparent still reads with normalize_bool.
#310 moved the other
boolean reads to the parser of their daemon. The reader of this option, in
unbound-uci-ext, has not been checked yet, so the right helper is not known.
See docs/ucode-quirks.md.
The open defects that the lock-state audit found are under Open findings in
docs/lock-state-audit.md.
The sweep list for v4, tracked in the v4
milestone. At v4 planning,
read it top to bottom: every line must resolve to an issue in the milestone, or
be explicitly descoped in the release PR with the reason. An issue is closed
when its work merges into main, the 4.x line since the v4 branch merged, and
that work ships with v4. The mechanisms, the evidence and the open questions
live in the issues.
Left the milestone:
POST /uapi/confirm with the scope uapi:confirm:rw.Merged, and closed:
table and rules lookup accept table names on
write: the request type
becomes a union, breaking, and a read still answers the id.network/interfaces.ip6prefix stops taking a string on
write: announced since 3.2.0,
the only open deprecation window.check_schema_types, with an opt-out for system.notes.mwan3/interfaces.family is required, or an unset one reads
ipv4: either way breaking.wireless/interfaces section with no mode reads null instead of
ap: a read today reports an
access point that does not exist.normalize_bool, boolean reads follow the platform's
reader: prerequisite is
reading libvalidate's accepted set out of
ubox, shipped in 3.4.0./uapi/...: the paths and
the scopes disagree today, breaking.dhcp/leases6 into
dhcp/leases: one endpoint
less, breaking.runtime that its schema requires, breaking for generated clients.unsupported_media_type is the documented-dead one, breaking for generated
clients.x-uapi-* marker
namespace: four vendor
markers, one of which dies with #241, internal.dhcpv4 'server', as the stock config of main does."*": dnsmasq writes *
for a missing client id, which reads null, as for the hostname.loglevel err and warn, and a member metric above
256: uapi took them and the
daemon did not. A write now refuses them.synflood_rate with a unit and a zone without a policy read
another value than fw4 uses:
reads that change, with a new ETag at the upgrade.uapi-token create refuses it, announced in 3.5.0.network/interfaces.disabled to the platform
boolean: 4.x needs OpenWrt
main or the next release, whose netifd takes disabled 'true' on an
interface since e97e36f, and 25.12 stays on 3.5.0.network/interfaces: on
OpenWrt main the package has no init script, so openvpn/instances goes,
breaking./api/v4 and the install hook strips every older prefix,
as each major moved it before. The v3-to-v4 migration document rides the
release.managed and the adopt flow
(#321, withdrawn before v4).
libuci names an anonymous section at each load from its ordinal in the package
and a hash of its type, so the name moves to another section when an earlier
one is deleted. A client that stored such a name and wrote or deleted through
it reached another section with a 2xx. adopt is how a client gets a name
that holds, and managed is how it knows that it needs one.message strings. English-only; codes are
stable and translatable client-side.conn.call() only, by design (see
docs/concurrency.md).