MatrixSynapse/synapse/config
Brendan Abolivier cc9eceb00d
Don't crash when one of the configuration files is empty (#7341)
If the admin adds a `.yaml` file that's either empty or doesn't parse into a dict to a config directory (e.g. `conf.d` for debs installs), stuff like https://github.com/matrix-org/synapse/issues/7322 would happen. This PR checks that the file is correctly parsed into a dict, or ignores it with a warning if it parses into any other type (including `None` for empty files).

Fixes https://github.com/matrix-org/synapse/issues/7322
2020-04-27 15:01:03 +02:00
..
__init__.py Let synctl use a config directory. (#5904) 2019-08-28 15:55:58 +01:00
__main__.py Fix synapse.config.__main__ on python 3 (#4356) 2019-01-08 10:03:09 +11:00
_base.py Don't crash when one of the configuration files is empty (#7341) 2020-04-27 15:01:03 +02:00
_base.pyi Add a confirmation step to the SSO login flow 2020-03-02 16:36:32 +00:00
api.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
appservice.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
captcha.py Remove unused captcha_bypass_secret option (#7137) 2020-03-25 17:49:34 +00: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 Don't default to an invalid sqlite config if no database configuration is provided (#6573) 2020-03-26 17:13:14 +00:00
emailconfig.py Fix minor issues with email config (#6962) 2020-02-24 15:18:38 +00:00
groups.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
homeserver.py Add ability to run replication protocol over redis. (#7040) 2020-04-22 13:07:41 +01:00
jwt_config.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
key.py Add an export_signing_key script (#6546) 2019-12-19 11:11:14 +00:00
logger.py Automate generation of the sample and debian log configs (#6627) 2020-01-03 17:14:00 +00:00
metrics.py Fix a small typo in the `metrics_flags` config option. (#7171) 2020-03-30 17:38:21 +01:00
password.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
password_auth_providers.py Add documentation to password_providers config option (#7238) 2020-04-08 00:46:50 +01: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 Bump version of mypy 2019-12-12 15:21:12 +00:00
redis.py Add ability to run replication protocol over redis. (#7040) 2020-04-22 13:07:41 +01:00
registration.py Add options to prevent users from changing their profile. (#7096) 2020-03-27 19:15:23 +00:00
repository.py Clarify the comments for media_storage_providers options (#7272) 2020-04-17 07:09:33 -04:00
room_directory.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
saml2_config.py Fix indention in generated config file (#7300) 2020-04-20 16:51:27 +01:00
server.py Revert "Revert "Merge pull request #7315 from matrix-org/babolivier/request_token"" 2020-04-23 11:23:53 +02:00
server_notices_config.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
spam_checker.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
sso.py Add documentation to the sample config about the templates for SSO. (#7343) 2020-04-24 15:03:49 -04: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 Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05: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 Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00