Skip to content

lab-ops-hub: refuse the bare home.arpa apex in both crawl validators (#608) - #609

Merged
dezren39 merged 1 commit into
mainfrom
creator/608-home-arpa-apex
Oct 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator/608-home-arpa-apex

Conversation

@dezren39

@dezren39 dezren39 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Fixes #608.

Both crawl validators blocked every host under home.arpa via the dotted .home.arpa suffix but accepted the bare apex — and home.arpa is itself the RFC 8375 special-use name for the local home network. Mirrors the existing localhost equality arm in both validators:

  • pkgs/lab-ops-hub/container/app.py: host in ("localhost", "home.arpa") or host.endswith(_BLOCKED_SUFFIXES)
  • pkgs/lab-ops-hub/src/lib.ts: same equality arm added.

Decision on the other suffix apexes (per #608's criteria): bare local / internal / lan single-label hosts stay accepted — they are ordinary single-label hostnames, not designated local names; only home.arpa's apex is itself a live local name. Noted in code comments in both files.

Tests: apex spellings (home.arpa, home.arpa., HOME.ARPA) plus a subdomain case added to both suites. Python 37/37 and TS 31/31 pass; ablation verified (both suites fail the new cases with the fix stashed).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Bug Fixes
    • Crawl URL validation now rejects the local hostname home.arpa, including uppercase, trailing-dot, and subdomain variants.
    • Public hostnames such as example.com remain accepted.

@dezren39
dezren39 requested a review from a team as a code owner October 22, 2026 20:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T20:03:30.360011Z ca92e5a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a153d5a0-2057-4ec2-8be6-7afc6e51b801
📥 Commits

Reviewing files that changed from the base of the PR and between ae38cd6 and ca92e5a.

📒 Files selected for processing: 4
  • pkgs/lab-ops-hub/container/app.py
  • pkgs/lab-ops-hub/src/lib.ts
  • pkgs/lab-ops-hub/test/lib.test.ts
  • pkgs/lab-ops-hub/test/test_container_validate.py
+----------------------------------------------------------------------------------------------------------------------------------------+
| It is a truth universally acknowledged, that a single developer in possession of a good feature, must be in want of an AI code review. |
+----------------------------------------------------------------------------------------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit b40970a into main Oct 22, 2026
4 of 5 checks passed
@dezren39
dezren39 deleted the creator/608-home-arpa-apex branch October 22, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant