matrix-org / matrix-org/matrix-rust-sdk

Multiple Olm Sessions: Expire old sessions

Open
#2,972 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Encryption
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.