MatrixSynapse/synapse/config
Brendan Abolivier 504c8f3483
Fix handling of "off" in encryption_enabled_by_default_for_room_type (#7822)
Fixes https://github.com/matrix-org/synapse/issues/7821, introduced in https://github.com/matrix-org/synapse/pull/7639

Turns out PyYAML translates `off` into a `False` boolean if it's
unquoted (see https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values),
which seems to be a liberal interpretation of this bit of the YAML spec: https://yaml.org/spec/1.1/current.html#id864510

An alternative fix would be to implement the solution mentioned in the
SO post linked above, but I'm aware it might break existing setups
(which might use these values in the configuration file) so it's
probably better just to add an extra check for this one. We should be
aware that this is a thing for the next times we do that though.

I didn't find any other occurrence of this bug elsewhere in the
codebase.
2020-07-13 17:14:42 +01:00
..
__init__.py
__main__.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
_base.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
_base.pyi
api.py
appservice.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
cache.py Take out a lock before modifying _CACHES (#7663) 2020-06-10 18:27:49 +01:00
captcha.py Fix some DETECTED VIOLATIONS in the config file (#7550) 2020-05-22 10:11:50 +01:00
cas.py
consent_config.py
database.py
emailconfig.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
federation.py Add ability to shard the federation sender (#7798) 2020-07-10 18:26:36 +01:00
groups.py
homeserver.py Add ability to shard the federation sender (#7798) 2020-07-10 18:26:36 +01:00
jwt_config.py Add documentation for JWT login type and improve sample config. (#7776) 2020-07-06 08:31:51 -04:00
key.py Fix some DETECTED VIOLATIONS in the config file (#7550) 2020-05-22 10:11:50 +01:00
logger.py Add option to move event persistence off master (#7517) 2020-05-22 16:11:35 +01:00
metrics.py Fix some DETECTED VIOLATIONS in the config file (#7550) 2020-05-22 10:11:50 +01:00
oidc_config.py fix broken link in sample config (#7712) 2020-06-16 19:50:16 +01:00
password.py
password_auth_providers.py
push.py
ratelimiting.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
redis.py
registration.py Additional configuration options for auto-join rooms (#7763) 2020-06-30 15:41:36 -04:00
repository.py Support running multiple media repos. (#7706) 2020-06-17 14:13:30 +01:00
room.py Fix handling of "off" in encryption_enabled_by_default_for_room_type (#7822) 2020-07-13 17:14:42 +01:00
room_directory.py
saml2_config.py Increase the default SAML session expirary time to 15 minutes. (#7664) 2020-06-11 07:55:45 -04:00
server.py Add ability to shard the federation sender (#7798) 2020-07-10 18:26:36 +01:00
server_notices_config.py
spam_checker.py
sso.py Cleanups to the OpenID Connect integration (#7628) 2020-06-03 21:13:17 +01:00
stats.py
third_party_event_rules.py
tls.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
tracer.py
user_directory.py
voip.py
workers.py Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00