Title: lab-ops-hub: both crawl validators accept impossible DNS names — labels over 63 chars and names over 253 chars · Issue #513 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: both crawl validators accept impossible DNS names — labels over 63 chars and names over 253 chars · Issue #513 · developing-today/code
X Title: lab-ops-hub: both crawl validators accept impossible DNS names — labels over 63 chars and names over 253 chars · Issue #513 · developing-today/code
Description: Problem Both lab-ops-hub crawl validators certify DNS names that can never exist: a label longer than 63 octets and a full name longer than 253 characters. RFC 1035 §2.3.4 limits a label to 63 octets and a name to 255 octets on the wire ...
Open Graph Description: Problem Both lab-ops-hub crawl validators certify DNS names that can never exist: a label longer than 63 octets and a full name longer than 253 characters. RFC 1035 §2.3.4 limits a label to 63 octe...
X Description: Problem Both lab-ops-hub crawl validators certify DNS names that can never exist: a label longer than 63 octets and a full name longer than 253 characters. RFC 1035 §2.3.4 limits a label to 63 octe...
Opengraph URL: https://github.com/developing-today/code/issues/513
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: both crawl validators accept impossible DNS names — labels over 63 chars and names over 253 chars","articleBody":"## Problem\n\nBoth lab-ops-hub crawl validators certify DNS names that can never exist: a label longer than 63 octets and a full name longer than 253 characters. RFC 1035 §2.3.4 limits a label to 63 octets and a name to 255 octets on the wire (253 characters in text form without the root dot). Neither validator checks either limit, so an impossible name passes validation as \"a public DNS name\" and fails later, deep inside the fetcher's resolver, with an opaque error — the same lazy-failure shape #502/#507 fixed for ports and spaces.\n\n## Evidence (verified on main 025794c8, direct probes of both validators)\n\n- TypeScript `validateCrawlUrl` (`pkgs/lab-ops-hub/src/lib.ts:129`, empty-label check at :153): **ALLOWS** `http://\u003c64×\"b\">.com/` and `http://\u003c63+63+63+63+3 name, 259 chars>/`.\n- Python `validate_crawl_url` (`pkgs/lab-ops-hub/container/app.py:30`, empty-label check at :58): **ALLOWS** both spellings identically.\n- Near misses that must stay allowed: a 63-char label and a 253-char name are valid and both validators accept them (the fix must not over-refuse).\n- WHATWG note: `u.hostname` in the TS validator is already the punycode (IDNA-encoded) form, so length checks there judge the wire form exactly. In Python `u.hostname` is the raw spelling; character length is a lower bound on the encoded length, so refusing char-length > limit can never refuse a valid (encodable-within-limits) name.\n\nThis is the label-structure sibling of #511 (empty labels), which added the per-label structure check in both validators; the length half of the same DNS validity rule was left out.\n\n## Acceptance criteria\n\n- Both validators refuse a host with any label > 63 (encoded) characters and a host whose full name is > 253 characters, with a clear up-front error, matching each other's verdicts.\n- Both validators still accept a 63-char label and a 253-char name.\n- Bracketed IPv6 literals are exempt from the label/length checks (judged as addresses, as with the #511 empty-label check).\n- Tests for the overlong cases and the at-limit near misses added to both suites (`test/lib.test.ts`, `test/test_container_validate.py`); `npm test` (TS + Python) passes.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T00:00:19Z","url":"https://github.com/developing-today/code/issues/513"}
| 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:77505ee6-cddf-5248-6294-699a29741a5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C734:8007E:A19D18:D5A881:6B0638F1 |
| html-safe-nonce | 7c03199c7e33fca4b29efb1fde442e19bfa772871551f9559a5769ab8a0cd0f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM0OjgwMDdFOkExOUQxODpENUE4ODE6NkIwNjM4RjEiLCJ2aXNpdG9yX2lkIjoiMjc2OTEzMjI2ODQxNjI4NDkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a3eb5a29181ae9efb7f0e9db8b3f071176d47a8abe31584ddae91195de139c54 |
| hovercard-subject-tag | issue:5970480408 |
| 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/513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d04808d26a9d5383dfc73803305f49e815ae0330222e769e1572f2fb35ceba42/developing-today/code/issues/513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d04808d26a9d5383dfc73803305f49e815ae0330222e769e1572f2fb35ceba42/developing-today/code/issues/513 |
| og:image:alt | Problem Both lab-ops-hub crawl validators certify DNS names that can never exist: a label longer than 63 octets and a full name longer than 253 characters. RFC 1035 §2.3.4 limits a label to 63 octe... |
| 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 | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| 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 | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| 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