Title: /private/privkey.jsonld uses external cid/v1 @context, inconsistent with profile.js (inline) and not conneg-expandable · Issue #570 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: /private/privkey.jsonld uses external cid/v1 @context, inconsistent with profile.js (inline) and not conneg-expandable · Issue #570 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: /private/privkey.jsonld uses external cid/v1 @context, inconsistent with profile.js (inline) and not conneg-expandable · Issue #570 · JavaScriptSolidServer/JavaScriptSolidServer
Description: buildOwnerKeyDocument (src/keys/provision.js:135-147) writes /private/privkey.jsonld with an external context: '@context': 'https://www.w3.org/ns/cid/v1', type: 'Multikey', controller, publicKeyMultibase, secretKeyMultibase But the WebID...
Open Graph Description: buildOwnerKeyDocument (src/keys/provision.js:135-147) writes /private/privkey.jsonld with an external context: '@context': 'https://www.w3.org/ns/cid/v1', type: 'Multikey', controller, publicKeyMul...
X Description: buildOwnerKeyDocument (src/keys/provision.js:135-147) writes /private/privkey.jsonld with an external context: '@context': 'https://www.w3.org/ns/cid/v1', type: 'Multikey', ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/570
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"/private/privkey.jsonld uses external cid/v1 @context, inconsistent with profile.js (inline) and not conneg-expandable","articleBody":"`buildOwnerKeyDocument` (`src/keys/provision.js:135-147`) writes `/private/privkey.jsonld` with an **external** context:\n\n```js\n'@context': 'https://www.w3.org/ns/cid/v1',\ntype: 'Multikey',\ncontroller, publicKeyMultibase, secretKeyMultibase\n```\n\nBut the WebID profile builder (`src/webid/profile.js:56-107`) declares the CID vocabulary **inline**, with a comment explaining exactly why:\n\n> \"CID v1 vocabulary is declared inline (rather than via an imported context URL) so JSS's JSON-LD → Turtle conneg layer can expand every term without fetching external contexts.\"\n\nSo the two CID-document builders make **opposite** context choices for the same vocabulary. `/private/privkey.jsonld` is a pod resource; when conneg'd to Turtle, the external `cid/v1` URL is not fetched, so `Multikey` / `controller` / `publicKeyMultibase` / `secretKeyMultibase` do not expand — the bare-relative-IRI failure mode `profile.js` describes at lines 95-104. It is therefore not a valid Controlled Identifier document when read as Turtle, which the LWS 1.0 authentication suite requires (the resource MUST be a valid CID-1.0 document).\n\nThe LWS WD example uses the external form `[\"https://www.w3.org/ns/cid/v1\"]`, but JSS's conneg layer deliberately does not fetch external contexts — which is precisely why `profile.js` inlines. `provision.js` should do the same.\n\n**Proposed fix:** make `buildOwnerKeyDocument` declare the CID terms inline, matching `profile.js`, with two additions the public profile does not need: `secretKeyMultibase`, and a `type` → `@type` alias (since the doc uses `type: \"Multikey\"`).\n\n**Note for the fix:** confirm the canonical IRIs the terms should expand to (`profile.js` currently maps e.g. `Multikey` → `https://www.w3.org/ns/cid/v1#Multikey`; verify that matches what `https://www.w3.org/ns/cid/v1` itself expands `Multikey` to, since CID/Data-Integrity historically use the `https://w3id.org/security#` namespace). If they differ, that is a separate `profile.js` correctness question worth resolving in the same pass.\n\nFound while aligning the stack to the did:nostr `Multikey`/`cid` shape (cf. #568, nostrcg/did-nostr#90).","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-06-15T15:57:00Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/570"}
| 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:9869c575-20a1-dc8b-1364-e35c111371ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9838:202AF:A42EFD:DAE58D:6B03A67A |
| html-safe-nonce | 34fdb8eb055ab9c078c6e4e05c0239a32e40ac9739071280f38453a91ef665e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODM4OjIwMkFGOkE0MkVGRDpEQUU1OEQ6NkIwM0E2N0EiLCJ2aXNpdG9yX2lkIjoiNjI3ODYxODkzMjk1ODE3Njg5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6ad8ea20f10fe2f0cbd93cd8ee5fb71d8669131952a72837d31b2d9ab19efc27 |
| hovercard-subject-tag | issue:4666716229 |
| 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/570/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5ff201c272b76dec141cef5b12325489016555f03619c22d635c2397cf61c65f/JavaScriptSolidServer/JavaScriptSolidServer/issues/570 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5ff201c272b76dec141cef5b12325489016555f03619c22d635c2397cf61c65f/JavaScriptSolidServer/JavaScriptSolidServer/issues/570 |
| og:image:alt | buildOwnerKeyDocument (src/keys/provision.js:135-147) writes /private/privkey.jsonld with an external context: '@context': 'https://www.w3.org/ns/cid/v1', type: 'Multikey', controller, publicKeyMul... |
| 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