summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:09:54 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:09:54 +0000
commit29102e0cd1e783c29087b55febf09a7bf8740070 (patch)
treee2350008c896aa42e456d2eaa1c23df1dd2b8808
parentThird party event rules Update (#6781) (diff)
parentAllow empty federation_certificate_verification_whitelist (#6849) (diff)
downloadsynapse-29102e0cd1e783c29087b55febf09a7bf8740070.tar.xz
Allow empty federation_certificate_verification_whitelist (#6849)
* commit 'bce557175':
  Allow empty federation_certificate_verification_whitelist (#6849)
-rw-r--r--changelog.d/6849.bugfix1
-rw-r--r--synapse/config/tls.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.d/6849.bugfix b/changelog.d/6849.bugfix
new file mode 100644

index 0000000000..d928a26ec6 --- /dev/null +++ b/changelog.d/6849.bugfix
@@ -0,0 +1 @@ +Fix Synapse refusing to start if `federation_certificate_verification_whitelist` option is blank. diff --git a/synapse/config/tls.py b/synapse/config/tls.py
index 2e9e478a2a..2514b0713d 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py
@@ -109,6 +109,8 @@ class TlsConfig(Config): fed_whitelist_entries = config.get( "federation_certificate_verification_whitelist", [] ) + if fed_whitelist_entries is None: + fed_whitelist_entries = [] # Support globs (*) in whitelist values self.federation_certificate_verification_whitelist = [] # type: List[str]