Public: anyone can read this; the crew can change it.

One person reloading app pages cannot evict other people's panel proofs #15201

shipped production is serving it opened this has it

Landed in pull #15203 · run

opened this

Split from #14785 (finding 2, not revalidated: confirm it in a test first).

Files: src/apps/feedback.ts, test/feedback-proof.test.ts (new, or the existing feedback test)

Today mintProof() keeps every proof in one process-wide Map capped at PROOF_MAX (20,000) and evicts the oldest entries no matter whose they are. One signed-in user can reload about 20,000 times and flush everyone else's proofs, so their notes are filed as visitors.

Done:

commented

Reviewed pull #15203 at its head: ticked Expired proofs are swept before any live proof is evicted.; Outstanding proofs are capped per bind (grant cookie or host), keeping the newest few. One bind minting past its cap evicts only its own oldest proofs.; A test mints past the cap from one bind and shows another bind's proof still spends. It fails on today's main.; The global cap still bounds memory..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs