matrix-org / matrix-org/matrix-rust-sdk
Add homeserver URL to Session
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 500
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 106
Description
We should add the homeserver URL to our session type so a client session can be restored from disk without a `.well-known` request. However, at the same or before doing this, we should add a mechanism by which we re-validate that the homeserver is still in the expected location.
We need to be make sure that manually setting the homeserver URL is still supported for homeserver proxy use cases, but we should probably discourage it for "regular" usage since it will by definition bypass any "homeserver URL changed" checks we implement.
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 by locating the Session type, its disk persistence and restoration path, and the homeserver `.well-known` discovery flow. Determine how manual homeserver URLs are currently handled and define re-validation behavior; done means sessions restore without unnecessary discovery while detecting changed homeserver locations and preserving proxy support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100