feat: add feature-flagged Somnia session keys - #26
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
* chore: harden frontend dependencies and browser policy * fix: strictly verify Somnia session permissions --------- Co-authored-by: CryptoMickle <318943357+CryptoMickle@users.noreply.github.com>
CryptoMickle
marked this pull request as ready for review
September 1, 2026 16:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Session security
The temporary signer is accepted only when all onchain checks pass:
The session is origin-scoped in browser storage, can be revoked from the UI, and gameplay transactions always target the configured dungeon with zero native value.
Verification
npm audit --omit=dev --audit-level=highpasses with no high or critical findings; 26 moderate transitive findings remain in upstream wallet dependencies, with no forced downgrade appliedControlled Shannon QA
Environment:
503120x07c5D071132ae95C3708031790b3feC740F4c292Verified lifecycle:
startGameand native VRF fulfillment completed through the sponsored Session Keys path.attackcompleted without another MetaMask popup.Production and URL guardrails
https://delveworn.vercel.app/practiceandhttps://delveworn.vercel.app/onchainremain reachablehttps://delveworn-somnia.vercel.app/onchain#129330424is openNEXT_PUBLIC_SOMNIA_SESSION_KEYS_ENABLED=truein the Somnia Vercel projectMetaMask status
The earlier false-positive “Malicious site” warning is no longer reproducible on the original production domain. The exact same transaction currently opens without a warning. MetaMask ticket
#129330424remains open to confirm whether the classification was cleared and whether Blockaid supports Somnia chain ID50312. This external confirmation does not block the testnet-only rollout.Go/no-go
Final automated checks, hardened wallet QA, URL review, and testnet sponsorship review passed on 2026-09-01. Production rollout to the existing Somnia testnet URL was explicitly approved.