matrix-org / matrix-org/matrix-rust-sdk
Multiple Olm Sessions: Expire old sessions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 500
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 106
Description
As per [spec](https://spec.matrix.org/v1.9/client-server-api/#molmv1curve25519-aes-sha2):
> A client may expire old sessions by defining a maximum number of olm sessions that it will maintain for each device, and expiring sessions on a Least Recently Used basis. The maximum number of olm sessions maintained per device should be at least 4.
Rust sdk should expire old sessions, and do some sanity (like session created/used in the future?)
Related #2970 #2971
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Matrix Client-Server API section on multiple Olm sessions and review related issues #2970 and #2971. Trace where the Rust SDK creates and uses Olm sessions; done means expiring sessions by least-recently-used order with at least four retained per device and handling sessions created or used in the future.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100