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

Repro missing epochs #33

Closed
wants to merge 3 commits into from
Closed

Repro missing epochs #33

wants to merge 3 commits into from

Conversation

neekolas
Copy link

@neekolas neekolas commented Aug 17, 2024

Summary

I was trying to reproduce the issue we've been seeing with OpenMLS where the max_past_epochs flag was set to 3, but messages from even 1 previous epoch were failing with an AeadError.

Your existing test for past epoch secrets passes so long as there is an in-memory group instance that is being updated. But if you attempt to load the group from storage before processing the message the MessageSecretsStore has no past_tree_epochs available and fails to decrypt with an AeadError.

I'm assuming we just need to write the MessageSecrets to the storage provider after they have been updated, which I did in the last commit in this branch and the test starts passing again. If you remove the changes to process.rs you will see the test failing with an AeadError

@neekolas neekolas closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant