Skip to content

lab-ops-hub: both crawl validators accept the bare home.arpa apex — every subdomain is refused, the RFC 8375 local name itself is not #608

Closed

Description

@dezren39

Summary

Both crawl-URL validators block every host under home.arpa but accept the bare apex home.arpa itself. home.arpa is the RFC 8375 special-use domain for residential home networks — resolvers answer names in that zone (including the apex, used for homenet service/gateway discovery) from the local network, which is exactly the class of target the blocked-suffix list exists to keep the crawler away from. The apex escapes only because the suffixes carry a leading dot and, unlike localhost, home.arpa never got an equality check.

Evidence (verified on current main, both validators)

Container validator (pkgs/lab-ops-hub/container/app.py:29, check at app.py:302):

_BLOCKED_SUFFIXES = (".localhost", ".local", ".internal", ".lan", ".home.arpa")
...
if host == "localhost" or host.endswith(_BLOCKED_SUFFIXES):

Worker validator (pkgs/lab-ops-hub/src/lib.ts:128, check at lib.ts:169): identical shape — host === "localhost" || BLOCKED_HOST_SUFFIXES.some(s => host.endsWith(s)).

Probe results (identical in both validators):

host result
bar.home.arpa refused (local host)
home.arpa accepted
home.arpa. (trailing root dot, stripped before the check) accepted
HOME.ARPA (lowercased before the check) accepted

Dedup: no open or closed issue mentions home.arpa; no test in either suite mentions it.

Why it matters

The crawler is explicitly barred from local-network targets (loopback, link-local, .local, .internal, .home.arpa, …). A user-supplied crawl URL of http://home.arpa/ passes validation in both the container crawler and the Worker fallback and is fetched — reaching the local network's homenet naming/gateway service the policy intends to exclude. It's a one-name hole in an otherwise systematically closed policy, of the same shape as the earlier trailing-dot and empty-label evasions (#466, #511).

Acceptance criteria

  • Both validators refuse home.arpa in all its judged spellings (bare, trailing-dot, uppercase) with the existing "refusing to crawl local host" error, mirroring the host == "localhost" equality handling.
  • Regression tests in both suites (test/test_container_validate.py and test/lib.test.ts) covering the apex spellings alongside the existing subdomain cases.
  • Consider (and note the decision in the PR) whether the other dotted suffixes' apexes (bare local, internal, lan, localhost as single labels) should get the same equality treatment, or whether home.arpa is special because its apex is itself a live local name.

Activity

  1. added a commit that references this issue on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions