Title: WAC-exempt app subtrees (appPaths / reservePath) still reach the LDP write wildcards for unhandled paths · Issue #611 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: WAC-exempt app subtrees (appPaths / reservePath) still reach the LDP write wildcards for unhandled paths · Issue #611 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: WAC-exempt app subtrees (appPaths / reservePath) still reach the LDP write wildcards for unhandled paths · Issue #611 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Surfaced reviewing #607. Both the plugin entry-prefix exemption (#582) and literal reservePath claims mark a URL subtree WAC-exempt, but the LDP write wildcards (PUT/POST/PATCH/DELETE '/*') sit beneath them. So a request under an exempt ...
Open Graph Description: Surfaced reviewing #607. Both the plugin entry-prefix exemption (#582) and literal reservePath claims mark a URL subtree WAC-exempt, but the LDP write wildcards (PUT/POST/PATCH/DELETE '/*') sit ben...
X Description: Surfaced reviewing #607. Both the plugin entry-prefix exemption (#582) and literal reservePath claims mark a URL subtree WAC-exempt, but the LDP write wildcards (PUT/POST/PATCH/DELETE '/*')...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/611
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WAC-exempt app subtrees (appPaths / reservePath) still reach the LDP write wildcards for unhandled paths","articleBody":"Surfaced reviewing #607. Both the plugin **entry-prefix** exemption (#582) and literal **reservePath** claims mark a URL subtree WAC-exempt, but the LDP write wildcards (`PUT/POST/PATCH/DELETE '/*'`) sit beneath them. So a request under an exempt subtree that the plugin did **not** register a handler for falls through to the LDP layer *with WAC already skipped*.\n\nCore already recognizes this exact class for `/.well-known/*` and installs explicit 405 blocks (`src/server.js` ~850–895): *\"without these blocks the wildcard write handlers would still accept unauthenticated writes under this namespace.\"* The app-subtree mechanisms don't have the equivalent guard.\n\n## Status after #607\n\n#607 method-gates reservePath (read-only by default), which closes the **unlisted-method** vector: a `PUT` under a read-only `/xrpc` is now WAC-guarded. Verified.\n\n**Residual, not yet closed:**\n- A **widened** method at an unhandled path (`PUT /api/unhandled` when a shim reserved `/api` with `methods:['PUT']` but only handles `/api/echo`) still routes into the WAC-skipped LDP layer. In a bare pod it 500s (no container) rather than writing, but that's environment-dependent, not a guarantee.\n- The **entry-prefix** case (#582) has no method gate at all: a plugin mounted at `/myapp` that doesn't handle `PUT /myapp/x` falls straight through.\n\n## Suggested fix\n\nRegister a scoped fallback under each exempt subtree — `ALL \u003cprefix>` + `ALL \u003cprefix>/*` → 404/405 — so unhandled requests resolve inside the app's namespace instead of reaching `/*`. Plugin-registered specific routes stay more specific and win; needs care around plugins that register their own wildcard under the prefix (potential `FST_ERR_DUPLICATED_ROUTE`). Belongs in its own PR because it changes the #582 mechanism, not just reservePath.\n\nRefs #607, #582.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T11:21:28Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/611"}
| 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:309b6d6d-3d26-b469-1fc9-5ce53c0ceecb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BD2:1AF0E4:622455:7BE82A:6B0390F4 |
| html-safe-nonce | de81ea8ab5d18ea4d8664eb752a789de95bdc4e1bc3389c928e02fe11d159fd3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkQyOjFBRjBFNDo2MjI0NTU6N0JFODJBOjZCMDM5MEY0IiwidmlzaXRvcl9pZCI6IjczODM4NzY0OTY4MzE3NzkwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0054dc917b06b1b991590baeff37b0e7b59e45ac7daa35e072d28d162d78a7c |
| hovercard-subject-tag | issue:4861987621 |
| 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/JavaScriptSolidServer/JavaScriptSolidServer/611/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8dfaa87e879692490a99896c3132c268f203a0e95b081014f4f8bac1fec744c9/JavaScriptSolidServer/JavaScriptSolidServer/issues/611 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8dfaa87e879692490a99896c3132c268f203a0e95b081014f4f8bac1fec744c9/JavaScriptSolidServer/JavaScriptSolidServer/issues/611 |
| og:image:alt | Surfaced reviewing #607. Both the plugin entry-prefix exemption (#582) and literal reservePath claims mark a URL subtree WAC-exempt, but the LDP write wildcards (PUT/POST/PATCH/DELETE '/*') sit ben... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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