René's URL Explorer Experiment


Title: feat: Phase 2 — wire owner key into WebID profile + did:nostr controller (#443) by melvincarvalho · Pull Request #444 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat: Phase 2 — wire owner key into WebID profile + did:nostr controller (#443) by melvincarvalho · Pull Request #444 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat: Phase 2 — wire owner key into WebID profile + did:nostr controller (#443) by melvincarvalho · Pull Request #444 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Summary Closes the LWS-CID auth loop with the Phase 1 keypair. Three small wires: Inject the Phase 1 public key into the seeded WebID profile. provisionOwnerKey() now also returns a verificationMethod entry (Multikey + JWK forms). createPodStructure / createRootPodStructure pass it to generateProfile so the existing LWS-CID verifier in src/auth/lws-cid.js can authenticate JWTs signed with the on-disk secret. Same VM id is referenced from authentication and assertionMethod so the key counts as an auth factor without an app having to PATCH those arrays. Flip the Multikey controller in /private/privkey.jsonld from the WebID to did:nostr: (resolves locally via the existing resolveDidNostrLocally / resolveDidNostrToWebId). Phase 1's design log explicitly anticipated this swap; Phase 2 ships it. Normalize the secret to BIP-340 even-y form at generation time. Without this, ECDSA sigs from the raw secret would verify against the natural y of G*secret (even/odd ~50/50), while the JWK we publish is derived from the even-y x-only Schnorr pubkey — Phase 2's round-trip would flake non-deterministically. Normalizing once means one secret works under both Schnorr (Nostr) and ECDSA (LWS-CID JWT) with no parity gymnastics. No new dependencies. No changes to src/auth/lws-cid.js, src/auth/did-nostr.js, or the profile generator's @context. Two wires + controller flip + parity fix. Tests npm test — 854/854 passing. Unit (test/keys-provision.test.js): did:nostr controller default + explicit override (Phase 1 backward-compat), VM shape (Multikey + JWK), legacy controllerWebId arg still honoured, secret normalization stress (64 iterations). Integration (test/keys-provision-integration.test.js): direct createPodStructure call returns the new ownerKey shape (vm + didNostr). End-to-end round-trip (new file test/keys-provision-lws-cid.test.js): provision a key → generate a profile with the VM → sign an LWS-CID JWT with the on-disk secret → call verifyLwsCidAuth → returns the pod owner WebID. Plus a negative case (mismatched secret rejects with signature-verification error). This is the test that proves Phase 2 closes the loop. What's already in tree (didn't need building) Capability Where LWS-CID JWT verifier src/auth/lws-cid.js did:nostr: resolver + local well-known DID-doc src/auth/did-nostr.js, src/idp/well-known-did-nostr.js WebID profile generator with CID v1.0 verificationMethod slot src/webid/profile.js Pubkey extractor from a VM (handles Multikey + JWK with BIP-340 even-y check) src/auth/nostr-keys.js Phase 1 keypair generator + Multikey serializer src/keys/provision.js Test plan npm test — 854/854 locally End-to-end LWS-CID round-trip (positive + negative) covered by a dedicated test file Backward-compat: legacy controllerWebId arg + explicit controller override still honoured Parity-normalization stress (64 iterations all even-y) Out of scope (Phase 3+) --key-passphrase / scrypt+aesgcm wrap (Phase 3) BIP-39 seed phrase derivation (Phase 3) Hardware wallets / KMS / encrypted-at-rest (Phase 4) Closes #443. Phase 2 of #437.

Open Graph Description: Summary Closes the LWS-CID auth loop with the Phase 1 keypair. Three small wires: Inject the Phase 1 public key into the seeded WebID profile. provisionOwnerKey() now also returns a verificationMe...

X Description: Summary Closes the LWS-CID auth loop with the Phase 1 keypair. Three small wires: Inject the Phase 1 public key into the seeded WebID profile. provisionOwnerKey() now also returns a verificationMe...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bb6d0916-e073-dc07-5813-106f0c699d83
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9AFA:30D472:1136F38:15EDCD9:6B039159
html-safe-nonce7efaaaf4e9d7e25b3c91f282fc65b14020c8d1cd248b7cd03afcef5adf5c92ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUZBOjMwRDQ3MjoxMTM2RjM4OjE1RURDRDk6NkIwMzkxNTkiLCJ2aXNpdG9yX2lkIjoiMzEzOTExNTU5MDQwNTU1ODYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbeee185db21f12e1756ecf3096341d7e31a2b672458fb53a8a7a634128f4c651
hovercard-subject-tagpull_request:3682493156
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altSummary Closes the LWS-CID auth loop with the Phase 1 keypair. Three small wires: Inject the Phase 1 public key into the seeded WebID profile. provisionOwnerKey() now also returns a verificationMe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F444%2Ffiles
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%2Fpull%2F444%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/gh-pages
issue-443-phase-2-wire-key-into-profilehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/issue-443-phase-2-wire-key-into-profile
Conversation 37 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444
Commits 6 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
feat: Phase 2 — wire owner key into WebID profile + did:nostr controller (#443) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#top
Show all changes 6 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
66bd3bd feat: Phase 2 — wire owner key into WebID profile + did:nostr control… melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/66bd3bd44563ad55989dee42e691c32a4765fdbd
2285d05 review: simplify provisionOwnerKey API + reorder write + tighter test… melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/2285d05bea297e96bdd5c7b05120cb47367458c1
d375f18 review: dedup did:nostr default to a single source of truth (#444) melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/d375f1860e353c827f3b11f8e2ae160b6f4f9574
c16e1d0 review: write privkey AFTER ACLs to close WAC vacuum (#444) melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/c16e1d03eab040582fe2a91f2e8c212ad248e8b2
e8a268b review: rename test + document asymmetry + validate hexToBytes (#444) melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/e8a268be3d011a16011d9f04030903ddd373f7ae
001d832 review: merge generateProfileJsonLd JSDoc blocks (#444) melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/commits/001d8325836ce99df320b6e99d21d199443038ea
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
container.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
provision.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
server.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
profile.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-f9b5c2675d8f3e659ea98e4957d39b41ac74a7a2b38ab900176c526da910ee0a
keys-provision-integration.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-d23c720f9f33bd0f470db8a9b4bfa8e4670ad8e42ca431f1405e6e3291ce804f
keys-provision-lws-cid.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-30bb3ba432bc69c69cbc81e7b22dae52fa89643214a43f097718b58906820029
keys-provision.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-df8f8f36eb7069568bec4e741ed8f8057edfc2af29464fc94511dc581ef2a4ed
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/handlers/container.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/001d8325836ce99df320b6e99d21d199443038ea/src/handlers/container.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-065a89a897058ca5725525b80f94323abb8087f8c50fc4400ae9c41431216a61
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/keys/provision.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/001d8325836ce99df320b6e99d21d199443038ea/src/keys/provision.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#r3241146168
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#r3241173084
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
e8a268bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e8a268be3d011a16011d9f04030903ddd373f7ae
e8a268bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e8a268be3d011a16011d9f04030903ddd373f7ae
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#diff-32fbaea1e780606983efc65c60f6db4d3c44c962c5fe75e6d7218dca4e149725
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#r3241146310
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files#r3241173218
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
e8a268bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e8a268be3d011a16011d9f04030903ddd373f7ae
e8a268bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e8a268be3d011a16011d9f04030903ddd373f7ae
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/444/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.