element-hq / element-hq/synapse
Experimental support for MSC4502: Targeted and unrestricted room member queries
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue tracks the experimental support for [MSC4502](https://github.com/matrix-org/matrix-spec-proposals/pull/4502) in Synapse. The feature is required as part of MatrixRTC to enable https://github.com/element-hq/lk-jwt-service to validate room membership when handing out access tokens to the SFU.
Support for the feature is enabled via the experimental config option `msc4502_enabled: true`.
When enabled, application services can be registered with a new parameter `scopes: ["urn:matrix:client:io.element.msc4502:rooms:is_joined"]` to allow them to query room membership for any user known to the homeserver.
Should the MSC be closed, this feature can be removed from Synapse.
Contributor guide
Research direction
Read MSC4502 first, then inspect Synapse's experimental configuration handling and application-service registration and room-membership query entry points. Done means supporting msc4502_enabled and the specified scopes parameter so eligible application services can query membership for any known user, while keeping the feature removable if the MSC closes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, authorization, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100