anonymousland-synapse/synapse/config
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
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
__main__.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
_base.py Add missing type hints to config base classes (#11377) 2021-11-23 15:21:19 +00:00
_base.pyi Add missing type hints to config base classes (#11377) 2021-11-23 15:21:19 +00:00
_util.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_validity.py Default value for public_baseurl (#11210) 2021-11-08 14:13:10 +00:00
api.py Fix up docs for track_puppeted_user_ips (again) (#11757) 2022-01-17 14:55:30 +00:00
appservice.py Add missing type hints to synapse.appservice (#11360) 2021-12-14 17:02:46 +00:00
auth.py Fix copy-paste error in the password section of the sample-config. (#10804) 2021-09-13 08:58:34 -04:00
cache.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
captcha.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
consent.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
database.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
emailconfig.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
experimental.py Add MSC2716 and MSC3030 to /versions -> unstable_features (#11582) 2021-12-16 11:25:37 -06:00
federation.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
groups.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
homeserver.py Move experimental & retention config out of the server module. (#11070) 2021-10-15 14:30:48 +00:00
jwt.py Add config for customizing the claim used for JWT logins. (#11361) 2021-11-22 13:01:03 -05:00
key.py Additional type hints for the config module, part 2. (#11480) 2021-12-09 16:15:46 +00:00
logger.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
metrics.py Additional type hints for the config module, part 2. (#11480) 2021-12-09 16:15:46 +00:00
modules.py Fix link from generated configuration file to documentation (#11678) 2022-01-05 12:16:52 +00:00
oembed.py Request JSON for oEmbed requests (and ignore XML only providers). (#10759) 2021-09-08 07:17:52 -04:00
oidc.py Update documentation for configuring facebook login (#11755) 2022-01-17 12:35:00 +00:00
password_auth_providers.py Port the Password Auth Providers module interface to the new generic interface (#10548) 2021-10-13 11:21:52 +00:00
push.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
ratelimiting.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
redis.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
registration.py Add a config flag to inhibit M_USER_IN_USE during registration (#11743) 2022-01-26 13:02:54 +01:00
repository.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
retention.py Move experimental & retention config out of the server module. (#11070) 2021-10-15 14:30:48 +00:00
room_directory.py Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11505 (#11687) 2022-01-05 11:41:49 +00:00
room.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
saml2.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
server_notices.py Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
server.py Add deprecation warnings for webclient listener and non-HTTP(S) web_client_location. (#11774) 2022-01-20 14:21:06 +00:00
spam_checker.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
sso.py Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
stats.py Remove functionality associated with unused historical stats tables (#9721) 2021-07-08 16:57:13 +01:00
third_party_event_rules.py Port the ThirdPartyEventRules module interface to the new generic interface (#10386) 2021-07-20 12:39:46 +02:00
tls.py Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11505 (#11687) 2022-01-05 11:41:49 +00:00
tracer.py Update links to documentation in sample config (#10287) 2021-07-07 12:35:45 +01:00
user_directory.py Add an admin API to run background jobs. (#11352) 2021-11-19 19:39:46 +00:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00