Title: lab-ops-hub: both crawl validators accept the RFC 9637 documentation range 3fff::/20 as a public crawl target · Issue #519 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: both crawl validators accept the RFC 9637 documentation range 3fff::/20 as a public crawl target · Issue #519 · developing-today/code
X Title: lab-ops-hub: both crawl validators accept the RFC 9637 documentation range 3fff::/20 as a public crawl target · Issue #519 · developing-today/code
Description: Problem Both lab-ops-hub crawl validators accept IPv6 addresses in 3fff::/20 — the documentation range allocated by RFC 9637 (IANA IPv6 special-purpose registry: not globally reachable) — as public crawl targets. Every other documentatio...
Open Graph Description: Problem Both lab-ops-hub crawl validators accept IPv6 addresses in 3fff::/20 — the documentation range allocated by RFC 9637 (IANA IPv6 special-purpose registry: not globally reachable) — as public...
X Description: Problem Both lab-ops-hub crawl validators accept IPv6 addresses in 3fff::/20 — the documentation range allocated by RFC 9637 (IANA IPv6 special-purpose registry: not globally reachable) — as public...
Opengraph URL: https://github.com/developing-today/code/issues/519
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: both crawl validators accept the RFC 9637 documentation range 3fff::/20 as a public crawl target","articleBody":"## Problem\n\nBoth lab-ops-hub crawl validators accept IPv6 addresses in **3fff::/20** — the documentation range allocated by RFC 9637 (IANA IPv6 special-purpose registry: not globally reachable) — as public crawl targets.\n\nEvery other documentation range is refused by both validators: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 in `ipv4IsGlobal`, and 2001:db8::/32 explicitly at `src/lib.ts` (`if (g[0] === 0x2001 && g[1] === 0x0db8) return false`). 3fff::/20 is simply missing from both implementations:\n\n- Worker (TS): `pkgs/lab-ops-hub/src/lib.ts`, `ipv6IsGlobal` (lines 80–127) — special-range checks end at the 2001::/23 block and the final `2000::/3` gate lets 3fff::/20 through. `grep 3fff` finds no check.\n- Container (Python): `pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url` IPv6 branch — no explicit 3fff::/20 network; the verdict is delegated entirely to `ipaddress.is_global`, whose bundled special-purpose registry varies by interpreter version.\n\n## Evidence (verified this run on main bf642287)\n\nCalled both validators directly:\n\n| host | Worker TS | Container Python (3.12.3) |\n|---|---|---|\n| `[3fff::1]` | ALLOW | ALLOW (`is_global` True) |\n| `[3fff:0fff:ffff::1]` (last address in /20) | ALLOW | ALLOW |\n| `[3fff:1000::1]` (first address past /20) | ALLOW | ALLOW — correctly public |\n| `[3ffe::1]` | ALLOW | ALLOW — correctly public |\n| `[2001:db8::1]` (documentation, for contrast) | BLOCK | BLOCK |\n\n## Why it matters\n\nThe crawler will happily dispatch fetch/container time at documentation addresses that can never answer — the same class of non-public target the #441 policy and the #474 fix exist to refuse. On the Python side the gap is worse than a missing row: because there is no explicit check, the container's verdict silently depends on which Python's registry the interpreter ships, so the two validators can drift apart across a base-image bump with no code change.\n\n## Acceptance criteria\n\n- Both validators refuse every address in 3fff::/20, including the boundary addresses 3fff:: and 3fff:0fff:ffff:ffff:ffff:ffff:ffff:ffff.\n- Both validators still allow the neighbouring global-unicast addresses (3fff:1000::1, 3ffe::1).\n- The Python check is explicit (a named 3fff::/20 network), not delegated to `ipaddress.is_global`, so the verdict is interpreter-version independent.\n- Shared test vectors for the range and its boundaries added to both suites (`test/lib.test.ts`, `test/test_container_validate.py`); both suites pass.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T01:03:38Z","url":"https://github.com/developing-today/code/issues/519"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6143f3f1-f726-4dbd-44ab-7575c1671235 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C514:3DA8B4:8DF0C8:BE84F2:6B063961 |
| html-safe-nonce | b7d97aebbe25887873eacab77ef74d20fb8a639cff7874d2e31192ac6052611b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTE0OjNEQThCNDo4REYwQzg6QkU4NEYyOjZCMDYzOTYxIiwidmlzaXRvcl9pZCI6IjkzNzgwMDc2NzkzNzg1Mzc5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b9094a12a0404cd1675d170679a09c6e3f3af780006e678c1107730edfaa7d5 |
| hovercard-subject-tag | issue:5971086569 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d5d5adf11d46e9ba4ce1739abd6002c1c11283ef3e00184dd1d58dc4ca0b28f/developing-today/code/issues/519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d5d5adf11d46e9ba4ce1739abd6002c1c11283ef3e00184dd1d58dc4ca0b28f/developing-today/code/issues/519 |
| og:image:alt | Problem Both lab-ops-hub crawl validators accept IPv6 addresses in 3fff::/20 — the documentation range allocated by RFC 9637 (IANA IPv6 special-purpose registry: not globally reachable) — as public... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width