This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Calling the deactivation API without rate limiting causes room inconsistencies #16290
Labels
A-Admin-API
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
When bulk removing users in the IdM (keycloak), at the same time multiple requests will be sent to the
/_synapse/admin/v1/deactivate/<user_id>
endpoint to deactivate (erase=true) the concerning accounts in synapse.When not rate limiting these delete requests, the erasure can have the following side effect for a subset of the deactivated users:
These hulls of deactivated accounts then sit in the room as regular members. Manually calling the deactivate endpoint again will remove them from the room again, but they shouldn't be rejoining in the first place.
Steps to reproduce
Homeserver
selfhosted
Synapse Version
1.89.0
Installation Method
Docker (matrixdotorg/synapse)
Database
postgresql, single instance
Workers
Single process
Platform
x86 (64 bit) VM
Configuration
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: