Repository navigation
Conversation
SessionKey.syncExpirations read through the session key's own client, so
viem sent the session key as `from` on the eth_call. Lotus rejects a call
from an address with no actor ("actor not found"), which is what a session
key that has never held FIL is, and getExpirations reads that error as
nothing granted. A freshly authorized key therefore reported every scope as
never granted, and Synapse refused it.
FilOzone#645 fixed this inside getExpirations; FilOzone#909 moved read clients to the
caller and dropped that, so the session key now builds an accountless read
client on its own transport for the sync.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
filecoin-encryption-envelope
@filoz/keysmith
@filoz/synapse-core
@filoz/synapse-react
@filoz/synapse-sdk
commit: |
|
Thanks for digging into this! Before we reintroduce client-side account stripping, can you check which Lotus version your Lotus shipped a fix for Verification on default public RPCsTesting
Why this likely reproduced on
|
Thanks, I'd missed the subtle behaviour of |
A freshly authorized session key reads as never granted, so
Synapserefuses it, until the key has held FIL.Cause
SessionKey.syncExpirationscallsgetExpirationswith the session key's own client. viem sends a client's account asfromoneth_call.eth_callfrom an address with no actor:resolve address t410f…: actor not found. A new session key has never held FIL, so it has none.getExpirationstreatsactor not foundas "nothing granted" and returns zeros.#645 fixed this by stripping the account inside
getExpirations. #909 moved read clients to the caller ("drop obsolete account-stripping tests"), but the session key still passes its account client, so the bug came back. It's insynapse-core0.10.2 and currentmaster.Fix
syncExpirationsbuilds an accountless client on the session key's own transport (custom({ request }), as #645 did) and reads through it. The actions keep #909's contract: callers pass the client they want.Testing
authorization-expiry.test.ts:syncExpirationssends noeth_callwith afrom. It fails without the fix.pnpm turbo build lintandsynapse-core'stest:node(1181 tests) pass.syncExpirationsgives0for every permission, and filecoin-pinaddfails with "never granted";CreateDataSetandAddPieces;eth_calltoauthorizationExpiryanswers with nofromand withfromset to the owner, and givesactor not foundwithfromset to the session key.🤖 Generated with Claude Code