René's URL Explorer Experiment


Title: lab-ops-hub: container validator accepts space hosts and IPvFuture literals the Worker validator refuses · Issue #507 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator accepts space hosts and IPvFuture literals the Worker validator refuses · Issue #507 · developing-today/code

X Title: lab-ops-hub: container validator accepts space hosts and IPvFuture literals the Worker validator refuses · Issue #507 · developing-today/code

Description: Summary The lab-ops-hub container crawler's validate_crawl_url (pkgs/lab-ops-hub/container/app.py) accepts two host forms the Worker's validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts:129) refuses outright, classifying both as "a public DNS...

Open Graph Description: Summary The lab-ops-hub container crawler's validate_crawl_url (pkgs/lab-ops-hub/container/app.py) accepts two host forms the Worker's validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts:129) refuses out...

X Description: Summary The lab-ops-hub container crawler's validate_crawl_url (pkgs/lab-ops-hub/container/app.py) accepts two host forms the Worker's validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts:129) ref...

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

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: container validator accepts space hosts and IPvFuture literals the Worker validator refuses","articleBody":"## Summary\n\nThe lab-ops-hub container crawler's `validate_crawl_url` (`pkgs/lab-ops-hub/container/app.py`) accepts two host forms the Worker's `validateCrawlUrl` (`pkgs/lab-ops-hub/src/lib.ts:129`) refuses outright, classifying both as \"a public DNS name\" — a verdict the container's own fetcher then contradicts:\n\n| Input | TS Worker | Python container |\n| --- | --- | --- |\n| `http://exam ple.com/` | BLOCK (\"url is not a valid URL\") | **ALLOW** (returned verbatim as a public DNS name) |\n| `http://exa mple.com/` | BLOCK | **ALLOW** |\n| `http://[v1.fe80::]/` | BLOCK (\"url is not a valid URL\") | **ALLOW** |\n| `http://[v7.a]/` | BLOCK | **ALLOW** |\n| `http://[vf.FF]/` | BLOCK | **ALLOW** |\n\nControls, identical on both sides (must not change): `http://exam_ple.com/` ALLOW/ALLOW, `http://exam-ple.com/` ALLOW/ALLOW, `http://exam ple.local/` BLOCK/BLOCK (the `.local` suffix check fires first).\n\n## Evidence\n\nVerified this run on main `1f2ae9f4` by driving both real validators over the same inputs (TS via bun importing `src/lib.ts`, Python by importing `container/app.py`):\n\n- Space in host: `urlparse` hands the host through verbatim; no check in `validate_crawl_url` inspects it for whitespace, `ipaddress` rejects it, `_inet_aton_ipv4` returns `None`, the final label (`com`) is not numeric, so the function returns the raw URL as \"a public DNS name\" (app.py:79). The fetcher disagrees: `http.client.HTTPConnection(\"exam ple.com\")` raises `InvalidURL: URL can't contain control characters` — the crawl dies deep inside the fetcher with a low-level error instead of the validator's clean refusal. This is exactly the failure shape #502 fixed for ports (\"urlparse only raises for it lazily, deep inside the fetcher, so read it here and refuse up front\", app.py:34-41) — the host form was not given the same treatment.\n- IPvFuture literals: `urlparse` strips the brackets, so the host is `v1.fe80::`; it is not a valid IPv6 literal, contains characters the `_inet_aton_ipv4` gate rejects, and its final label is not numeric, so it too falls through to \"a public DNS name\". A DNS name never contains `:`; the bracketed form was an IP-literal position in the URL, and an IP literal the validator cannot judge must fail closed (the principle #505 applied to `%` hosts and zone ids).\n\n## Why it matters\n\nThe container validator is the defence-in-depth re-check on the component that actually fetches (#441), and the parity premise of #468/#502/#505 is that where the two validators disagree, the effective policy is the weaker one. Here the weaker side does not merely allow a fetch the other refuses — it certifies hosts that are not DNS names at all, pushing the failure into the fetcher as an unhandled `InvalidURL`/resolution error and leaving the guard's verdict meaningless for a whole class of malformed hosts.\n\n## Acceptance criteria\n\n- `validate_crawl_url` refuses a host containing a space or control character (anything `http.client` would reject as a control character, i.e. ord \u003c= 0x20) with a clear validator error.\n- `validate_crawl_url` refuses a bracketed host that is not a valid IPv6 literal (IPvFuture and any other `[...]` form `ipaddress` cannot parse), instead of reclassifying it as a DNS name.\n- Regression tests in `test/test_container_validate.py` cover both classes; the controls above (`exam_ple.com`, valid IPv6 literals, ordinary DNS names) still pass.\n- The TS validator needs no change (it already refuses both classes); `npm test` in `pkgs/lab-ops-hub` stays green on both suites.\n\nSingle-repo: lab-ops-hub exists only in developing-today/code. Distinct from #504 (bare `0x` final labels) and #505 (percent-encoded hosts / IPv6 zone ids), which cover neighbouring spellings, not these two classes.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T21:20:46Z","url":"https://github.com/developing-today/code/issues/507"}

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:2292ea4b-c200-b40c-df54-9ff4ef1d4bae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD16E:259026:A54B4D:D6E4EC:6B063950
html-safe-noncee94e65684d2b67c83a5ccde5ad14cc38d7f82cdccdf1d35e1d553b692fbb9de5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTZFOjI1OTAyNjpBNTRCNEQ6RDZFNEVDOjZCMDYzOTUwIiwidmlzaXRvcl9pZCI6IjMwNjA5MzQwMDQzNjM5MDEyNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb8c726e3c5360d2f1863f65ae3a5babb9d48f613ada608ba74a38493e7f932b7
hovercard-subject-tagissue:5968737035
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/507/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a0196da54c908d2c5bfffcde2d1a61af19e9328ca9a56e4dfc366dabafd261db/developing-today/code/issues/507
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a0196da54c908d2c5bfffcde2d1a61af19e9328ca9a56e4dfc366dabafd261db/developing-today/code/issues/507
og:image:altSummary The lab-ops-hub container crawler's validate_crawl_url (pkgs/lab-ops-hub/container/app.py) accepts two host forms the Worker's validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts:129) refuses out...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
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
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/507#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F507
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%2F507
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/507
Reloadhttps://github.com/developing-today/code/issues/507
Reloadhttps://github.com/developing-today/code/issues/507
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 requests159 (159)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/507
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/507
#508https://github.com/developing-today/code/pull/508
lab-ops-hub: container validator accepts space hosts and IPvFuture literals the Worker validator refuseshttps://github.com/developing-today/code/issues/507#top
#508https://github.com/developing-today/code/pull/508
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/507#issue-5968737035
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 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
#441https://github.com/developing-today/code/issues/441
#468https://github.com/developing-today/code/issues/468
#502https://github.com/developing-today/code/issues/502
#505https://github.com/developing-today/code/issues/505
#504https://github.com/developing-today/code/issues/504
#505https://github.com/developing-today/code/issues/505
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/507#event-33890271815
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#508https://github.com/developing-today/code/pull/508
on Oct 21, 2026https://github.com/developing-today/code/issues/507#event-33890679863
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/507
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/507
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.