forked-synapse/synapse/handlers
Andrew Morgan fcd6961441
Add option to enable encryption by default for new rooms (#7639)
Fixes https://github.com/matrix-org/synapse/issues/2431

Adds config option `encryption_enabled_by_default_for_room_type`, which determines whether encryption should be enabled with the default encryption algorithm in private or public rooms upon creation. Whether the room is private or public is decided based upon the room creation preset that is used.

Part of this PR is also pulling out all of the individual instances of `m.megolm.v1.aes-sha2` into a constant variable to eliminate typos ala https://github.com/matrix-org/synapse/pull/7637

Based on #7637
2020-06-10 17:44:34 +01:00
..
ui_auth Convert identity handler to async/await. (#7561) 2020-05-26 13:46:22 -04:00
__init__.py Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
_base.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
account_data.py Remove unused get_pagination_rows methods. (#6557) 2019-12-17 11:44:32 +00:00
account_validity.py Fix buggy condition in account validity handler (#7074) 2020-03-16 12:16:30 +00:00
acme_issuing_service.py Allow configuration of the path used for ACME account keys. 2019-06-24 13:51:22 +01:00
acme.py Small grammar fixes to the ACME v1 deprecation notice (#6944) 2020-02-21 08:53:01 +00:00
admin.py Admin api to add an email address (#6789) 2020-02-07 10:29:36 +00:00
appservice.py Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
auth.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
cas_handler.py Persist user interactive authentication sessions (#7302) 2020-04-30 13:47:49 -04:00
deactivate_account.py Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
device.py Process cross-signing keys when resyncing device lists (#7594) 2020-06-01 17:47:30 +02:00
devicemessage.py Resync remote device list when detected as stale. (#6786) 2020-01-30 17:06:38 +00:00
directory.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
e2e_keys.py Process cross-signing keys when resyncing device lists (#7594) 2020-06-01 17:47:30 +02:00
e2e_room_keys.py Lint 2020-03-06 15:11:13 +00:00
events.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
federation.py Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
groups_local.py Convert groups local and server to async/await. (#7600) 2020-06-01 07:28:43 -04:00
identity.py Convert identity handler to async/await. (#7561) 2020-05-26 13:46:22 -04:00
initial_sync.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
message.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
oidc_handler.py Cleanups to the OpenID Connect integration (#7628) 2020-06-03 21:13:17 +01:00
pagination.py Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekable 2020-02-19 11:19:11 +00:00
password_policy.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
presence.py Add option to move event persistence off master (#7517) 2020-05-22 16:11:35 +01:00
profile.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
read_marker.py Port receipt and read markers to async/wait 2019-10-29 15:08:22 +00:00
receipts.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
register.py Convert the registration handler to async/await. (#7649) 2020-06-08 11:15:02 -04:00
room_list.py Fix 'FederationGroupsRoomsServlet' API when group has room server is not in. (#7599) 2020-05-29 17:49:47 +01:00
room_member_worker.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
room_member.py Add option to move event persistence off master (#7517) 2020-05-22 16:11:35 +01:00
room.py Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
saml_handler.py Clean up exception handling in SAML2ResponseResource (#7614) 2020-06-03 10:41:12 +01:00
search.py Convert search code to async/await. (#7460) 2020-05-11 15:12:39 -04:00
set_password.py Hash passwords earlier in the password reset process (#7538) 2020-05-20 09:48:03 -04:00
state_deltas.py Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00
stats.py Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00
sync.py Typo fixes. 2020-06-05 08:43:21 -04:00
typing.py Remove concept of a non-limited stream. (#7011) 2020-03-20 14:40:47 +00:00
user_directory.py Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00