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

Commit

Permalink
Don't implicitly include server signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 23, 2019
1 parent 7af5a63 commit fe0ac98
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions synapse/config/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ def read_config(self, config, config_dir_path, **kwargs):
config.get("key_refresh_interval", "1d")
)

self.key_server_signing_keys = list(self.signing_key)
key_server_signing_keys_path = config.get("key_server_signing_keys_path")
if key_server_signing_keys_path:
self.key_server_signing_keys.extend(
self.read_signing_keys(
key_server_signing_keys_path, "key_server_signing_keys_path"
)
self.key_server_signing_keys = self.read_signing_keys(
key_server_signing_keys_path, "key_server_signing_keys_path"
)
else:
self.key_server_signing_keys = list(self.signing_key)

# if neither trusted_key_servers nor perspectives are given, use the default.
if "perspectives" not in config and "trusted_key_servers" not in config:
Expand Down Expand Up @@ -221,8 +220,8 @@ def generate_config_section(
# - server_name: "matrix.org"
#
# The additional signing keys to use when acting as a trusted key server, on
# top of the normal signing keys.
# The signing keys to use when acting as a trusted key server. If not specified
# defaults to the server signing key.
#
# Can contain multiple keys, one per line.
#
Expand Down

0 comments on commit fe0ac98

Please sign in to comment.