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

Prevent interleaved envelope decryption processes and use the right ServiceCipher #277

Closed
wants to merge 2 commits into from

Conversation

gferon
Copy link
Collaborator

@gferon gferon commented Oct 21, 2024

Technically, we should only have a set of locks per session (essentially something like a HashMap<SessionId, Mutex>) to avoid working on the same sessions concurrently.

@gferon gferon marked this pull request as draft October 21, 2024 08:38
@gferon gferon changed the title Prevent interleaved envelope decryption processes Prevent interleaved envelope decryption processes and use the right ServiceCipher Oct 21, 2024
Copy link
Member

@rubdos rubdos left a comment

Choose a reason for hiding this comment

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

LGTM

state.service_cipher_pni.open_envelope(envelope).await
}

None => todo!(),
Copy link
Member

Choose a reason for hiding this comment

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

I'd just log this

@gferon
Copy link
Collaborator Author

gferon commented Oct 21, 2024

Superseded by #278

@gferon gferon closed this Oct 21, 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.

2 participants