-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Not whitelisting federation with self breaks federation #4857
Description
Description
This is somewhat of a continuation of #4856.
I've got 2 servers with federation enabled. Each server only whitelists the other in federation_domain_whitelist. I'm only expecting them to federate with one another.
When I make a room and invite a user from the other server (inviting by matrix id), Synapse would first try retrieving some signature keys.
As described in #4856, it first attempts to do so using perspectives. This will fail if federation with matrix.org is not enabled.
The server then attempts to federate with itself for some reason.
If our own domain is not listed in federation_domain_whitelist, we'll get a FederationDeniedError error and federation will effectively not work. The invite reaches the other server, but in a broken state - it can neither be accepted, nor rejected. The only solution to fix that up on the other server - deleting it from local_invites and restarting Synapse (maybe this is some other bug that should be reported and worked on?).
I'm not sure what the reason is for needing to federate with self.
If there is a valid reason for doing so, perhaps:
- our own
server_nameshould automatically (implicitly) get added tofederation_domain_whitelist(unlessfederation_domain_whitelistisNone, that is) - the comments next to
federation_domain_whitelistshould be adjusted to indicate such a need
Version information
-
Version: 0.99.2
-
Install method: Docker