Title: Phase 2: emit relative acl:agent in ACL generators (#427) · Issue #430 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Phase 2: emit relative acl:agent in ACL generators (#427) · Issue #430 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Phase 2: emit relative acl:agent in ACL generators (#427) · Issue #430 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Phase 2 of the umbrella plan in #427. Scope Make the ACL generators emit relative acl:agent URIs when the owner WebID is hosted under the same pod. Update callers in src/handlers/container.js and src/server.js (createRootPodStructure) ac...
Open Graph Description: Phase 2 of the umbrella plan in #427. Scope Make the ACL generators emit relative acl:agent URIs when the owner WebID is hosted under the same pod. Update callers in src/handlers/container.js and s...
X Description: Phase 2 of the umbrella plan in #427. Scope Make the ACL generators emit relative acl:agent URIs when the owner WebID is hosted under the same pod. Update callers in src/handlers/container.js and s...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/430
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Phase 2: emit relative acl:agent in ACL generators (#427)","articleBody":"Phase 2 of the umbrella plan in #427.\n\n## Scope\n\nMake the ACL generators emit relative `acl:agent` URIs when the owner WebID is hosted under the same pod. Update callers in `src/handlers/container.js` and `src/server.js` (`createRootPodStructure`) accordingly. The parser already resolves relative agent URIs against the ACL document URL — proven by PR #65 (`bdbbbb7`) which closed #64.\n\nGenerators in scope:\n- `generateOwnerAcl`\n- `generatePrivateAcl`\n- `generateInboxAcl`\n- `generatePublicFolderAcl`\n\n(`generatePublicReadAcl` has no agent — unaffected.)\n\n## Concrete change\n\nEach generator currently takes `ownerWebId` (absolute) and emits:\n```js\n'acl:agent': { '@id': ownerWebId },\n```\n…and the caller passes `${podUri}profile/card.jsonld#me`. After Phase 2:\n- Caller passes the relative form: `'./profile/card.jsonld#me'` (root pod) or `'./\u003cname>/profile/card.jsonld#me'` resolved against the .acl URL.\n- Generator emits it verbatim.\n\nImportant asymmetry: the WebID *as published in the user's profile* (`/profile/card.jsonld#me` document body) stays **absolute** — that's the global identifier other servers dereference. Only the in-ACL reference becomes relative.\n\n## Why\n\nAfter Phase 1, public read works across hosts. Owner read/write only works on the canonical host because `acl:agent` is still baked-in absolute. Making it relative:\n1. Lets owner read/write work cross-host on the same machine (when the user authenticates against whichever host they're hitting).\n2. Makes the on-disk pod truly portable — operators can move a pod to a new domain without rewriting ACLs.\n\nDoesn't fix the cross-host *auth* case (token issued by host A, request to host B) — that's Phase 4.\n\n## Tests\n\n- **Unit**: each affected generator emits the relative agent form when given a relative input.\n- **Round-trip**: parser resolves `./profile/card.jsonld#me` against `http://anyhost/.acl` to `http://anyhost/profile/card.jsonld#me`.\n- **Integration**: owner-authenticated request lands a write across the same set of `Host:` rewrites used in #428's cross-host portability test.\n- **Regression**: existing pods on disk with absolute agent URIs continue to authorize.\n\n## Acceptance\n\n- [ ] All four generators emit relative `acl:agent` when callers pass it.\n- [ ] Callers updated in `container.js` and `server.js`.\n- [ ] Round-trip + cross-host owner-write integration tests pass.\n- [ ] Profile document body unchanged — WebID still published as the absolute global identifier.\n- [ ] No regression on absolute-agent ACLs already on disk.\n\n## Out of scope\n\n- Cross-host auth normalization (token webid host vs request host) — Phase 4.\n- Default landing page seeding — Phase 3.\n\nRefs #427.\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-14T04:04:28Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/430"}
| 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:7c4b2303-ff8a-9110-be6f-e3714ab9e9d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A04E:17238D:2F9E5F:3C2F73:6B0393A9 |
| html-safe-nonce | 26de86abddee8ed125d8b4bb2df5f90d17d84ef5b267ceac06007ab059f9b7b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDRFOjE3MjM4RDoyRjlFNUY6M0MyRjczOjZCMDM5M0E5IiwidmlzaXRvcl9pZCI6IjI2NDg2MTczODg3NjA4NjM2NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | acb2fabfbd8f4d326fe42a3bff9799fe413e564949a0e0bdd12659e3bc09fbb1 |
| hovercard-subject-tag | issue:4443057344 |
| 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/430/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c23bce375af796f2e120380a38d2f467092a909c250ced64b3008144e1ba6b9/JavaScriptSolidServer/JavaScriptSolidServer/issues/430 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c23bce375af796f2e120380a38d2f467092a909c250ced64b3008144e1ba6b9/JavaScriptSolidServer/JavaScriptSolidServer/issues/430 |
| og:image:alt | Phase 2 of the umbrella plan in #427. Scope Make the ACL generators emit relative acl:agent URIs when the owner WebID is hosted under the same pod. Update callers in src/handlers/container.js and s... |
| 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