Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(group): make group changes thread safe #1349

Closed
wants to merge 5 commits into from

Conversation

mchenani
Copy link
Contributor

Changes:
Make adding and removing members in an MLS group thread-safe.

Issue:
In rare parallel scenarios, invoking Add or Remove members in an MLS group could result in a ForkedGroups issue, leaving some users in an outdated state. This problem arises when the group state is fetched, and a commit is generated, potentially publishing two or more intents with the same group state. If one of these intents gets published and its within commit is merged, the second intent, even if republished, continues to reference the outdated group state.

As a result, the client is unable to decrypt the commit due to an AEAD error. Furthermore, all upcoming messages, belong to future epoch, remain undecryptable.

@mchenani mchenani requested a review from a team as a code owner November 27, 2024 20:18
@mchenani mchenani closed this Dec 11, 2024
mchenani added a commit that referenced this pull request Dec 17, 2024
---------

Co-authored-by: Andrew Plaza <[email protected]>
Co-authored-by: Dakota Brink <github@codabrink>
Co-authored-by: Ry Racherbaumer <[email protected]>
cameronvoell added a commit that referenced this pull request Dec 17, 2024
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