Skip to content

ApmonD 1.0.1

Choose a tag to compare

@bluewavenet bluewavenet released this 27 Oct 21:19
· 64 commits to master since this release
db2bddc

ApmonD 1.0.1

A security and readability update to ApmonD 1.0.0. Upgrading is recommended on every node.

Security

  • The collector's reply to a report is no longer sourced as shell. Each value is sanitised when it is written to last_send, and apmond status parses the file instead of running it, so a rogue collector reply cannot run commands on an access point. The old 1.0.0 last_send format is still read.

New

  • node_status in each report now carries the node's apmond ULA (node_ula) and its IPv4 addresses (ipv4_addresses), after device_mac. Both are optional: the protocol stays at 1, and 1.0.0 collectors and mesh11sd accept and show the new report unchanged.
  • -v and --version print the version, as mesh11sd does, and service apmond start and restart print it too.

Readability

  • The script was reworked for human readability: one statement per line, multi-line if/for/case, blank lines between steps, short comments, a json_field() helper for the status JSON, and a clearer ipv6_canon() and json_array(). There is no change in behaviour.

Tested on two GL-MT300N-V2 running OpenWrt 25.12.5, and with the mock end to end tests (238 pass, including a 1.0.0 collector receiving a 1.0.1 report).

Install: build the package with the feed template linux_openwrt/apmond/Makefile (OpenWrt 25.12 or later, apk), or use the OpenWrt packages feed once it lands there (openwrt/packages#30935).

LuCI support: luci-app-apmond 1.0.1.

Full list of changes: ChangeLog