Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per user flag if they can use federation or not? #17268

Closed
darix opened this issue Jun 5, 2024 · 1 comment
Closed

Per user flag if they can use federation or not? #17268

darix opened this issue Jun 5, 2024 · 1 comment

Comments

@darix
Copy link

darix commented Jun 5, 2024

this might be helpful if you only want to allow a subset of the users to use federation.

would that be much work?

Tasks

Preview Give feedback
No tasks being tracked yet.
@anoadragon453
Copy link
Member

Hi @darix. This could already be done today through the use of a Synapse Module.

Such a module could hook into the user_may_join_room and user_may_invite methods to check whether a user is allowed to join a room over federation or invite remote users to a room. And the check_event_for_spam method can be used to ensure a user cannot send or receive messages from remote users, even if they did manage to join a room with remote users in it (perhaps due to them being in such a room before the rules were enforced).

The module could have its own configuration to allow hardcoding the list of users, or reach out to an endpoint to dynamically pull the list.

Unfortunately I do not know of an available module that does exactly as you want, but writing one would be fairly straightforward, and more flexible than a config option.

@anoadragon453 anoadragon453 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants