Title: lab-ops-hub: container validator accepts hosts containing Arabic-Indic digits (U+0660–U+0669) that the Worker validator rejects outright — including the ١٢٧.٠.٠.١ spelling of 127.0.0.1 · Issue #574 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: container validator accepts hosts containing Arabic-Indic digits (U+0660–U+0669) that the Worker validator rejects outright — including the ١٢٧.٠.٠.١ spelling of 127.0.0.1 · Issue #574 · developing-today/code
X Title: lab-ops-hub: container validator accepts hosts containing Arabic-Indic digits (U+0660–U+0669) that the Worker validator rejects outright — including the ١٢٧.٠.٠.١ spelling of 127.0.0.1 · Issue #574 · developing-today/code
Description: Summary The two crawl validators disagree on any host containing an Arabic-Indic digit (U+0660–U+0669). The Worker's validateCrawlUrl (WHATWG URL parsing) rejects every such URL as not a valid URL; the container's validate_crawl_url acce...
Open Graph Description: Summary The two crawl validators disagree on any host containing an Arabic-Indic digit (U+0660–U+0669). The Worker's validateCrawlUrl (WHATWG URL parsing) rejects every such URL as not a valid URL;...
X Description: Summary The two crawl validators disagree on any host containing an Arabic-Indic digit (U+0660–U+0669). The Worker's validateCrawlUrl (WHATWG URL parsing) rejects every such URL as not a valid ...
Opengraph URL: https://github.com/developing-today/code/issues/574
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator accepts hosts containing Arabic-Indic digits (U+0660–U+0669) that the Worker validator rejects outright — including the ١٢٧.٠.٠.١ spelling of 127.0.0.1","articleBody":"## Summary\n\nThe two crawl validators disagree on any host containing an Arabic-Indic digit (U+0660–U+0669). The Worker's `validateCrawlUrl` (WHATWG URL parsing) rejects every such URL as not a valid URL; the container's `validate_crawl_url` accepts them all as ordinary public DNS names and the crawler fetches them (as their punycode A-labels, via `encodings.idna` / getaddrinfo).\n\n## Evidence (verified this run, differential probe of both validators)\n\nContainer validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`) accepts, Worker validator (`pkgs/lab-ops-hub/src/lib.ts`, `validateCrawlUrl`) rejects with `url is not a valid URL`:\n\n- `http://١٢٧.٠.٠.١/` — the Arabic-Indic digit spelling of 127.0.0.1; the container judges it a public DNS name (its ASCII-only `_inet_aton_ipv4` / numeric-final-label checks never see it as an address) and fetches `xn--9hbcp.xn--8hb.xn--8hb.xn--9hb`\n- `http://١٢٣.com/`, `http://example١٢٣.com/`\n- `http://a١.com/`, `http://١a.com/`, `http://1٢٣.com/`, `http://١2٣.com/`, `http://test-١٢٣-abc.com/`, `http://münchen١.com/` — a single Arabic-Indic digit anywhere in the host is enough for the Worker to reject\n- Even the pre-encoded A-label spelling `http://xn--9hbcp.xn--8hb.xn--8hb.xn--9hb/` is rejected by the Worker and accepted by the container\n\nControls that behave identically in both (accepted as punycode DNS names, NOT part of this issue): Devanagari (`१२७.०.०.१`), Extended Arabic-Indic / Persian (`۱۲۷.۰.۰.۱`, U+06F0–U+06F9), Bengali (`১২৭.০.০.১`) and Thai (`๑๒๗.๐.๐.๑`) digit spellings, and mixed Extended Arabic-Indic + ASCII (`1۲۳.com`).\n\n## Why it matters\n\nThe container is the component that actually fetches, and it re-validates independently as defence in depth (#441). A host class one validator certifies and the other refuses outright is exactly the divergence shape behind #502/#504/#507/#516/#527: the container's verdict is the one that decides what gets connected to, and here it waves through — as an unjudged DNS name — a spelling of 127.0.0.1 in a digit script its numeric checks cannot read. Any part of a fetch/resolver stack that folds those digits turns the certified name into the loopback address the policy exists to refuse.\n\n## Acceptance criteria\n\n- `validate_crawl_url` refuses any host containing a codepoint in U+0660–U+0669 (checked on the percent-decoded, UTS-46-mapped host form, alongside the existing forbidden-character arm), matching the Worker's verdict on every spelling above.\n- Devanagari, Extended Arabic-Indic (U+06F0–U+06F9), Bengali and Thai digit hosts remain accepted (Worker parity in the other direction).\n- Regression tests in `test/test_container_validate.py` cover: the ١٢٧.٠.٠.١ spelling, a single-digit mixed label, the percent-encoded spelling of an Arabic-Indic digit host, and the accepted control families.\n- Existing Python and TypeScript validator suites stay green.","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T09:40:51Z","url":"https://github.com/developing-today/code/issues/574"}
| 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:272094d2-4a9f-cf66-862a-5eb98741f804 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B97A:D7B8A:CD7556:10907EF:6B064117 |
| html-safe-nonce | 6f23462ed118737e2f354f027eac021e57dfa56d700842df1dc0108320d7bc90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTdBOkQ3QjhBOkNENzU1NjoxMDkwN0VGOjZCMDY0MTE3IiwidmlzaXRvcl9pZCI6IjU1MzE0NzM2NTkxNjYwODEzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a75b744edb08a7a5c4cadb90c34e273c9a68395701fc2305d80ddfc177c6825a |
| hovercard-subject-tag | issue:5976890765 |
| 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/574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a53ec5461453850428bafffb399a9d5cba9c85521c42a6276b1ca58eb798bf1/developing-today/code/issues/574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a53ec5461453850428bafffb399a9d5cba9c85521c42a6276b1ca58eb798bf1/developing-today/code/issues/574 |
| og:image:alt | Summary The two crawl validators disagree on any host containing an Arabic-Indic digit (U+0660–U+0669). The Worker's validateCrawlUrl (WHATWG URL parsing) rejects every such URL as not a valid URL;... |
| 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 | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| 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 | ac613d3698d3d8565651455086e1f74da07bf277 |
| 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