element-hq / element-hq/synapse

Configuration to limit the number of active devices a single user may have

Open
#16,064 0 comments 0 reactions 0 assignees View on GitHub
S-Minor T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#16064](https://github.com/matrix-org/synapse/issues/16064).

---

**Description:**

Currently, the number of devices a single user can have is unbounded. This can start to cause performance concerns, especially when things involving inter-device messaging are concerned. It would be good to allow service providers the option to set a hard cap on the number of devices a user can have (prompting them to log out of older devices that may not be in use).

When a user hits their caps, I'd expect new /login attempts to be blocked.

I suspect this kind of thing will need a spec of some kind, at the very minimum a new error code to describe the the failure.

**EDIT:** Oh and if it wasn't clear, this is primarily for the non-federated use case. Obviously some person could join your room with several hundred devices and ruin things, but small steps etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.