Title: Plugin API seam: api.reservePath — an API-shim owns fixed routes outside its prefix and can't self-exempt them from WAC · Issue #602 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Plugin API seam: api.reservePath — an API-shim owns fixed routes outside its prefix and can't self-exempt them from WAC · Issue #602 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Plugin API seam: api.reservePath — an API-shim owns fixed routes outside its prefix and can't self-exempt them from WAC · Issue #602 · JavaScriptSolidServer/JavaScriptSolidServer
Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). The most-hit finding: 7+ consumers. The gap A plugin can register routes outside its one prefix, but the loader WAC-exempts only that single p...
Open Graph Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). The most-hit finding: 7+ consumers. The gap A plugin can register routes outside its one prefix, but t...
X Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). The most-hit finding: 7+ consumers. The gap A plugin can register routes outside its one prefix, but t...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/602
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugin API seam: api.reservePath — an API-shim owns fixed routes outside its prefix and can't self-exempt them from WAC","articleBody":"One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader ([report](https://github.com/JavaScriptSolidServer/plugins/blob/gh-pages/REPORT.md)). The **most-hit** finding: 7+ consumers.\n\n## The gap\n\nA plugin can *register* routes outside its one `prefix`, but the loader WAC-exempts only that single `prefix`. So:\n\n- **`/.well-known/*` works by luck** — core happens to blanket-exempt it (nip05 `nostr.json`, webfinger, the DAV discovery docs). The two most-wanted `.well-known` docs a deployment serves ride an undocumented coincidence.\n- **Fixed protocol roots do NOT work** — `/api`,`/oauth` (mastodon), `/xrpc` (bluesky), `/ap` (activitypub), `/_matrix` (matrix) all 401 at the WAC hook until the operator hand-passes `appPaths`. The plugin cannot self-exempt the paths the protocol *fixes*.\n- **Parameterized paths can't be expressed at all** — `didweb/` must serve `/\u003cuser>/did.json` *inside* the pod's own WAC-governed namespace; `appPaths` matches literal prefixes, and the DID method pins the URL (no fake root to escape to).\n\n## Witnessed collision (both directions)\n\n`webfinger/` and `remotestorage/` both legitimately own parts of `/.well-known/webfinger`. Load one order → boot fails with a duplicate-route error (and the loader drops `err.code` — filed as #599). Load the other → the try/catch-guarded claimant **silently loses** its links. Loud failure or silent loss, both wrong: for a *shared* discovery document the reservation primitive isn't enough — a **link/JRD registry** (`api.webfinger.addLink`) is the real fix for that case.\n\nCounter-witnesses that scope it: `micropub/` and `jmap/` needed *no* reservation because their endpoints are client-/session-discovered, not protocol-fixed. The seam is for **protocols that pin absolute paths**, not API shims per se.\n\n## Sketch\n\n`api.reservePath('/xrpc')` / `api.reservePath('/:user/did.json')` (or `paths: [...]` on the loader entry): the loader WAC-exempts *and* claims each deliberately, and reports collisions at boot. Plus `api.webfinger.addLink(...)` (or a generic link registry) for the shared-document case.\n\n## Cost\n\nSmall-medium — generalizes the existing `appPaths` mechanism from operator config to plugin declaration.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T08:59:39Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/602"}
| 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:621363dd-5f57-e6b9-8005-5615a6cd4ab4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE16:4874B:29DF0D9:3759298:6B038A2B |
| html-safe-nonce | c9f5ed805ba27e8b01e0c40b637148085d2603210f075a117fca370109e749bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTE2OjQ4NzRCOjI5REYwRDk6Mzc1OTI5ODo2QjAzOEEyQiIsInZpc2l0b3JfaWQiOiIxNzgxOTc1MzY1OTAwNzk4NTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 22d103de664668b06b1cf011c8a0f7baa841b94ec59f8e411eaabba1dab224ba |
| hovercard-subject-tag | issue:4861501000 |
| 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/602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54bb125041f9104e5b2bb22288e234a2ea6bb8cae50664a95402b78408e05830/JavaScriptSolidServer/JavaScriptSolidServer/issues/602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54bb125041f9104e5b2bb22288e234a2ea6bb8cae50664a95402b78408e05830/JavaScriptSolidServer/JavaScriptSolidServer/issues/602 |
| og:image:alt | One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). The most-hit finding: 7+ consumers. The gap A plugin can register routes outside its one prefix, but t... |
| 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