The App That Refuses Your NAS
The refusal behaviour this entry describes is in the released app — 2.2.1, the standing release — and a listener with the right (wrong) network can meet it on glass. The documentation and test material quoted alongside it lives only in the development tree; those claims are marked source-only where they appear, and you take them as reported.
There is a class of listener the Engine turns away at the door. Not for a bad password, not for a broken server — for the address. Point the released app at a music server that lives on an IPv6 unique-local address (the fd00::/8 space some home-lab setups use), or behind carrier-grade NAT (100.64.0.0/10), and the network layer refuses to fetch from it. The server can be healthy, the listener can own it outright, and the answer is still no. This entry is about why that refusal exists, and about something rarer: the way it is written down.
Start with the why, because it is not arbitrary. A player that speaks discovery protocols fetches URLs on other machines' say-so. A device announces itself on the local network, the app goes and reads the description the announcement points at, and later it opens the stream address a server hands it. Every one of those fetches is the app doing what the network told it to do — which means a hostile machine on the network can tell it to fetch something else. The classic targets are not music: the link-local address where cloud platforms serve a machine's own credentials to anything that asks from inside, or the wildcard address that on some systems quietly reaches whatever is listening on the device itself. An app that fetches what it is told is a weapon anyone on the wire can aim, and the Engine's answer is a door policy by address class: a short, exhaustive list of admitted spaces — the private IPv4 ranges, loopback, one deprecated IPv6 site-local range — and refusal for everything else. Not a blocklist of known-bad addresses; an allowlist with a locked default. Absence from the list is the refusal.
That much is sound engineering of a well-documented kind, and if that were all, there would be no entry. What makes the boundary worth writing about is its prose. The source does not merely implement the policy; it confesses it, in three registers I have not seen together anywhere else in the Engine. All three of the following are source-only claims.
First: the redundant refusals are labelled redundant. Three address classes — multicast, link-local, the wildcard — are refused explicitly even though each already falls outside the admitted list, and the documentation says so in as many words: these checks "can only refuse, never admit." Belt and braces is ordinary; documentation that tells you which is the belt and which the braces, so that no future reader mistakes a brace for a load-bearing wall, is not.
Second: a past mistake is kept on display. The wildcard address was at one point "previously — wrongly — admitted" — the documentation's own words, dashes and all — and when the error was caught, the correction did not replace the history, it recorded it. The same confession is repeated in the guarding test's failure message, so that if the mistake ever returns, the test that catches it will say this was wrong once before. Most codebases fix an error and erase it. This one fixed it and framed it.
Third — and this is the part I find genuinely unusual — the boundary names the doors it cannot lock. The unique-local and carrier-NAT refusals I opened with are not policy at all, strictly: the platform's address library offers no way to recognise those classes, so they fall through to the default refusal unexamined. The documentation could have let that pass silently — refused is refused. Instead it declares the gap: "a declared limitation, not an oversight," with the reasoning attached. And one layer deeper, on an inward-facing check that guards a single raw connection, the limitation points the other way, and the source says that too. For a server the listener has deliberately enrolled, a hostile DNS answer could steer that one connection toward those same unrecognisable address classes, because — the documentation again — "a legitimate ULA server is indistinguishable from a DNS-rebind target by address class alone." Refusing the whole class would break the few legitimate uncommon home servers that could otherwise ever hope to enroll; so the gap was ruled on in September, left open on purpose, and docketed as such in the source, with its worst case stated: that one raw connection exchanges no application data at all — it performs a handshake for certificate capture and closes, and a test pins that the server sees zero requests, with a comment calling that absence the load-bearing assertion. The worst a steered connection can ever amount to is a blind knock on an internal door. Never a conversation.
I publish that last paragraph deliberately, and the reasoning belongs in the open: this is not a hole awaiting a fix, which the charter would have me hold back until the fix shipped. It is a ruled, bounded, permanent trade — the kind every real system carries and almost no system admits — and its bound is exactly what makes it publishable. A reader learns that a locked building has a doorbell, not where the key is.
The cost of the policy is real, and the title of this entry is the cost. A listener whose NAS genuinely lives on a unique-local address is refused today, by an app that knows the refusal is a limitation and says so — in a place that listener will never read. Opinion, and plainly marked as such: I think this is the right trade, and I think the documentation is the more important artifact. A security boundary's quality is usually measured at its strong points; its honesty is only measurable at its edges — at what it admits it cannot tell apart, cannot recognise, cannot promise. Every allowlist has an end. This one knows where its end is, wrote the end down, and recorded the one time it was wrong about it. I have called the Engine's refusal machinery a vocabulary before, and argued that its verdicts name their own limits; this is the same law applied to the wall itself. A firewall is just a list of refusals. A firewall written like a confession — redundancies labelled, errors preserved, gaps docketed with their worst case attached — is a list of refusals you have some reason to believe.