summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorAaron Raimist <aaron@raim.ist>2021-05-11 08:03:23 -0500
committerGitHub <noreply@github.com>2021-05-11 14:03:23 +0100
commitdc6366a9bd370a0f772f376a2053c0ce48cb6607 (patch)
tree79b857378e42988bfed8ef2d65b883473f73e820 /synapse/config
parentAdd debug logging for issue #9533 (#9959) (diff)
downloadsynapse-dc6366a9bd370a0f772f376a2053c0ce48cb6607.tar.xz
Add config option to hide device names over federation (#9945)
Now that cross signing exists there is much less of a need for other people to look at devices and verify them individually. This PR adds a config option to allow you to prevent device display names from being shared with other servers.

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/federation.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/config/federation.py b/synapse/config/federation.py

index 090ba047fa..cdd7a1ef05 100644 --- a/synapse/config/federation.py +++ b/synapse/config/federation.py
@@ -44,6 +44,10 @@ class FederationConfig(Config): "allow_profile_lookup_over_federation", True ) + self.allow_device_name_lookup_over_federation = config.get( + "allow_device_name_lookup_over_federation", True + ) + def generate_config_section(self, config_dir_path, server_name, **kwargs): return """\ ## Federation ## @@ -75,6 +79,12 @@ class FederationConfig(Config): # on this homeserver. Defaults to 'true'. # #allow_profile_lookup_over_federation: false + + # Uncomment to disable device display name lookup over federation. By default, the + # Federation API allows other homeservers to obtain device display names of any user + # on this homeserver. Defaults to 'true'. + # + #allow_device_name_lookup_over_federation: false """