• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zwave-js / zwave-js-ui / 29565083724
12%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2026 08:03AM UTC
Jobs 1
Files 49
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2026 08:02AM UTC coverage: 12.368% (+4.4%) from 7.994%
29565083724

push

github

web-flow
feat: support trusted API on separate network/IP/port (#4717)

This PR adds support for two environment variables that let a host
application like Home Assistant establish a secure channel to Z-Wave JS
UI's API, without interfering with the user's auth configuration.

This is done by specifying a network/IP/port on which a second API
server is started, and an IP allowlist (which IPs may use this). The
configuration works entirely through environment variables:
- `TRUSTED_API_LISTEN`: Enables the trusted listener. Three forms are
accepted:
- An absolute path starting with `/`: bind a unix socket at that path.
Access control is left to filesystem permissions. A stale socket file
from an unclean shutdown is removed automatically on startup.
- `host:port` with a literal IP (IPv6 in brackets, e.g.
`[fd00::1]:8092`): bind exactly that address.
- `cidr:port` (e.g. `172.30.32.0/23:8092`): resolve the local interface
address inside that network at startup and bind to it. This lets the
host name a (docker) network without either side knowing the container's
dynamic IP. Startup fails if no (or more than one) local address
matches.
- `TRUSTED_API_ALLOWED_IPS`: Comma-separated list of IPs/CIDRs (e.g.
`172.30.32.2,127.0.0.1`) allowed to connect to a TCP binding. **Required
for TCP bindings** — startup fails without it. Ignored for unix sockets.

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

479 of 4395 branches covered (10.9%)

Branch coverage included in aggregate %.

172 of 207 new or added lines in 4 files covered. (83.09%)

901 of 6763 relevant lines covered (13.32%)

2.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
69.23
api/lib/ipUtils.ts
6
13.06
13.06% api/app.ts
6
87.98
api/lib/trustedListener.ts
1
80.0
80.0% api/lib/SocketManager.ts
Jobs
ID Job ID Ran Files Coverage
1 29565083724.1 17 Jul 2026 08:03AM UTC 49
12.37
GitHub Action Run
Source Files on build 29565083724
  • Tree
  • List 49
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 25e522e0 on github
  • Prev Build on master (#29488337761)
  • Next Build on master (#29565703034)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc