René's URL Explorer Experiment


Title: mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps · Issue #2082 · developing-today/code · GitHub

Open Graph Title: mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps · Issue #2082 · developing-today/code

X Title: mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps · Issue #2082 · developing-today/code

Description: Problem The mcpx daemon enforces its configured HTTP request-body ceilings (http.bodyLimit / http.callBodyLimit / http.controlBodyLimit, defaults in pkgs/mcpx/internal/defaults/defaults.go:162,186-195) on only some routes. A second set o...

Open Graph Description: Problem The mcpx daemon enforces its configured HTTP request-body ceilings (http.bodyLimit / http.callBodyLimit / http.controlBodyLimit, defaults in pkgs/mcpx/internal/defaults/defaults.go:162,186-...

X Description: Problem The mcpx daemon enforces its configured HTTP request-body ceilings (http.bodyLimit / http.callBodyLimit / http.controlBodyLimit, defaults in pkgs/mcpx/internal/defaults/defaults.go:162,186-...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps","articleBody":"## Problem\n\nThe mcpx daemon enforces its configured HTTP request-body ceilings (`http.bodyLimit` / `http.callBodyLimit` / `http.controlBodyLimit`, defaults in `pkgs/mcpx/internal/defaults/defaults.go:162,186-195`) on only some routes. A second set of handlers decodes or reads `r.Body` with no ceiling at all, and there is no global cap: the two `http.Server`s (`pkgs/mcpx/internal/daemon/server.go:307,360`) set only `ReadHeaderTimeout`, with no `MaxBytesHandler`. The defaults module's own comment states the intent — the ceiling was unified precisely because it used to differ per route — but the unification never reached these handlers.\n\nVerified on main `264ba11549ddff607a38c72ff043e0cd0e7ef247`:\n\n**Unbounded body reads (no `MaxBytesReader`, no limit):**\n- `routes_proxy.go:44` — `handleChatCompletions`: `io.ReadAll(r.Body)` buffers the whole chat-completions request in memory\n- `upgrade.go:106` — `handleUpgrade`: `io.ReadAll(r.Body)`\n- `routes_consumer.go:45` — `handleDiagnose`: `json.NewDecoder(r.Body).Decode`\n- `routes_consumer.go:203` — `handleRecipeSave`: same\n- `routes_consumer.go:278` — `handleRecipeRun`: same\n- `routes_consumer.go:369` — `handleIntent`: same\n- `routes_embeddings.go:40` — `handleEmbeddings`: same\n- `routes_exec.go:218` — `handleExec`: same\n- `routes_feedback.go:32` — `handleFeedbackSubmit`: same\n- `server.go:616` — `POST /v1/prompt` handler: same\n\n**Bounded siblings (the house pattern these miss):**\n- `server.go:870` (`http.callBodyLimit`), `server.go:963`, `server.go:1083` (`http.bodyLimit`), `server.go:1100` (`http.controlBodyLimit`)\n- `routes_secrets.go:49,114` (`http.bodyLimit`), `routes_settings.go:200` (`http.controlBodyLimit`), `routes_settings.go:588`, `ops.go:336`\n- `routes_proto.go:400` (`defaults.HTTPCallBodyLimit`), `routes_proto.go:627`, `routes_proto.go:879`\n\n## Why it matters\n\nThe daemon listens on loopback TCP + a unix socket. Any local process — or any local client with a bug, e.g. a runaway script POSTing an ever-growing prompt/exec/chat body — can make the daemon buffer an unbounded request body and OOM the process that every other tool call depends on. `handleChatCompletions` is the worst case: it `io.ReadAll`s the entire body before parsing. The configured ceilings exist and are already honoured on the call/proto/secrets routes; the gap is pure inconsistency, and it is exactly the class #1893 asks to be guarded (a declared surface — \"every body is capped\" — with no guard walking it). Related but distinct: #1697 (settings byte-size values themselves accept negatives/overflow).\n\n## Acceptance criteria\n\n- [ ] Every daemon HTTP handler that reads a request body enforces a configured ceiling (`http.MaxBytesReader` or equivalent) with the limit for its route class (call / control / body), closing the enumerated list above; triage pins which class each route takes where ambiguous (chat completions and exec are call-shaped; upgrade/diagnose/recipes/intent/embeddings/feedback/prompt need an explicit ruling).\n- [ ] An over-limit body gets a clean client error (400/413) and the daemon's memory stays bounded — no partial decode, no panic.\n- [ ] Tests: an over-limit request to representative previously-unbounded routes (at least chat completions, exec, intent, upgrade) is refused; under-limit requests to those routes behave exactly as before.\n- [ ] A guard (test or lint-style check, in the spirit of #1893 / #1971) fails when a daemon handler reads `r.Body` without a ceiling, so the next route cannot reintroduce the gap.\n- [ ] Existing daemon test suites pass unchanged.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T01:45:50Z","url":"https://github.com/developing-today/code/issues/2082"}

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:166d84df-5b1c-b941-d3c9-dbcc6f535686
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD4A0:D7B8A:8E6E5B:B820A0:6B062F7F
html-safe-nonce0b248d8f6a9ec9f23e020decb14e903a2a59bd7aaeae48989eec865f7281c273
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEEwOkQ3QjhBOjhFNkU1QjpCODIwQTA6NkIwNjJGN0YiLCJ2aXNpdG9yX2lkIjoiNDMyNDM0NjM0Mjk3OTAyMjcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac42a15806004ec9aa87fc03433faf5eac09389b50d97eb7ad18655d7db30919d9
hovercard-subject-tagissue:6090978500
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/2082/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dce77b730442015fd8d3cdb28a80240ad6abd343eb119e39517f1a7f8fedde5a/developing-today/code/issues/2082
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dce77b730442015fd8d3cdb28a80240ad6abd343eb119e39517f1a7f8fedde5a/developing-today/code/issues/2082
og:image:altProblem The mcpx daemon enforces its configured HTTP request-body ceilings (http.bodyLimit / http.callBodyLimit / http.controlBodyLimit, defaults in pkgs/mcpx/internal/defaults/defaults.go:162,186-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
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
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2082#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2082
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%2F2082
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/2082
Reloadhttps://github.com/developing-today/code/issues/2082
Reloadhttps://github.com/developing-today/code/issues/2082
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 requests151 (151)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/2082
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2082
mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit capshttps://github.com/developing-today/code/issues/2082#top
https://github.com/dezren39
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#issue-6090978500
#1893https://github.com/developing-today/code/issues/1893
#1697https://github.com/developing-today/code/issues/1697
mcpx: a promise and a behaviour that disagree — every declared surface needs a guard that walks it (tracker) #1893https://github.com/developing-today/code/issues/1893
mcpx testing: guard tests that close a whole bug class #1971https://github.com/developing-today/code/issues/1971
Nexthttps://github.com/developing-today/code/issues/2082?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#event-34538859993
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#issuecomment-6485593325
developing.todayhttps://kaneo.security.cab
CODE-997https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/q4pk6jpvj61r4f6j7jj3ssxh
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#event-34538861150
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#issuecomment-6485600659
mcpx(settings): byte sizes accept negatives and int64 overflow — http.streamBufferInit=-1 passes validation, then panics the CLI with 'makeslice: cap out of range' at the first streaming read #1697https://github.com/developing-today/code/issues/1697
mcpx: a promise and a behaviour that disagree — every declared surface needs a guard that walks it (tracker) #1893https://github.com/developing-today/code/issues/1893
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2082#event-34545111460
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#event-34816485715
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#event-34816577943
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#issuecomment-6554151911
mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps #2082https://github.com/developing-today/code/issues/2082
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#event-34817335307
Merge pull request #3370 from developing-today/queue/5079-2082-body-l…https://github.com/developing-today/code/commit/ee8bc80c18fe30c7e1f70989d9e8342f1c110a59
#3370https://github.com/developing-today/code/pull/3370
ee8bc80https://github.com/developing-today/code/commit/ee8bc80c18fe30c7e1f70989d9e8342f1c110a59
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#issuecomment-6554360531
mcpx(daemon): a second set of routes reads request bodies with no size ceiling — chat completions, exec, intent, upgrade and five more bypass the configured http.*BodyLimit caps #2082https://github.com/developing-today/code/issues/2082
fix(mcpx/daemon): MaxBytesReader ceilings for the unbounded body readers (#2082) #3370https://github.com/developing-today/code/pull/3370
fix(mcpx/daemon): MaxBytesReader ceilings for the unbounded body readers (#2082) #3370https://github.com/developing-today/code/pull/3370
fix(mcpx/daemon): MaxBytesReader ceilings for the unbounded body readers (#2082) #3370https://github.com/developing-today/code/pull/3370
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#event-34817363349
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2082#event-34817370713
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2082
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2082
dezren39https://github.com/dezren39
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
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.