Skip to content

chore(vendor): bump sphere-sdk to 116b8d9 (PR #385 identity-keys cache-only)#334

Open
vrogojin wants to merge 2 commits into
feat/telco-webrtc-callsfrom
vendor-bump/sphere-sdk-pr385
Open

chore(vendor): bump sphere-sdk to 116b8d9 (PR #385 identity-keys cache-only)#334
vrogojin wants to merge 2 commits into
feat/telco-webrtc-callsfrom
vendor-bump/sphere-sdk-pr385

Conversation

@vrogojin
Copy link
Copy Markdown
Contributor

@vrogojin vrogojin commented Jun 1, 2026

Summary

Vendors sphere-sdk PR #385: fix(profile)(security): keep identity / seed material out of OrbitDB.

Identity keys (mnemonic, master_key, chain_code, derivation_path, base_path, derivation_mode, wallet_source, current_address_index) are now cache-only — never written to OrbitDB → never replicated to IPFS via the snapshot CAR pin path.

Closes the leak window that Audit #333 C1 left open at the encrypt() boundary: pre-fix, after setIdentity attached a key, identity writes would have been encrypted and pushed to OrbitDB. Even encrypted, that lowers the threat model from "compromise the device" to "brute-force a password against an IPFS-pinned ciphertext".

Source

Test plan

  • After merge, verify the [Sphere] Identity read for "master_key" missing from primary storage warnings stop appearing in the browser console at https://sphere-telco-test.dyndns.org for new Profile-mode wallets created post-deploy.
  • Existing legacy-migrated wallets continue to boot (they still consult fallback storage — that's correct).
  • Send / receive flow remains green.

🤖 Generated with Claude Code

vrogojin and others added 2 commits June 2, 2026 00:37
…e-only)

Pulls fix(profile)(security): keep identity / seed material out of OrbitDB.
Identity keys (mnemonic, master_key, chain_code, derivation_path, ...) are
now cache-only — never written to OrbitDB → never replicated to IPFS.

Source: sphere-sdk fix/profile-identity-keys-cache-only @ 116b8d9
PR: unicity-sphere/sphere-sdk#385

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Adds commit 96991eb on PR #385:
  fix(profile)(security): lazy-backfill identity keys from fallback
  into primary

Without this, post-deploy existing wallets continue to emit
"[Sphere] Identity read for ... missing from primary storage;
consulting fallbackStorage" on every boot — even though the wallet
works correctly. The backfill silences the warning for legacy
wallets by writing the fallback value into the Profile localCache
on first successful fallback consult; subsequent boots find it in
primary on the first try.

Source: sphere-sdk fix/profile-identity-keys-cache-only @ 96991eb
PR: unicity-sphere/sphere-sdk#385

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant