René's URL Explorer Experiment


Title: lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (%65xample.com, 8%2e8%2e8%2e8) diverge, including as redirect targets · Issue #529 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (example.com, 8.8.8.8) diverge, including as redirect targets · Issue #529 · developing-today/code

X Title: lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (example.com, 8.8.8.8) diverge, including as redirect targets · Issue #529 · developing-today/code

Description: Summary The two lab-ops-hub crawl validators disagree on percent-encoded hosts whose decoded form is public. The Worker validator (WHATWG URL) percent-decodes the host before judging it, so example.com, example.com and 8.8.8.8 ...

Open Graph Description: Summary The two lab-ops-hub crawl validators disagree on percent-encoded hosts whose decoded form is public. The Worker validator (WHATWG URL) percent-decodes the host before judging it, so examp...

X Description: Summary The two lab-ops-hub crawl validators disagree on percent-encoded hosts whose decoded form is public. The Worker validator (WHATWG URL) percent-decodes the host before judging it, so examp...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (%65xample.com, 8%2e8%2e8%2e8) diverge, including as redirect targets","articleBody":"## Summary\n\nThe two lab-ops-hub crawl validators disagree on percent-encoded hosts whose decoded form is public. The Worker validator (WHATWG URL) percent-decodes the host before judging it, so `%65xample.com`, `example%2ecom` and `8%2e8%2e8%2e8` are accepted as the public hosts they decode to. The container validator refuses **every** host containing `%` (the blanket fail-closed rule added for #505), including those public spellings — and including them as redirect targets, which the container validates raw with no Worker normalisation in between.\n\n## Evidence (verified 2026-10-21 on main `b5757a66`, both validators run directly)\n\nWorker — `pkgs/lab-ops-hub/src/lib.ts:130` `validateCrawlUrl` (via Node's WHATWG `URL`):\n\n| input host | `u.hostname` | verdict |\n| --- | --- | --- |\n| `%65xample.com` | `example.com` | OK |\n| `example%2ecom` | `example.com` | OK |\n| `8%2e8%2e8%2e8` | `8.8.8.8` | OK |\n| `%6cocalhost` | `localhost` | refused (decoded form judged) |\n| `127%2e0%2e0%2e1` | `127.0.0.1` | refused |\n\nContainer — `pkgs/lab-ops-hub/container/app.py:114-116` (`if \"%\" in host: raise … refusing to crawl percent-encoded host`):\n\n| input host | verdict |\n| --- | --- |\n| `%65xample.com` | refused |\n| `example%2ecom` | refused |\n| `8%2e8%2e8%2e8` | refused |\n| `%38%2e8.8.8` | refused |\n| `%6cocalhost` | refused (correct outcome, via the blanket rule) |\n\n## Why it matters\n\n- The validators are meant to hold the same policy independently (lib.ts:12: \"The Python container crawler applies the same policy independently\"). Every other divergence in this series (#502, #504, #507, #510, #511, #513, #517, #519, #527) was treated as a bug to align, in whichever direction.\n- Direct `/api/crawl` submissions are masked by `src/index.ts:368` (`b.url = target.url` — the Worker dispatches the normalised URL), but redirect targets are not: `container/app.py:241-243` (`_ValidatingRedirectHandler.redirect_request`) validates the raw `Location` target, so a public page that 3xx-redirects to a percent-encoded public host crawls fine on the Worker-fallback path and 400s in the container, burning a container run and recording a spurious `containerError` before the fallback succeeds.\n- #505's blanket refusal was the right fail-closed stopgap for decoded-blocked hosts (`%6cocalhost`, `127.0.0.1%09`, IPv6 zone ids); the follow-up is to decode-and-judge like WHATWG instead of refusing the whole class.\n\n## Suggested fix / acceptance criteria\n\n- [ ] Container validator percent-decodes the host (valid `%XX` sequences, UTF-8) before the existing checks, mirroring WHATWG host parsing, instead of refusing on any `%`.\n- [ ] Decoded-blocked spellings stay refused: `%6cocalhost` → localhost, `127%2e0%2e0%2e1` → 127.0.0.1, `foo%2elocalhost` → foo.localhost, `127.0.0.1%09` (decodes to a forbidden tab character).\n- [ ] Invalid percent sequences (`%zz`, a trailing `%`) and IPv6 zone ids (`[fe80::1%25eth0]`) stay refused — WHATWG rejects both outright.\n- [ ] Decoded-public spellings are accepted in both validators: `%65xample.com`, `example%2ecom`, `8%2e8%2e8%2e8`, `%38%2e8.8.8`.\n- [ ] A parity test pins these cases in both suites (`test/lib.test.ts`, `test/test_container_validate.py`), including at least one as a redirect target.\n- [ ] Note: judging the decoded form is not the same as fetching the raw spelling — urllib does not percent-decode hosts — so the fix should make the container fetch the decoded/normalised host (as the Worker does via `target.url`), not merely accept the raw URL.\n\nSingle-repo: `validateCrawlUrl`/`validate_crawl_url` exist only in this repo (checked the opencode, openchamber and nix clones — no copies).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T04:00:47Z","url":"https://github.com/developing-today/code/issues/529"}

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:6704e581-82d2-1ee9-598d-d52892a64f60
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FCE:3D2C49:6D68E8:8E3C7E:6B0626F6
html-safe-nonce4fda370ccd8429f1c3805cb6815569e2aec32ec1a4300ebbdba7eb8ece659ffc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkNFOjNEMkM0OTo2RDY4RTg6OEUzQzdFOjZCMDYyNkY2IiwidmlzaXRvcl9pZCI6IjY1MTA5NDg2NTYxOTAyMDM2MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf153418e055d7ab446553f0b7fcd0b462fab5144a52fc6696919cfb73d8a1d85
hovercard-subject-tagissue:5972801902
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/529/issue_layout
twitter:imagehttps://opengraph.githubassets.com/965b20f4d40a489c6ab3fa771bd4bc6d1430731c911fc0abf46c1612ad1f22fc/developing-today/code/issues/529
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/965b20f4d40a489c6ab3fa771bd4bc6d1430731c911fc0abf46c1612ad1f22fc/developing-today/code/issues/529
og:image:altSummary The two lab-ops-hub crawl validators disagree on percent-encoded hosts whose decoded form is public. The Worker validator (WHATWG URL) percent-decodes the host before judging it, so examp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce
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
release32e57d5cc2ce6ce92ec6dceb65858344750c27c2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/529#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F529
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%2F529
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/529
Reloadhttps://github.com/developing-today/code/issues/529
Reloadhttps://github.com/developing-today/code/issues/529
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 requests147 (147)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/529
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/529
#533https://github.com/developing-today/code/pull/533
lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (%65xample.com, 8%2e8%2e8%2e8) diverge, including as redirect targetshttps://github.com/developing-today/code/issues/529#top
#533https://github.com/developing-today/code/pull/533
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/529#issue-5972801902
#505https://github.com/developing-today/code/issues/505
lab-ops-hub: container crawler treats invalid IPv4 spellings, numeric-final-label hosts and malformed ports as public DNS names #502https://github.com/developing-today/code/issues/502
lab-ops-hub: container validator still allows bare 0x hosts (example.0x, 0x) that the Worker validator refuses #504https://github.com/developing-today/code/issues/504
lab-ops-hub: container validator accepts space hosts and IPvFuture literals the Worker validator refuses #507https://github.com/developing-today/code/issues/507
lab-ops-hub: container validator still allows DEL/C1-control, NBSP and WHATWG-forbidden (<>^|) hosts the Worker validator refuses #510https://github.com/developing-today/code/issues/510
lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dot #511https://github.com/developing-today/code/issues/511
lab-ops-hub: both crawl validators accept impossible DNS names — labels over 63 chars and names over 253 chars #513https://github.com/developing-today/code/issues/513
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
lab-ops-hub: both crawl validators accept the RFC 9637 documentation range 3fff::/20 as a public crawl target #519https://github.com/developing-today/code/issues/519
lab-ops-hub: container validator allows UTS-46/NFKC-mapped spellings of blocked targets — fullwidth localhost and unicode-dot IPv4 resolve to loopback/private #527https://github.com/developing-today/code/issues/527
lab-ops-hub: container validator allows percent-encoded hosts (%6cocalhost, 127.0.0.1%09) and IPv6 zone ids that the Worker validator refuses #505https://github.com/developing-today/code/issues/505
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/529#event-33912708666
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/529#issuecomment-6333967450
#533https://github.com/developing-today/code/pull/533
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/529#event-33919369440
Merge pull request #533 from developing-today/sweep/529-percent-encod…https://github.com/developing-today/code/commit/06900e7c413ddf8d9a47b385bcf3a991b6a1850a
#533https://github.com/developing-today/code/pull/533
06900e7https://github.com/developing-today/code/commit/06900e7c413ddf8d9a47b385bcf3a991b6a1850a
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#533https://github.com/developing-today/code/pull/533
on Oct 22, 2026https://github.com/developing-today/code/issues/529#event-33919369526
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/529
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/529
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.