Repository navigation
Releases
v0.7.0
Added
unifi_stage_changetakes areordermutation that sets the first-match order of
one zone pair's custom firewall policies through
PUT /v2/api/site/<site>/firewall-policies/batch-reorder, the only call that
re-indexes them (UniFi Network 10.6.109 ignoresindexon create and on update):
{"operation": "reorder", "kind": "firewall_policy", "source_zone_id": "…", "destination_zone_id": "…", "order": ["<policy id>", {"created_name": "<name>"}, …]}.
ordermust be a permutation of the pair's custom policies, and may place a policy
created earlier in the same set by its stagedname, resolved at apply to the id
the create returned. Staging refuses an unknown zone, a foreign, predefined or
duplicate id, a dropped policy, and an ambiguous name; a pair with a custom policy
placed before its predefined ones is refused rather than moved. The pair's order is
the pre-image: apply refuses as stale if it moved, verifies by re-listing, and a
rollback restores it before deleting a policy the set created. A set that reorders
may not also carry a firewall-policy update that setssourceordestination
(stage zone moves separately), and verification fails on any extra policy in the
pair other than one the set creates there after the reorder.
Security
- The container image runs on
distroless/base-nossl-debian13, with only
libgcc_s.so.1copied in, solibssl3t64(unfixed CVE-2026-124709) is no
longer in the image. The server is rustls-only and never loaded it.
v0.6.14
Security
- quinn-proto 0.11.19 and quinn-udp 0.5.16 for RUSTSEC-2026-0523, -0524 and -0538
(#182), and rustix 1.1.6 for RUSTSEC-2026-0486 (#183). Lockfile only.
Changed
- axum-server 0.9 (#180), the HTTPS listener, and uuid 1.29.2 (#178).
- The container image is published for
linux/amd64andlinux/arm64again,
sodocker pullworks on Apple Silicon and other arm64 hosts
(mechubsec/rustjunosmcp#648). Each platform builds on a native GitHub-hosted
runner rather than QEMU (the emulated build was dropped in 0.6.0 for making
releases take most of an hour). Both registries get one manifest list, which
is what is signed and attested. Releases before this change are amd64-only.
Fixed
backfill-dockerhub-signaturesigns the Docker Hub image only when its tag
resolves to the same digest that GHCR signed, and refuses otherwise (#184).
v0.6.13
Security
- The container image's
distroless/cc-debian13runtime base moves tocc66d22,
which carries zlib1.3.1-1+deb13u1for CVE-2026-76844 and CVE-2026-85091. The
0.6.12 image's base is affected (#176). rmcp3.9.0 for RUSTSEC-2026-0462 (#175). The advisory is in rmcp's Streamable
HTTP client, which this server does not use.
Changed
- A firewall zone delete must be the last mutation in its change set, so a set holds
at most one. Rollback cannot recreate a deleted zone, and a delete with nothing
after it never needs rolling back. Validation, approval and apply refuse any other
order.
Fixed
- Validation, approval and apply refuse an update setting
report_flow: trueon a
firewall policy whose live copy hasreport_flow_supported: false, instead of
leaving the controller to reject or ignore it. - Validation checks a staged
network_idor zone id against the controller's whole
network or zone list, not its first 200 entries, so an id past them is no longer
refused as unknown.
v0.6.12
Fixed
- Staging a firewall policy read from a UniFi Network 11.0 controller no longer fails
onreport_flow, which every 11.0 policy carries.report_flow_supportedis
controller-computed and, likehits, must be dropped from a restaged body.
v0.6.11
Fixed
- Validation now checks a
firewall_policyupdate's effectiveactionand
create_allow_respondagainst the live policy, so an update that sets only
create_allow_respond: trueon a BLOCK or REJECT policy, or that claims
predefined, is refused at validation, at approval, and by apply before it
writes anything, instead of by the controller. Whether a policy is
predefined is read from the controller's copy.
v0.6.10
Changed
unifi_apply_change_setnow reportsfailed, notpartial, when the
controller refuses the first change with a 4xx: nothing was written and
nothing needed rolling back. A first change that fails any other way (a 5xx,
a timeout, a create answered without an id) is stillpartial, since it may
have landed; check the controller. Theunifi_change_set_appliedaudit
event'soutcomecarries the same value. The stored change set isFailed
in both cases, as before.
Fixed
- Staging a
firewall_policywhoseactionisBLOCKorREJECTnow requires
create_allow_respond: false. The controller refuses such a policy
otherwise, on create and on update, and defaults the field totruewhen it
is left out (UniFi Network 11.0.97). Before, the refusal came only at apply.
Apredefinedpolicy is not checked: the controller's own BLOCK policies
carrycreate_allow_respond: true.
v0.6.9
Fixed
- Updating a
firewall_zonefailed: the controller refused thePUTwith
Unrecognized field "attr_no_edit"(#143). The update body was built from the
zone list, which carries fields the zone endpoint does not take. A zone update
now sends_id,nameandnetwork_idsonly, the staged fields over them,
and so does rolling a zone update back. Rolling a zone delete back still
fails: no zone create restores the original_id, so it is reported as a
failed rollback.
Stagingdefault_zoneorexternal_idon a zone is now refused at staging:
the controller rejects both on create and update (UniFi Network 11.0.97). - Validation now refuses a reservation whose
network_idis not a network on
the controller, or is one the same change set deletes (#143). The network
list is fetched only when a staged body names anetwork_id. - Post-apply verification now also compares nested fields such as a policy's
source.zone_id, by path, and scalar arrays without regard to order (#143).
v0.6.8
Changed
- mecmcp 0.27.0 → 0.32.0. Nothing this server does changes: the options
mecmcp added since (OAuth resource mode, device selectors, IdP-verified
proposers,whoami, compact tool mode) are not wired here, and
token addmints no device selectors. Each per-call audit record now
also carriesidentity_mechanismand emptyoauth_issuer,
oauth_subjectandoauth_client_idfields, so a parser that matches
audit lines exactly must allow them.unifimcp_statusreports
mecmcp_version: 0.32.0. The change-set state and token files keep
their shape, so rolling back to 0.6.7 stays possible. A token named
oauth:…is now reserved, and a token file holding one fails to load
as a whole; rename it before upgrading.
v0.6.7
Added
-
unifi_cancel_change_set(#145). A change set that failed validation
stayedplannedand blocked its token from creating another for the
whole approval window, with no way out. The owner or approver can now
cancel aplanned,approvedorexpiredset; the record is kept as
cancelled, and the cancel is logged as anauditevent. A set that
started applying cannot be cancelled: a failed apply may have left
writes on the controller, andcancelledwould hide them. It is a write
tool, so a--tools "*"token does not get it: add it by name. This
bringstool_countto 23 andwrite_tool_countto 12. -
port_forwardandstatic_routecan now be staged for create, update, and
delete throughunifi_stage_change(#143). They were read-only kinds
(MEC-509). Apply, rollback, and verify already addressed
rest/portforwardandrest/routinggenerically, so only the
writable-field allowlist changed.firewall_rulestays read-only.
Verified live on 2026-11-03: a create, update and delete of each kind
went through stage, validate, approve and apply against a real
controller, and each verified.
Changed
unifi_list_resourcesandunifi_get_resourcefornetworknow return
the fields needed to plan a network move or copy one before a
delete-and-recreate:firewall_zone_id,domain_name,vlan_enabled,
networkgroup,enabled,igmp_snooping,internet_access_enabled,
network_isolation_enabled,dhcpd_dns_enabled,dhcpd_dns_1to
dhcpd_dns_4,dhcpd_leasetime,attr_no_deleteandwan_type.
dhcp_reservationnow returnsnetwork_idanduse_fixedip. Credential
fields (thex_*family,wireguard_private_key) are still withheld.
All of these exceptattr_no_deleteandwan_typecan also be staged,
so a network read back can be recreated as it was and a reservation can be
moved to it withnetwork_id. Verified live against UniFi Network 10.5.67.
The controller refuses moving a network withnetwork_isolation_enabled
into the guestHotspotzone (NetworkIsolationAppliedOnNonCorporateNetwork).
Fixed
-
Staging a
dhcp_reservationdelete is now refused (#143). A reservation is
not its own controller record but the client'suserrecord with
use_fixedip: true, so the delete sentDELETE rest/user/{id}and forgot the
whole client (name, note, group, local DNS), and its rollback could not
restore it. To remove only the reservation, stage an update with
{"use_fixedip": false}. A change set already holding such a delete is
refused at validate and apply. -
Staging a
firewall_zoneupdate no longer fails withfailed to capture pre-image for firewall_zone <id>(#143). The controller answers a per-id
GET firewall/zone/{id}with 405 Method Not Allowed, so the pre-image, the
drift check, the update merge, post-apply verification and
unifi_get_resourcenow read the zone list and pick the zone by_id. A v2
read that returns an array also selects by_idinstead of taking its first
element. Not yet checked against a live controller: whether a zonePUTor
DELETEby id is accepted. -
An applied update is now verified against every top-level scalar field it
staged, not onlyname(#143). An update that changed, say,fwd_port
and did not land was reportedapplied; it is nowapplied_unverified
and names the fields that did not read back. Nested objects and arrays are
still not compared.
v0.6.6
Fixed
- A
firewall_policy,firewall_zoneortraffic_routedelete no longer
reports failure (EOF while parsing a value) after it succeeded (#144).
Private v2 answers a delete with an empty body. The same fix applies to
rolling back a v2 create. On earlier versions, a v2 delete or rollback
markedpartialmost likely did land; check the controller.
Changed
- The MCP registry entry's
config_dirdescription now says that
controllers.json'sapi_key_filemust be the in-container path. - The Docker and LXC guides were corrected against a new-user run of 0.6.5
(#146). The Docker guide'sdocker runcommands had failed as written.
The LXC guide now leads with the signed release tarball and has an
upgrade section.