element-hq / element-hq/synapse
Synapse admins can delete themselves using the Admin API
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#12719](https://github.com/matrix-org/synapse/issues/12719).
---
Hi,
i already asked (https://github.com/Awesome-Technologies/synapse-admin/issues/260) in the Synapse-Admin github. They told me to create an issue here.
Following issue (feature?):
If i log into Synapse-Admin with my admin Account, which uses the Synapse Admin API, i can delete "myself" and get locked out of synapse.
I think in this situation the requirement should be an existing second admin account? Otherwise a selfdelete should not work, if the account is the only admin on the server?
Contributor guide
Research direction
Search the Synapse Admin API implementation for the account-deletion endpoint and its authorization checks. Trace how it determines administrator status and define the behavior for deleting the sole remaining admin; done means the API prevents that lockout while preserving valid deletion behavior, with regression coverage for the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, authorization, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100