Title: lab-ops-hub: container validator still allows IDNA-disallowed Unicode hosts (space separators, bidi/format controls, U+FFFD) the Worker validator refuses · Issue #516 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: container validator still allows IDNA-disallowed Unicode hosts (space separators, bidi/format controls, U+FFFD) the Worker validator refuses · Issue #516 · developing-today/code
X Title: lab-ops-hub: container validator still allows IDNA-disallowed Unicode hosts (space separators, bidi/format controls, U+FFFD) the Worker validator refuses · Issue #516 · developing-today/code
Description: Summary While verifying the fix for #510, an extended character probe (beyond #510's battery of printable ASCII + 0x7F–0xA0 + é + a combining char) found a further divergence class between the two lab-ops-hub crawl validators: hosts cont...
Open Graph Description: Summary While verifying the fix for #510, an extended character probe (beyond #510's battery of printable ASCII + 0x7F–0xA0 + é + a combining char) found a further divergence class between the two ...
X Description: Summary While verifying the fix for #510, an extended character probe (beyond #510's battery of printable ASCII + 0x7F–0xA0 + é + a combining char) found a further divergence class between the ...
Opengraph URL: https://github.com/developing-today/code/issues/516
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator still allows IDNA-disallowed Unicode hosts (space separators, bidi/format controls, U+FFFD) the Worker validator refuses","articleBody":"## Summary\n\nWhile verifying the fix for #510, an extended character probe (beyond #510's battery of printable ASCII + 0x7F–0xA0 + é + a combining char) found a further divergence class between the two lab-ops-hub crawl validators: hosts containing certain Unicode characters are refused by the Worker's `validateCrawlUrl` (`pkgs/lab-ops-hub/src/lib.ts` — the WHATWG URL parser's IDNA processing rejects them) but are still certified as \"a public DNS name\" by the container's `validate_crawl_url` (`pkgs/lab-ops-hub/container/app.py`).\n\nVerified on main `025794c8` (plus the #510 fix, which does not affect these codepoints) by driving both real validators with each character embedded as `http://exam\u003cchar>ple.com/`:\n\n| Codepoint(s) | TS Worker | Python container |\n| --- | --- | --- |\n| U+1680, U+2000–U+200A, U+202F, U+205F, U+3000 (Unicode space separators) | BLOCK | **ALLOW** |\n| U+2028, U+2029 (line/paragraph separators) | BLOCK | **ALLOW** |\n| U+0600, U+061C (Arabic format marks) | BLOCK | **ALLOW** |\n| U+200E, U+200F (LRM/RLM), U+202A–U+202E (bidi embedding/override controls) | BLOCK | **ALLOW** |\n| U+200C, U+200D (ZWNJ/ZWJ in this context) | BLOCK | **ALLOW** |\n| U+FFFD (replacement character) | BLOCK | **ALLOW** |\n\nControls, identical on both sides (must not change): U+00AD (soft hyphen), U+180E, U+200B (ZWSP), U+2060, U+2064, U+FEFF are ALLOW/ALLOW; ordinary DNS names, `exam_ple.com`, valid IDN hosts (e.g. `examéple.com`) and valid IPv6 literals are ALLOW/ALLOW.\n\n## Why it matters\n\nSame parity premise as #468/#502/#505/#507/#510: the container validator is the defence-in-depth re-check on the component that actually fetches (#441), so where the two validators disagree the effective policy is the weaker one. These hosts are not valid DNS names under UTS-46/IDNA either — no resolver accepts a host with a bidi override or an ideographic space in a label — so the container's verdict is meaningless for them and the crawl fails below the validator instead of at it.\n\nThis is a wider, IDNA-shaped class than the ASCII/codepoint-range fixes so far: a correct fix probably needs to judge the host label-by-label against the IDNA disallowed set (or attempt a strict UTS-46/IDNA encoding of each label and refuse on failure), not another codepoint range. Python's stdlib `encodings.idna` implements IDNA 2003, not UTS-46, so its verdicts need comparing against the WHATWG set before relying on it.\n\n## Acceptance criteria\n\n- `validate_crawl_url` refuses a host containing any of the codepoints in the table above, up front with a clear validator error.\n- Controls unchanged: the ALLOW/ALLOW codepoints in the table, ordinary DNS names, `exam_ple.com`, valid IDN hosts, valid IPv6 literals and public targets are still accepted on both sides.\n- A regression test in `pkgs/lab-ops-hub/test/test_container_validate.py` covers each refused class, and fails with only `container/app.py` reverted (ablation).\n- The Python and TS validators agree on the extended battery above (the table's codepoints plus the #510 battery).\n\nCross-repo note: this validator pair lives only in developing-today/code (see #510's cross-repo check), so this is a single-repo issue.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T00:12:45Z","url":"https://github.com/developing-today/code/issues/516"}
| 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:f1b6b35f-2cb6-8cf7-a669-70d25977c28a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E88A:2D919D:89003F:B17FBF:6B062D55 |
| html-safe-nonce | 96d5a6d2f542ae17af2e6c5793d430952e005e9c236490d562df022d69eba722 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODhBOjJEOTE5RDo4OTAwM0Y6QjE3RkJGOjZCMDYyRDU1IiwidmlzaXRvcl9pZCI6IjMzMDA0NDgwNDM5NDU4MzE3NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7f07f8fe7af3df7143cc8ce5c88dc89c7d63b36cedfbcfd304f6a575a3b288fa |
| hovercard-subject-tag | issue:5970603359 |
| 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/516/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a34d37108e88b43dd3d837e51d7e61320656b8080a419c95f97f83851e2e4cb/developing-today/code/issues/516 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a34d37108e88b43dd3d837e51d7e61320656b8080a419c95f97f83851e2e4cb/developing-today/code/issues/516 |
| og:image:alt | Summary While verifying the fix for #510, an extended character probe (beyond #510's battery of printable ASCII + 0x7F–0xA0 + é + a combining char) found a further divergence class between the two ... |
| 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 | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| 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 | 494ea0bb1e0feef734a83e2628697647755e8864 |
| 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