06eb5cae08 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove special auth and redaction rules for aliases events in experimental room ver. ( #7037 )  
							
							
							
						 
						
							2020-03-09 08:58:25 -04:00  
				
					
						
							
							
								 
						
							
							
								a1f307f7d1 
								
							
								 
							
						 
						
							
							
								
								fix bad variable ref  
							
							
							
						 
						
							2020-01-28 14:55:22 +00:00  
				
					
						
							
							
								 
						
							
							
								49d3bca37b 
								
							
								 
							
						 
						
							
							
								
								Implement updated auth rules from MSC2260  
							
							
							
						 
						
							2020-01-28 14:20:10 +00:00  
				
					
						
							
							
								 
						
							
							
								a8ce7aeb43 
								
									
								
							
								 
							
						 
						
							
							
								
								Pass room version object into event_auth.check and check_redaction ( #6788 )  
							
							... 
							
							
							
							These are easier to work with than the strings and we normally have one around.
This fixes `FederationHander._persist_auth_tree` which was passing a
RoomVersion object into event_auth.check instead of a string. 
							
						 
						
							2020-01-28 14:18:29 +00:00  
				
					
						
							
							
								 
						
							
							
								0f6e525be3 
								
									
								
							
								 
							
						 
						
							
							
								
								Fixup synapse.api to pass mypy ( #6733 )  
							
							
							
						 
						
							2020-01-20 17:34:13 +00:00  
				
					
						
							
							
								 
						
							
							
								6e8f8e14f2 
								
							
								 
							
						 
						
							
							
								
								Merge release-v1.7.1 into develop  
							
							
							
						 
						
							2019-12-18 09:51:51 +00:00  
				
					
						
							
							
								 
						
							
							
								5029422530 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix bug where we added duplicate event IDs as auth_events ( #6560 )  
							
							
							
						 
						
							2019-12-17 15:06:08 +00:00  
				
					
						
							
							
								 
						
							
							
								6577f2d887 
								
							
								 
							
						 
						
							
							
								
								Sanity-check room ids in event auth ( #6530 )  
							
							... 
							
							
							
							When we do an event auth operation, check that all of the events involved are
in the right room. 
							
						 
						
							2019-12-16 13:47:34 +00:00  
				
					
						
							
							
								 
						
							
							
								971a0702b5 
								
									
								
							
								 
							
						 
						
							
							
								
								Sanity-check room ids in event auth ( #6530 )  
							
							... 
							
							
							
							When we do an event auth operation, check that all of the events involved are
in the right room. 
							
						 
						
							2019-12-13 11:44:41 +00:00  
				
					
						
							
							
								 
						
							
							
								424fd58237 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove redundant code from event authorisation implementation. ( #6502 )  
							
							
							
						 
						
							2019-12-10 15:09:45 +00:00  
				
					
						
							
							
								 
						
							
							
								54fef094b3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove usage of deprecated logger.warn method from codebase ( #6271 )  
							
							... 
							
							
							
							Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. 
							
						 
						
							2019-10-31 10:23:24 +00:00  
				
					
						
							
							
								 
						
							
							
								92e88a71d3 
								
									
								
							
								 
							
						 
						
							
							
								
								Cleanup extra quotes from IDEs ( #6236 )  
							
							
							
						 
						
							2019-10-23 16:49:05 +01:00  
				
					
						
							
							
								 
						
							
							
								b09d443632 
								
									
								
							
								 
							
						 
						
							
							
								
								Cleanup event auth type initialisation ( #5975 )  
							
							... 
							
							
							
							Very small code cleanup. 
							
						 
						
							2019-09-04 16:16:56 +01:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								54a87a7b08 
								
									
								
							
								 
							
						 
						
							
							
								
								Collect room-version variations into one place ( #4969 )  
							
							... 
							
							
							
							Collect all the things that make room-versions different to one another into
one place, so that it's easier to define new room versions. 
							
						 
						
							2019-04-01 10:24:38 +01:00  
				
					
						
							
							
								 
						
							
							
								67b82f1336 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions_eiah  
							
							
							
						 
						
							2019-01-29 22:58:38 +00:00  
				
					
						
							
							
								 
						
							
							
								655ce037fd 
								
							
								 
							
						 
						
							
							
								
								check event format version not room version  
							
							
							
						 
						
							2019-01-29 22:33:43 +00:00  
				
					
						
							
							
								 
						
							
							
								47e2dd1994 
								
							
								 
							
						 
						
							
							
								
								Drop vdh support  
							
							
							
						 
						
							2019-01-29 21:24:34 +00:00  
				
					
						
							
							
								 
						
							
							
								770b823445 
								
							
								 
							
						 
						
							
							
								
								Only check event IDs domain signed event for V1 and V2  
							
							... 
							
							
							
							Since newer versions of events don't have the same format for event ID. 
							
						 
						
							2019-01-29 16:15:00 +00:00  
				
					
						
							
							
								 
						
							
							
								7709d2bd16 
								
							
								 
							
						 
						
							
							
								
								Implement rechecking of redactions  
							
							
							
						 
						
							2019-01-29 11:56:20 +00:00  
				
					
						
							
							
								 
						
							
							
								ae2a957dba 
								
							
								 
							
						 
						
							
							
								
								Pass through room version to event auth  
							
							
							
						 
						
							2019-01-25 18:31:41 +00:00  
				
					
						
							
							
								 
						
							
							
								bc80b3f454 
								
							
								 
							
						 
						
							
							
								
								Add helpers for getting prev and auth events ( #4139 )  
							
							... 
							
							
							
							* Add helpers for getting prev and auth events
This is in preparation for allowing the event format to change between
room versions. 
							
						 
						
							2018-11-06 00:35:15 +11:00  
				
					
						
							
							
								 
						
							
							
								6bd856caa2 
								
							
								 
							
						 
						
							
							
								
								User event.sender rather than alias event.user_id  
							
							
							
						 
						
							2018-10-16 16:16:13 +01:00  
				
					
						
							
							
								 
						
							
							
								52e6e815be 
								
							
								 
							
						 
						
							
							
								
								Sanitise error messages when user doesn't have permission to invite  
							
							
							
						 
						
							2018-10-03 14:13:07 +01:00  
				
					
						
							
							
								 
						
							
							
								69e857853f 
								
							
								 
							
						 
						
							
							
								
								Fix handling of rejected threepid invites  
							
							
							
						 
						
							2018-10-03 11:57:30 +01:00  
				
					
						
							
							
								 
						
							
							
								8afddf7afe 
								
							
								 
							
						 
						
							
							
								
								Fix error handling for missing auth_event  
							
							... 
							
							
							
							When we were authorizing an event, if there was no `m.room.create` in its
auth_events, we would raise a SynapseError with a cryptic message, which then
meant that we would bail out of processing any incoming events, rather than
storing a rejection for the faulty event and moving on.
We should treat the absent event the same as any other auth failure, by
raising an AuthError, so that the event is marked as rejected. 
							
						 
						
							2018-09-26 14:40:16 +01:00  
				
					
						
							
							
								 
						
							
							
								19a17068f1 
								
							
								 
							
						 
						
							
							
								
								Check m.room.create for sane room_versions  
							
							
							
						 
						
							2018-08-06 16:11:24 +01:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								2c33b55738 
								
							
								 
							
						 
						
							
							
								
								Avoid relying on int vs None comparison  
							
							... 
							
							
							
							Python 3 doesn't support comparing None to ints 
							
						 
						
							2018-07-02 11:40:32 +01:00  
				
					
						
							
							
								 
						
							
							
								cbf82dddf1 
								
							
								 
							
						 
						
							
							
								
								Ensure that we define sender_domain  
							
							
							
						 
						
							2018-07-02 11:37:57 +01:00  
				
					
						
							
							
								 
						
							
							
								5c9afd6f80 
								
							
								 
							
						 
						
							
							
								
								Make default state_default 50  
							
							... 
							
							
							
							Make it so that, before there is a power-levels event in the room, you need a
power level of at least 50 to send state.
Partially addresses https://github.com/matrix-org/matrix-doc/issues/1192  
							
						 
						
							2018-06-14 12:38:09 +01:00  
				
					
						
							
							
								 
						
							
							
								52423607bd 
								
							
								 
							
						 
						
							
							
								
								Clarify interface for event_auth  
							
							... 
							
							
							
							stop pretending that it returns a boolean, which just almost gave me a heart
attack. 
							
						 
						
							2018-06-14 12:26:17 +01:00  
				
					
						
							
							
								 
						
							
							
								557b686eac 
								
							
								 
							
						 
						
							
							
								
								Refactor get_send_level to take a power_levels event  
							
							... 
							
							
							
							it makes it easier for me to reason about 
							
						 
						
							2018-06-14 11:26:27 +01:00  
				
					
						
							
							
								 
						
							
							
								c936a52a9e 
								
									
								
							
								 
							
						 
						
							
							
								
								Consistently use six's iteritems and wrap lazy keys/values in list() if they're not meant to be lazy ( #3307 )  
							
							
							
						 
						
							2018-05-31 19:03:47 +10:00  
				
					
						
							
							
								 
						
							
							
								eccfc8e928 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix templating error with unban permission message  
							
							... 
							
							
							
							Fixes https://github.com/matrix-org/synapse/issues/2759 
Signed-off-by: Travis Ralston <travpc@gmail.com> 
							
						 
						
							2018-01-07 19:52:58 -07:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								c2bd177ea0 
								
							
								 
							
						 
						
							
							
								
								Fix 500 error when fields missing from power_levels event  
							
							... 
							
							
							
							If the users or events keys were missing from a power_levels event, then
we would throw 500s when trying to auth them. 
							
						 
						
							2017-10-17 17:05:42 +01:00  
				
					
						
							
							
								 
						
							
							
								e5d2df9c34 
								
							
								 
							
						 
						
							
							
								
								Use better variable name  
							
							
							
						 
						
							2017-01-17 14:32:53 +00:00  
				
					
						
							
							
								 
						
							
							
								5d6bad1b3c 
								
							
								 
							
						 
						
							
							
								
								Optimise state resolution  
							
							
							
						 
						
							2017-01-17 13:22:19 +00:00  
				
					
						
							
							
								 
						
							
							
								8b2fa38256 
								
							
								 
							
						 
						
							
							
								
								Split event auth code into seperate module  
							
							
							
						 
						
							2017-01-13 15:07:32 +00:00