René's URL Explorer Experiment


Title: bug: Subdomain app and port URLs past the 63-character DNS label limit fail · Issue #32448 · coder/coder · GitHub

Open Graph Title: bug: Subdomain app and port URLs past the 63-character DNS label limit fail · Issue #32448 · coder/coder

X Title: bug: Subdomain app and port URLs past the 63-character DNS label limit fail · Issue #32448 · coder/coder

Description: Problem Subdomain apps and forwarded ports use one DNS label for all their parts: {port}[s]--{agent}--{workspace}--{owner}.apps.example.com {app_slug}--{workspace}--{owner}.apps.example.com RFC 1035 limits a DNS label to 63 characters. U...

Open Graph Description: Problem Subdomain apps and forwarded ports use one DNS label for all their parts: {port}[s]--{agent}--{workspace}--{owner}.apps.example.com {app_slug}--{workspace}--{owner}.apps.example.com RFC 103...

X Description: Problem Subdomain apps and forwarded ports use one DNS label for all their parts: {port}[s]--{agent}--{workspace}--{owner}.apps.example.com {app_slug}--{workspace}--{owner}.apps.example.com RFC 103...

Opengraph URL: https://github.com/coder/coder/issues/32448

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Subdomain app and port URLs past the 63-character DNS label limit fail","articleBody":"# Problem\n\nSubdomain apps and forwarded ports use one DNS label for all their parts:\n\n```\n{port}[s]--{agent}--{workspace}--{owner}.apps.example.com\n{app_slug}--{workspace}--{owner}.apps.example.com\n```\n\nRFC 1035 limits a DNS label to 63 characters. Usernames and workspace names can each have 32 characters. A long port URL therefore passes the limit when the agent, workspace, and owner names together have more than 51 characters (with port 65535s). A suffix wildcard such as *--apps.example.com makes the limit lower.\n\nWhen the label is too long:\n\n- Browsers and resolvers reject the hostname, so the app or port does not open.\n- Wildcard TLS certificates do not match.\n- Shared port links from https://github.com/coder/coder/pull/11486 do not work for these users.\n\nAdministrators cannot fix this, because users choose the names. Shorter name limits would break existing users.\n\n# Proposal\n\nKeep the current URL when it fits. Use a short form, which identifies the workspace by ID, when it does not fit:\n\n| Kind | Short form | Length |\n|--------|--------|--------|\n| Port | {port}[s]--{workspace_id}--{agent_hash} | 42 characters or fewer |\n| App | {app_slug}--{workspace_id} | slug + 27 characters |\n\n- workspace_id is the workspace UUID in base36, 25 characters. The workspace ID does not change when the workspace restarts. (Agent IDs change on each build, so they are not used.)\n- agent_hash is the 32-bit FNV-1a hash of the agent name in base36, 7 characters. Only ports need it, because app slugs are unique in a workspace.\n- The parser tells the forms apart by the number of parts. A long port URL has 4 parts and a long app URL has 3 or 4 parts. Neither can have the short form shape (port with 3 parts, or app with 2 parts).\n- For ports, Coder decides the form with the longest port (65535s). All ports of an agent then use the same form, so the {{port}} template in VSCODE_PROXY_URI stays correct.\n\n# Resolution\n\n1. Get the workspace by ID. Get the owner from the workspace.\n2. For ports, hash each agent name in the latest build and find the match. Reject the request if 0 or 2 or more agents match.\n3. Apply the same RBAC and port share checks as the long form.\n\n# Security notes\n\n- SignedToken.MatchesRequest must compare the agent hash. If not, a token for port 8080 on agent A also matches port 8080 on agent B.\n- WorkspaceAppCors compares owner usernames today. A short form URL has no username, so it must only allow origins in the same workspace. If not, two short form apps of different users match, because both usernames are empty.\n\n# Compatibility\n\n- URLs that fit today do not change, so bookmarks, OAuth redirect URIs, and CORS allow lists still work.\n- An older external workspace proxy cannot parse short form URLs. Upgrade proxies together with coderd.\n- The decision uses the primary wildcard hostname. A workspace proxy with a longer fixed wildcard part can still get a long form URL that does not fit there.\n- Coder logs a startup warning when the fixed part of the first wildcard label is longer than 21 characters, because then even the short form can pass the limit.\n\n# Alternatives\n\n| Option | Why not |\n|--------|--------|\n| Multi-level subdomains (8080.agent.ws.user.apps.example.com) | A wildcard TLS certificate covers one level only. |\n| Path-based port URLs |  No origin isolation between apps. This is why path-based ports are blocked today. |\n| Shorter name limits |  Breaking change. Even 16-character names do not leave room. |\n| Random slug stored in a new table |  Needs a migration, a lookup on each request, and cleanup. The workspace ID gives the same result without new state. |\n| Cell | Agent IDs change on each workspace build, so links break after a restart. | \n|  Short form always |  Changes every existing URL and breaks OAuth callbacks and CORS settings in outside systems. |\n\n# Reference implementation\n\nA draft implementation with tests is here: https://github.com/coder/coder/pull/32447\n\nIt changes `coderd/workspaceapps/appurl`, the request resolver, token matching, CORS, db2sdk, the agent manifest, toolsdk, and the frontend portForwardURL helper. Go and TypeScript tests use the same test values so that the two copies of the algorithm stay the same.","author":{"url":"https://github.com/eimhin-rover","@type":"Person","name":"eimhin-rover"},"datePublished":"2026-11-19T14:35:10Z","url":"https://github.com/coder/coder/issues/32448"}

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:a48aeb73-39bf-e478-7457-4a6c696d14dd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7A0:1D9B81:AABDB:EC13B:6B042DC2
html-safe-nonce4d5815fb86db819e0c1e6225fb9af30d4398e608c8307458b6b17f3d36654224
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0EwOjFEOUI4MTpBQUJEQjpFQzEzQjo2QjA0MkRDMiIsInZpc2l0b3JfaWQiOiIzMTc5ODA3OTAxNTY5MjY1MDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd2a3be70f6aa85835ab5f46ffb6aa660f165400ba179bc6121af3bc85e4511b4
hovercard-subject-tagissue:6491952120
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/coder/coder/32448/issue_layout
twitter:imagehttps://opengraph.githubassets.com/82841d4b01f9153c80f9a08b32693d00e83360947f56d766aa67e565ed62dc99/coder/coder/issues/32448
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/82841d4b01f9153c80f9a08b32693d00e83360947f56d766aa67e565ed62dc99/coder/coder/issues/32448
og:image:altProblem Subdomain apps and forwarded ports use one DNS label for all their parts: {port}[s]--{agent}--{workspace}--{owner}.apps.example.com {app_slug}--{workspace}--{owner}.apps.example.com RFC 103...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeimhin-rover
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/32448#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F32448
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%2Fcoder%2Fcoder%2Fissues%2F32448
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=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/32448
Reloadhttps://github.com/coder/coder/issues/32448
Reloadhttps://github.com/coder/coder/issues/32448
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues322 (322)https://github.com/coder/coder/issues
Pull requests472 (472)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/32448
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/32448
bug: Subdomain app and port URLs past the 63-character DNS label limit failhttps://github.com/coder/coder/issues/32448#top
https://github.com/eimhin-rover
eimhin-roverhttps://github.com/eimhin-rover
on Nov 19, 2026https://github.com/coder/coder/issues/32448#issue-6491952120
Feature: Sharable ports #11486https://github.com/coder/coder/issues/11486
#32447https://github.com/coder/coder/pull/32447
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 19, 2026https://github.com/coder/coder/issues/32448#issuecomment-7012210196
Linear Codehttps://linear.app
ENG-3549https://linear.app/codercom/issue/ENG-3549
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/32448
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/32448
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.