René's URL Explorer Experiment


Title: feat: --provision-keys Phase 2 — wire the owner key into the WebID profile, close the LWS-CID loop (#437) · Issue #443 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat: --provision-keys Phase 2 — wire the owner key into the WebID profile, close the LWS-CID loop (#437) · Issue #443 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat: --provision-keys Phase 2 — wire the owner key into the WebID profile, close the LWS-CID loop (#437) · Issue #443 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Phase 2 of #437. Close the loop between the Phase 1 owner key and the auth path that's already shipped. What's already in jss Capability Where Phase 1 keypair on disk (/private/privkey.jsonld, CID v1.0 Multikey, 0o600 + WAC) src/keys/pro...

Open Graph Description: Phase 2 of #437. Close the loop between the Phase 1 owner key and the auth path that's already shipped. What's already in jss Capability Where Phase 1 keypair on disk (/private/privkey.jsonld, CID ...

X Description: Phase 2 of #437. Close the loop between the Phase 1 owner key and the auth path that's already shipped. What's already in jss Capability Where Phase 1 keypair on disk (/private/privkey.json...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: --provision-keys Phase 2 — wire the owner key into the WebID profile, close the LWS-CID loop (#437)","articleBody":"Phase 2 of [#437](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/437). Close the loop between the Phase 1 owner key and the auth path that's already shipped.\n\n## What's already in jss\n\n| Capability | Where |\n|---|---|\n| Phase 1 keypair on disk (`/private/privkey.jsonld`, CID v1.0 Multikey, 0o600 + WAC) | `src/keys/provision.js`, wired in `src/handlers/container.js` + `src/server.js` |\n| LWS-CID authentication verifier (W3C LWS 1.0 / FPWD 2026-04-23): reads `kid` from a JWT header, fetches WebID profile, locates VM, verifies JWT against `publicKeyJwk` / `publicKeyMultibase` | `src/auth/lws-cid.js` |\n| WebID profile generator with CID v1.0 `verificationMethod` / `publicKeyMultibase` / `publicKeyJwk` JSON-LD context | `src/webid/profile.js` |\n| `did:nostr:` → WebID resolver (with redirect guards, cache) | `src/auth/did-nostr.js` |\n| Local `did:nostr` resolution via JSS-published well-known DID-doc | `src/idp/well-known-did-nostr.js` |\n| Pubkey extractor from a profile's VM entries (handles both f-form Multikey and JWK with BIP-340 even-y check) | `src/auth/nostr-keys.js` |\n\n## The gap\n\nThe seeded WebID profile (`/profile/card.jsonld`) has a `verificationMethod` slot but the Phase 1 public key **never lands in it**. So the entire authentication loop is broken at exactly one wire:\n\n- An agent has the secret at `/private/privkey.jsonld`.\n- They sign a JWT (LWS-CID style: `kid` = a fragment of their WebID profile pointing at a VM).\n- The LWS-CID verifier fetches their WebID profile, looks for the VM by `kid`, finds **nothing**, returns 401.\n- The keypair we just minted can't actually authenticate the agent via the mechanism it was minted for.\n\nPhase 2 connects these two ends.\n\n## Scope\n\nWhen `--provision-keys` is on:\n\n1. After generating the keypair and writing `/private/privkey.jsonld`, **also inject a `verificationMethod` entry into the seeded WebID profile** pointing at the public side of the same key.\n2. The VM should look something like:\n   ```json\n   {\n     \"id\": \"\u003cpodUri>profile/card.jsonld#owner-key\",\n     \"type\": \"Multikey\",\n     \"controller\": \"\u003cwebId>\",\n     \"publicKeyMultibase\": \"fe70102…\"\n   }\n   ```\n   Same `publicKeyMultibase` value as in `/private/privkey.jsonld`. Optionally also a JWK form for tools that prefer it (the LWS-CID verifier already handles either).\n3. Flip the Phase 1 controller in `/private/privkey.jsonld` from WebID to `did:nostr:\u003cnpub>` once we've confirmed jss's existing resolver round-trips. The Phase 1 design log explicitly anticipated this swap; Phase 2 is when it lands.\n\n## Acceptance\n\n- [ ] On `--provision-keys`, the seeded profile contains a VM with `publicKeyMultibase` matching `/private/privkey.jsonld`.\n- [ ] A JWT signed with the secret, `kid` set to the VM's `id`, presented to a WAC-protected resource, authenticates as the pod owner via the existing LWS-CID verifier — no changes to the verifier.\n- [ ] The Phase 1 controller in `/private/privkey.jsonld` is `did:nostr:\u003cnpub>`, and `resolveDidNostrToWebId(\u003cpubkey>)` resolves back to the pod owner's WebID locally (via the well-known DID-doc index).\n- [ ] No regression: `--provision-keys` off still produces a profile with no VM (today's default).\n- [ ] `extractNostrPubkeysFromProfile` round-trips the new VM (same shape it already accepts for did:nostr verification).\n\n## Tests\n\n- Unit: profile generator, given a `publicKeyMultibase`, emits the right VM shape; absent the option, the VM array stays empty.\n- Round-trip: feed the generated VM through `extractNostrPubkeysFromProfile` and assert the recovered xonly pubkey matches.\n- Integration: `--provision-keys` + a small client that signs an LWS-CID JWT with the on-disk secret + `kid` set to the VM's `id` → 200 on a WAC-protected GET. (Reuses the existing LWS-CID test harness if there is one; otherwise builds the JWT inline.)\n- did:nostr round-trip: `resolveDidNostrLocally(pubkey)` returns the pod owner's WebID after Phase 2 wiring.\n\n## Why this is small\n\nNo new crypto. No new auth path. No new resolver. No new file format. The verifier, the profile generator, the resolver, the extractor, and the keypair generator are all in tree already. Phase 2 is **two wires** plus a controller flip.\n\n## Out of scope\n\n- Phase 3 work: `--key-passphrase` / scrypt+aesgcm wrap, BIP-39 seed phrase derivation.\n- Phase 4 work: hardware wallets, KMS, encrypted-at-rest.\n- Anything that changes the LWS-CID verifier (no need — it already accepts the shape Phase 2 will produce).\n\nRefs #437.\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-14T10:57:39Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:00a0e552-faf4-915e-f872-28afa017dfe4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83BC:39680A:4D38E8:62244E:6B038BC8
html-safe-nonceb204e7660beb4a2d2e742a101cd832066e8726a553dc04f7ecd1d48edb7668d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0JDOjM5NjgwQTo0RDM4RTg6NjIyNDRFOjZCMDM4QkM4IiwidmlzaXRvcl9pZCI6IjkxODc2ODAxOTA0MDU1MTIxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5a64aa07a069c1be9d3e51114841c4bc11db18bb93033b56f111f513d6cdd9bf
hovercard-subject-tagissue:4445347986
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/443/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ca5e05efcbebcc41a5b7bd2083bf1388b34e20ccfab965e744d264d8211685bd/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ca5e05efcbebcc41a5b7bd2083bf1388b34e20ccfab965e744d264d8211685bd/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
og:image:altPhase 2 of #437. Close the loop between the Phase 1 owner key and the auth path that's already shipped. What's already in jss Capability Where Phase 1 keypair on disk (/private/privkey.jsonld, CID ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F443
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F443
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
#444https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444
feat: --provision-keys Phase 2 — wire the owner key into the WebID profile, close the LWS-CID loop (#437)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443#top
#444https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443#issue-4445347986
#437https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/437
#437https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/437
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#444https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443#event-25527714701
melvincarvalhohttps://github.com/melvincarvalho
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443#event-25527714774
Merge pull request #444 from JavaScriptSolidServer/issue-443-phase-2-…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/811fe6e7d4ddaab9ca97c9a4b2d53444eec2b1d4
#444https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444
811fe6ehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/811fe6e7d4ddaab9ca97c9a4b2d53444eec2b1d4
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/443
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.