synapse-product/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 Let synctl use a config directory. (#5904) 2019-08-28 15:55:58 +01:00
__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 Implement OpenID Connect-based login (#7256) 2020-05-08 08:30:40 -04:00
api.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
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 cas: support setting display name (#6114) 2019-10-11 12:33:12 +01:00
consent_config.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
database.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
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 Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
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_auth_providers.py Add documentation to password_providers config option (#7238) 2020-04-08 00:46:50 +01:00
password.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
push.py Clarify the account_validity and email sections of the sample configuration. (#6685) 2020-01-17 10:04:15 +00:00
ratelimiting.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
redis.py Drop support for redis.dbid (#7450) 2020-05-07 16:46:15 +01:00
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_directory.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
room.py Fix handling of "off" in encryption_enabled_by_default_for_room_type (#7822) 2020-07-13 17:14:42 +01:00
saml2_config.py Increase the default SAML session expirary time to 15 minutes. (#7664) 2020-06-11 07:55:45 -04:00
server_notices_config.py Fix copypasted comment (#7477) 2020-05-13 16:55:43 +01:00
server.py Add ability to shard the federation sender (#7798) 2020-07-10 18:26:36 +01:00
spam_checker.py Extend spam checker to allow for multiple modules (#7435) 2020-05-08 19:25:48 +01:00
sso.py Cleanups to the OpenID Connect integration (#7628) 2020-06-03 21:13:17 +01:00
stats.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
third_party_event_rules.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
tls.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
tracer.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
user_directory.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00