anonymousland-synapse/synapse
Richard van der Hoff da957a60e8
Ensure that we correctly auth events returned by send_join (#11012)
This is the final piece of the jigsaw for #9595. As with other changes before this one (eg #10771), we need to make sure that we auth the auth events in the right order, and actually check that their predecessors haven't been rejected.

To do this I've reused the existing code we use when persisting outliers elsewhere.

I've removed the code for attempting to fetch missing auth_events - the events should have been present in the send_join response, so the likely reason they are missing is that we couldn't verify them, so requesting them again is unlikely to help. Instead, we simply drop any state which relies on those auth events, as we do at a backwards-extremity. See also matrix-org/complement#216 for a test for this.
2021-10-25 15:21:09 +01:00
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Add a thread relation type per MSC3440. (#11088) 2021-10-21 14:39:16 -04:00
app Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
appservice Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
config Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
crypto Add missing type hints to synapse.crypto. (#11146) 2021-10-21 13:07:07 +00:00
events Add a thread relation type per MSC3440. (#11088) 2021-10-21 14:39:16 -04:00
federation Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
groups Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Ensure that we correctly auth events returned by send_join (#11012) 2021-10-25 15:21:09 +01:00
http Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
logging Stop user directory from failing if it encounters users not in the users table. (#11053) 2021-10-13 09:38:22 +00:00
metrics Relax ignore-missing-imports for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
module_api Fix module API's get_user_ip_and_agents function when run on workers (#11112) 2021-10-25 13:01:04 +01:00
push disallow-untyped-defs for synapse.push (#11023) 2021-10-11 17:42:10 +01:00
replication Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api
state Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Fix module API's get_user_ip_and_agents function when run on workers (#11112) 2021-10-25 13:01:04 +01:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Relax ignore-missing-imports for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
__init__.py 1.45.1 2021-10-20 12:00:03 +01:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Improve docstrings for methods related to sending EDUs to application services (#11138) 2021-10-21 17:42:25 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Validate new m.room.power_levels events (#10232) 2021-08-26 17:07:58 +01:00
server.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
types.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
visibility.py