You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
appPaths: WAC-hook exemption for application mount points (plugin seam from #206) #582
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 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.
Put differently: every bundled pseudo-plugin needed this exemption and got it by editing server.js. External plugins can't.
Proposal
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.
Today: a standalone option serving bitmark-explorer-style manual compositions.
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.
Activity
bump version to 0.0.213
feat(auth): public getAgent accessor — request → WebID (#584) (#586)
bump version to 0.0.214
feat(plugins): createServer({ plugins }) — the #206 loader (#589)
bump version to 0.0.215
fix(cli): forward plugins and appPaths from config to createServer (#592
feat(server): appPaths — WAC-exempt application mount points (JavaScr…