Title: appPaths: WAC-hook exemption for application mount points (plugin seam from #206) · Issue #582 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: appPaths: WAC-hook exemption for application mount points (plugin seam from #206) · Issue #582 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: appPaths: WAC-hook exemption for application mount points (plugin seam from #206) · Issue #582 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Split out of #206 (see the plugin-zero results comment there): the first seam a third-party app plugin needs, discovered by mounting Tideholm inside JSS. Problem The global WAC preHandler authorizes every URL against pod ACLs and rejects...
Open Graph Description: Split out of #206 (see the plugin-zero results comment there): the first seam a third-party app plugin needs, discovered by mounting Tideholm inside JSS. Problem The global WAC preHandler authorize...
X Description: Split out of #206 (see the plugin-zero results comment there): the first seam a third-party app plugin needs, discovered by mounting Tideholm inside JSS. Problem The global WAC preHandler authorize...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/582
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"appPaths: WAC-hook exemption for application mount points (plugin seam from #206)","articleBody":"Split out of #206 (see the plugin-zero results comment there): the first seam a third-party app plugin needs, discovered by mounting [Tideholm](https://github.com/melvincarvalho/tideholm/tree/gh-pages/jss-plugin) inside JSS.\n\n## Problem\n\nThe global WAC `preHandler` authorizes every URL against pod ACLs and rejects with `handleUnauthorized` before routes run. The only escapes are the hook's hardcoded prefix list (`/storage/`, `/db`, `/mcp`, webrtc, terminal, tunnel, mashlib, …). A third-party plugin registering routes on the returned fastify instance cannot extend that list — its GETs are at the mercy of the root ACL and its POSTs die in WAC before the handler is reached.\n\nPut differently: every bundled pseudo-plugin needed this exemption and got it by editing server.js. External plugins can't.\n\n## Proposal\n\n`createServer({ appPaths: ['/tideholm'] })` — URL prefixes owned by registered applications; requests at or below an app path skip the WAC hook. The app owns authentication and authorization under its prefix, exactly the deal `/storage/` and `/db/` already have.\n\nWorking diff (the Tideholm demo runs on this):\n\n```diff\n@@ createServer options @@\n+ const appPaths = Array.isArray(options.appPaths)\n+ ? options.appPaths.filter((p) => typeof p === 'string' && p.startsWith('/') && p.length > 1)\n+ : [];\n@@ the WAC preHandler exempt condition @@\n+ appPaths.some(p => request.url === p || request.url.startsWith(p + '/') || request.url.startsWith(p + '?')) ||\n```\n\n## Relationship to the plugin loader (#206, #564)\n\n- Today: a standalone option serving bitmark-explorer-style manual compositions.\n- Loader lands: a plugin's manifest-declared prefix feeds `appPaths` automatically — `api.fastify` carries the exemption implicitly, and this option becomes the loader's implementation detail.\n\n## Acceptance\n\n- [ ] Option parsed + validated (leading `/`, length > 1); invalid entries dropped\n- [ ] Exempt requests carry no `request.webId` (apps resolve identity themselves — see the `api.auth.getAgent` issue)\n- [ ] Test: POST to an app path with no Authorization reaches the app handler (no WAC 401); sibling LDP paths still enforce WAC\n- [ ] Doc note in docs/configuration.md","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-10T11:39:27Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/582"}
| 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:b428db10-e787-a774-e376-d10e9eb6dae9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9AA:2C4C9:2A012FB:376CD5D:6B0387D2 |
| html-safe-nonce | 703257c526ae163b56613dd472bf89f3427e217cb59035d075728b795553043b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUFBOjJDNEM5OjJBMDEyRkI6Mzc2Q0Q1RDo2QjAzODdEMiIsInZpc2l0b3JfaWQiOiI3NTE3MjEzMzk1NzU4ODQzODU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 30a50ffbe40951dd0e17a8d6a04b802b64d5050fbee81418002e63abab105318 |
| hovercard-subject-tag | issue:4854658647 |
| 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/582/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33407d921a11d3401794491e543a9d0e986cb008cb88cde1f362b91743784e44/JavaScriptSolidServer/JavaScriptSolidServer/issues/582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33407d921a11d3401794491e543a9d0e986cb008cb88cde1f362b91743784e44/JavaScriptSolidServer/JavaScriptSolidServer/issues/582 |
| og:image:alt | Split out of #206 (see the plugin-zero results comment there): the first seam a third-party app plugin needs, discovered by mounting Tideholm inside JSS. Problem The global WAC preHandler authorize... |
| 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