element-hq / element-hq/synapse

Synapse admins can delete themselves using the Admin API

Open
#12,719 0 comments 0 reactions 0 assignees View on GitHub
A-Admin-API P4 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 [#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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.