Skip to content

Wire provider auth membership cache to chain-state coordinator#255

Open
danielbui12 wants to merge 1 commit into
devfrom
wire-provider-auth-with-chain-state-sync
Open

Wire provider auth membership cache to chain-state coordinator#255
danielbui12 wants to merge 1 commit into
devfrom
wire-provider-auth-with-chain-state-sync

Conversation

@danielbui12

@danielbui12 danielbui12 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Changes

Closes the auth revocation staleness window: MemberSet/MemberRemoved/ BucketDeleted events are now surfaced as typed StorageEvent variants and invalidate the affected bucket's MembershipCache entry on every finalized block, instead of only expiring on TTL.

Also fixes a lost-update race in MembershipCache::get_role where a chain fetch already in flight could overwrite a concurrent invalidate() with stale membership, silently reopening the revocation window it was meant to close.

Closes the auth revocation staleness window: MemberSet/MemberRemoved/
BucketDeleted events are now surfaced as typed StorageEvent variants and
invalidate the affected bucket's MembershipCache entry on every finalized
block, instead of only expiring on TTL.

Also fixes a lost-update race in MembershipCache::get_role where a chain
fetch already in flight could overwrite a concurrent invalidate() with
stale membership, silently reopening the revocation window it was meant
to close.
"Admin" => Some(Role::Admin),
"Writer" => Some(Role::Writer),
"Reader" => Some(Role::Reader),
_ => None,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure here, ignore and "do not trigger invalidation", we need to probably land the typed PR #239 first to see

@danielbui12 danielbui12 self-assigned this Jul 2, 2026
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.

2 participants