dendrite
dendrite copied to clipboard
Missing Admin API
Description:
There is no admin API implemented yet. This allows home servers to list the users on their homeserver. And list the rooms on their home servers including the complexity per room.
These Admin features are actually quite useful for homeserver owners, allowing to have better insides into the Dendrite server. And manage the server instance.
Please not that Admin API is Synapse specific and is not part of Matrix API yet: https://github.com/matrix-org/matrix-doc/issues/1411
Well, there is something here: https://matrix.org/docs/spec/client_server/r0.6.1#id129
But needs to be expended.
Since the admin in synapse isn't properly matrix, is there any plan to come up with a dendrite specific api? Or what is the expected way to administer a dendrite server?
I'm too wondering if more admin APIs will be added? It's a bit unfortunate that one can't disable or remove user accounts for example.
If you can't do basic admin operations on the dendrite server. I can't use dendrite at all. This is a major issue for me to adopt Dendrite as my default server.
Recent discussion highlighted some specific administration endpoints necessary for public administration to mitigate abuse:
- Purge Room (i.e. evacuate room, delete associated media from
mediaapi, remove memberships) - Purge User (i.e. evacuate user, delete user account, delete associated media)
- Force Room Membership
Based on initial discussions, the purge user administration API endpoint would likely require storing user in mediaapi which @S7evinK mentioned would likely be a part of mediaapi refactoring.
There was discussion about including purging of messages for a purged user but this could be seen as damaging to recipients of those messages.
Separately, one member of the discussion had to go through and manually purge a room from their db by:
- Evacuating the Room
- Deleting the relevant room from
roomserver_published - Changing
roomserver_roomsstate_snapshot_nidto0for the relevant room - Deleting media from the media db
- They also had to remove membership from
syncapi_membershipsdue to an attempted join after evacuating the room.
This method is not recommended for use. Most administrators should wait until an administration API endpoint is added for purging a room.
hi, any news about adminapi?