René's URL Explorer Experiment


Title: lab-ops-hub: PR #523's container length check measures raw punycode, not the UTS-46-mapped form — mapped IDN labels still diverge from the Worker in both directions · Issue #526 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: PR #523's container length check measures raw punycode, not the UTS-46-mapped form — mapped IDN labels still diverge from the Worker in both directions · Issue #526 · developing-today/code

X Title: lab-ops-hub: PR #523's container length check measures raw punycode, not the UTS-46-mapped form — mapped IDN labels still diverge from the Worker in both directions · Issue #526 · developing-today/code

Description: Summary PR #523 fixed #517 by making the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url, lines 73–82 on main 1d0de449) judge DNS length limits on an "encoded" form — but the encoding it uses is Python's raw pu...

Open Graph Description: Summary PR #523 fixed #517 by making the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url, lines 73–82 on main 1d0de449) judge DNS length limits on an "encoded" form — but...

X Description: Summary PR #523 fixed #517 by making the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url, lines 73–82 on main 1d0de449) judge DNS length limits on an "encoded" ...

Opengraph URL: https://github.com/developing-today/code/issues/526

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: PR #523's container length check measures raw punycode, not the UTS-46-mapped form — mapped IDN labels still diverge from the Worker in both directions","articleBody":"## Summary\n\nPR #523 fixed #517 by making the container validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`, lines 73–82 on main `1d0de449`) judge DNS length limits on an \"encoded\" form — but the encoding it uses is Python's raw `punycode` codec:\n\n```python\nencoded_labels = [\n    label if label.isascii() else \"xn--\" + label.encode(\"punycode\").decode(\"ascii\")\n    for label in host.split(\".\")\n]\n```\n\nRaw punycode is not IDNA. The Worker's `u.hostname` — the form the container is trying to match — is the result of WHATWG/UTS-46 processing, which **maps and normalizes each label before punycode-encoding it** (case/width mapping, NFKC compatibility decomposition, and dropping mapped-to-empty codepoints). Where mapping changes a label's length, the two validators still disagree about the RFC 1035 limits — in both directions.\n\n## Evidence\n\nVerified on current main `1d0de449` (PR #523, commit `eac17571`) by driving both real validators (`container/app.py` from main and `validateCrawlUrl` from `src/lib.ts` via `node --experimental-transform-types`):\n\n| Host label | Container (Python) | Worker (TS) |\n| --- | --- | --- |\n| `\"\\ufdfa\" × 4` + `.com` (U+FDFA ARABIC LIGATURE U+FDFA) | **ACCEPT** (raw punycode label is 11 chars) | REFUSE — `new URL` itself rejects it: UTS-46 NFKC-expands U+FDFA to a long Arabic phrase, whose A-label exceeds 63 |\n| `\"\\uff41\" × 60` + `.com` (fullwidth a) | **REFUSE** as overlong (raw punycode label is 67 chars) | ACCEPT — UTS-46 maps fullwidth a to ASCII `a`, hostname label is exactly 60 |\n| `\"a\" × 60 + U+00AD × 10` + `.com` (soft hyphens) | **REFUSE** as overlong (raw punycode label is 77 chars) | ACCEPT — U+00AD is mapped to empty in UTS-46 processing, hostname label is exactly 60 |\n\nControls agree on both sides: the #517 CJK cases (42-char label refused by both, 40-char label accepted by both) and an ordinary IDN host (`examéple.com`) are unchanged.\n\nThe same `encoded_labels` list also feeds the joined 253-char name check (app.py:79), so the name limit has the same divergence, not just the per-label limit.\n\n## Why it matters\n\nThis is the #517 failure mode one layer down: the container is the defence-in-depth re-check on the component that actually fetches (#441), so where the validators disagree the effective policy is wrong in one direction or the other — the container either certifies a name the fetcher's IDNA step will fail on deep inside the crawl (U+FDFA case; Python's own `encodings.idna` also errors \"label empty or too long\" for it), or refuses a perfectly valid public name the Worker already accepted (fullwidth / soft-hyphen cases — a false refusal of a legitimate crawl target). PR #523's differential probe covered ASCII and CJK hosts only, neither of which is affected by UTS-46 mapping, so the gap survived its parity check.\n\nRelated but distinct from #516 (open): that issue covers IDNA-**disallowed** codepoints the container allows at any length. This issue is about the **length judgement** using the un-mapped form; the fullwidth and soft-hyphen cases are false refusals, the opposite direction from every previous parity issue, and #516's acceptance criteria do not cover them. A fix that processes each label with real UTS-46/IDNA mapping before measuring (rather than the raw `punycode` codec) would likely serve both issues — worth coordinating — but the length cases need their own tests either way. Note Python's stdlib `encodings.idna` is IDNA 2003, whose mapping differs from UTS-46 in places (e.g. ß), so its output needs comparing against the WHATWG result before relying on it (#516 makes the same caution).\n\nCross-repo: this validator pair lives only in developing-today/code (checked: no `lab-ops-hub`/`validate_crawl_url` in the opencode, openchamber or nix clones) — single-repo issue.\n\n## Acceptance criteria\n\n- `validate_crawl_url`'s length checks judge the UTS-46/IDNA-processed form of each label (mapping + normalization applied before punycode), so its overlong verdicts match the Worker's on mapped labels, not just on ASCII/CJK ones.\n- The three evidence hosts above get matching verdicts from both validators: U+FDFA×4 refused up front by the container with the overlong/invalid-name error; fullwidth-a×60 and `\"a\"×60 + U+00AD×10` accepted by both.\n- Regression tests in `pkgs/lab-ops-hub/test/test_container_validate.py` cover at least one mapping-expands case and one mapping-shrinks case, and fail with only `container/app.py`'s length check reverted to the raw-punycode form (ablation).\n- The #517 cases stay pinned: CJK 42-char label refused, 40-char label (61 encoded) accepted, ASCII at/over-limit behaviour unchanged.\n- A differential probe over a battery including compatibility-mapped, width-mapped and mapped-to-empty characters (label and full-name lengths) shows full TS/Python parity.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T03:01:46Z","url":"https://github.com/developing-today/code/issues/526"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2a8c2ddf-6ab0-a825-44d2-d84f2bcf6968
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id941A:1B0DA8:A5BF4D:D7CD09:6B063658
html-safe-nonce36d00c3f853922ff3570c09abf286b1a079403327c37949694e5c98fead830c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDFBOjFCMERBODpBNUJGNEQ6RDdDRDA5OjZCMDYzNjU4IiwidmlzaXRvcl9pZCI6IjQyNzc2NTU1OTQ1OTA0MTg1MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0671a3738d5c2f241292fa4f3c9f08783f16e680620d025f4c46665684d746be
hovercard-subject-tagissue:5972247953
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/526/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e942aa7f4adfeb9e312d49ad7c4b22e6bb160e14f6c51138906071cc3fbbe371/developing-today/code/issues/526
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e942aa7f4adfeb9e312d49ad7c4b22e6bb160e14f6c51138906071cc3fbbe371/developing-today/code/issues/526
og:image:altSummary PR #523 fixed #517 by making the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url, lines 73–82 on main 1d0de449) judge DNS length limits on an "encoded" form — but...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/526#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F526
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F526
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/526
Reloadhttps://github.com/developing-today/code/issues/526
Reloadhttps://github.com/developing-today/code/issues/526
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests155 (155)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/526
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/526
#530https://github.com/developing-today/code/pull/530
lab-ops-hub: PR #523's container length check measures raw punycode, not the UTS-46-mapped form — mapped IDN labels still diverge from the Worker in both directionshttps://github.com/developing-today/code/issues/526#top
#530https://github.com/developing-today/code/pull/530
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/526#issue-5972247953
#523https://github.com/developing-today/code/pull/523
#517https://github.com/developing-today/code/issues/517
#523https://github.com/developing-today/code/pull/523
#517https://github.com/developing-today/code/issues/517
#517https://github.com/developing-today/code/issues/517
#441https://github.com/developing-today/code/issues/441
#523https://github.com/developing-today/code/pull/523
#516https://github.com/developing-today/code/issues/516
#516https://github.com/developing-today/code/issues/516
#516https://github.com/developing-today/code/issues/516
lab-ops-hub: container validator's overlong-name check counts characters, not IDNA-encoded length — IDN labels/names over the RFC 1035 limits still pass in Python while the Worker refuses them #517https://github.com/developing-today/code/issues/517
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/526#event-33909728205
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
43a89a8https://github.com/developing-today/code/commit/43a89a81151219a7325b4229b544b2ebc7bfa286
on Oct 22, 2026https://github.com/developing-today/code/issues/526#event-33912975886
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/526#event-33912977408
Merge pull request #530 from developing-today/sweep/516-uts46-mapped-…https://github.com/developing-today/code/commit/a8a3bf7e79d860f5f58901c4337e1ef7b012206d
#530https://github.com/developing-today/code/pull/530
a8a3bf7https://github.com/developing-today/code/commit/a8a3bf7e79d860f5f58901c4337e1ef7b012206d
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/526
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/526
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.