Skip to content

fix(acl): require persistent holding for allowGlobal / allowForDecryption - #175

Open
Jr-kenny wants to merge 1 commit into
FhenixProtocol:masterfrom
Jr-kenny:fix/ra3-transient-globalize
Open

Jr-kenny wants to merge 1 commit into
FhenixProtocol:masterfrom
Jr-kenny:fix/ra3-transient-globalize

Conversation

@Jr-kenny

Copy link
Copy Markdown

Fixes #174.

Gate allowGlobal and allowForDecryption on persistent holding only (persistAllowed || globalAllowed), not isAllowed (which includes transient access). A transient-only receiver could previously convert a one-transaction share into a permanent, irreversible global / decrypt grant.

The fix intentionally removes the create-then-globalize-in-one-tx shortcut: a creator globalizing a fresh handle now persists it to themselves first, then calls allowGlobal. The repo's PubliclyAllowedTest.createAndAllowGlobal is updated to the persist-first flow.

Tests: new regression tests for both legs, negative control fails on unfixed code, full host-chain suite 331 passing, 0 failing.

@Jr-kenny
Jr-kenny requested a review from a team as a code owner November 12, 2026 06:59
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.

Transient-only share receiver can permanently globalize a handle or mark it decryptable

1 participant