Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

admin-api: Don't Allow Admins to Invite Themselves Into Private Rooms #9027

Closed
f35f0ef9d0e827dae86552d3899f78fc opened this issue Jan 6, 2021 · 4 comments

Comments

@f35f0ef9d0e827dae86552d3899f78fc
Copy link
Contributor

I am concerned with the new capability added in this PR:
#8756

What is the need for an admin to invite themselves into private rooms? What if the room settings allowed new users access to all chat history? With this new change, is it possible for an admin to grant themselves admin access to a private room, change the chat history setting for new users, and then accept the room invitation generated by the admin API? If yes, then this functionality is really in conflict with the term private room.

@274below
Copy link

274below commented Jan 6, 2021

"Private" inherently isn't "private" if you don't trust the server admins. After all, someone can just run a database query to see the historical room content without inviting themselves to the room in the first place.

If this is something that is really concerning to you, then you should 1) enable E2E encryption and 2) run your own server in an environment that you trust.

@f35f0ef9d0e827dae86552d3899f78fc
Copy link
Contributor Author

"Private" inherently isn't "private" if you don't trust the server admins. After all, someone can just run a database query to see the historical room content without inviting themselves to the room in the first place.

If this is something that is really concerning to you, then you should 1) enable E2E encryption and 2) run your own server in an environment that you trust.

You make a good point about administrative access to the infrastructure.

I'm speaking for the layman here, the folk that do not watch github releases... normal people. Matrix and Element will continue to only be for tech enthusiasts if we don't think about making the easy way the most private and secure way.

@lovelaced
Copy link

I'll be honest, I don't like this either (as a server admin). The server admin should only perhaps be able to "rescue" rooms which are left without an admin to prevent having to migrate all users to a new room to create a new admin.

@richvdh
Copy link
Member

richvdh commented Jan 18, 2021

the design of matrix is such that any server admin will always be able to "puppet" any user on that server if they so desire. This API doesn't change that - it just means that the admin doesn't have to go digging around in the database to do so.

There's some interesting experimental work going on in peer-to-peer matrix (effectively: each client is its own server) which I think would address your concerns, but that's out of scope for synapse, so I'm going to go ahead and close this issue.

@richvdh richvdh closed this as completed Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants