synapse/changelog.d
Brendan Abolivier 95b3f952fa
Add a config flag to inhibit M_USER_IN_USE during registration (#11743)
This is mostly motivated by the tchap use case, where usernames are automatically generated from the user's email address (in a way that allows figuring out the email address from the username). Therefore, it's an issue if we respond to requests on /register and /register/available with M_USER_IN_USE, because it can potentially leak email addresses (which include the user's real name and place of work).

This commit adds a flag to inhibit the M_USER_IN_USE errors that are raised both by /register/available, and when providing a username early into the registration process. This error will still be raised if the user completes the registration process but the username conflicts. This is particularly useful when using modules (https://github.com/matrix-org/synapse/pull/11790 adds a module callback to set the username of users at registration) or SSO, since they can ensure the username is unique.

More context is available in the PR that introduced this behaviour to synapse-dinsic: matrix-org/synapse-dinsic#48 - as well as the issue in the matrix-dinsic repo: matrix-org/matrix-dinsic#476
2022-01-26 13:02:54 +01:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
11612.bugfix 1.51.0rc1 2022-01-21 10:47:03 +00:00
11621.feature Remove account data (including client config, push rules and ignored users) upon user deactivation. (#11621) 2022-01-24 13:37:00 +00:00
11639.feature Add admin API to reset connection timeouts for remote server (#11639) 2022-01-25 12:06:29 +00:00
11658.feature Add admin API to get a list of federated rooms (#11658) 2022-01-25 16:11:40 +00:00
11683.removal Drop support for and remove references to EOL Python 3.6 (#11683) 2022-01-21 14:23:26 -08:00
11743.feature Add a config flag to inhibit M_USER_IN_USE during registration (#11743) 2022-01-26 13:02:54 +01:00
11767.bugfix Support rendering previews with data: URLs in them (#11767) 2022-01-24 08:58:18 -05:00
11784.bugfix Apply a timeout to reading the body when fetching a file. (#11784) 2022-01-24 14:38:37 +00:00
11788.feature Make the get_global_account_data_by_type_for_user cache be a tree-cache whose key is prefixed with the user ID (#11788) 2022-01-21 08:38:36 +00:00
11789.feature Make get_account_data_for_room_and_type a tree cache (#11789) 2022-01-21 08:01:37 +00:00
11792.misc Add state_key and rejection_reason to events (#11792) 2022-01-21 12:21:28 +00:00
11793.misc Add FrozenEvent.get_state_key and use it in a couple of places (#11793) 2022-01-21 09:10:01 +00:00
11794.misc Stop reading from event_reference_hashes (#11794) 2022-01-21 09:18:10 +00:00
11795.misc Drop unused table public_room_list_stream. (#11795) 2022-01-21 09:19:56 +00:00
11799.misc Db txn set isolation level (#11799) 2022-01-25 15:14:46 +01:00
11810.misc Skip the initial amd64-only Docker build (#11810) 2022-01-24 18:31:23 +00:00
11811.misc CI: run Complement on the VM, not inside Docker (#11811) 2022-01-25 15:05:22 +00:00
11813.misc Log modules at startup (#11813) 2022-01-25 15:35:35 +01:00
11816.misc Check that gc method is available before using in synapse/app/_base (#11816) 2022-01-25 10:35:18 -08:00
11817.misc Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00
11821.doc Docs: add missing PR submission process how-tos (#11821) 2022-01-25 14:09:56 +00:00
11823.misc Minor updates, and docs, for schema delta files (#11823) 2022-01-25 14:11:13 +00:00
11830.misc Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00