d19fba3655 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into matthew/filter_members  
							
							
							
						 
						
							2018-07-24 12:39:54 +01:00  
				
					
						
							
							
								 
						
							
							
								536bc63a4e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into erikj/client_apis_move  
							
							
							
						 
						
							2018-07-24 09:57:05 +01:00  
				
					
						
							
							
								 
						
							
							
								adfe29ec0b 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into matthew/filter_members  
							
							
							
						 
						
							2018-07-23 19:21:37 +01:00  
				
					
						
							
							
								 
						
							
							
								e42510ba63 
								
							
								 
							
						 
						
							
							
								
								Use new getters  
							
							
							
						 
						
							2018-07-23 13:17:22 +01:00  
				
					
						
							
							
								 
						
							
							
								0ecf68aedc 
								
							
								 
							
						 
						
							
							
								
								Move check_in_room_or_world_readable to Auth  
							
							
							
						 
						
							2018-07-20 15:30:59 +01:00  
				
					
						
							
							
								 
						
							
							
								be3adfc331 
								
							
								 
							
						 
						
							
							
								
								merge develop pydoc for _get_state_for_groups  
							
							
							
						 
						
							2018-07-19 11:26:04 +01:00  
				
					
						
							
							
								 
						
							
							
								33b60c01b5 
								
									
								
							
								 
							
						 
						
							
							
								
								Make auth & transactions more testable ( #3499 )  
							
							
							
						 
						
							2018-07-14 07:34:49 +10:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								3cf3e08a97 
								
							
								 
							
						 
						
							
							
								
								Implementation of server_acls  
							
							... 
							
							
							
							... as described at
https://docs.google.com/document/d/1EttUVzjc2DWe2ciw4XPtNpUpIl9lWXGEsy2ewDS7rtw . 
							
						 
						
							2018-07-04 19:06:20 +01:00  
				
					
						
							
							
								 
						
							
							
								f4f1cda928 
								
							
								 
							
						 
						
							
							
								
								add ip_range_whitelist parameter to limit where ASes can connect from  
							
							
							
						 
						
							2018-06-28 20:32:00 +01:00  
				
					
						
							
							
								 
						
							
							
								6350bf925e 
								
									
								
							
								 
							
						 
						
							
							
								
								Attempt to be more performant on PyPy ( #3462 )  
							
							
							
						 
						
							2018-06-28 14:49:57 +01:00  
				
					
						
							
							
								 
						
							
							
								ec1e799e17 
								
							
								 
							
						 
						
							
							
								
								Don't print invalid access tokens in the logs  
							
							... 
							
							
							
							Tokens shouldn't be appearing the logs, valid or invalid. 
Signed-off-by: Travis Ralston <travpc@gmail.com> 
							
						 
						
							2018-06-24 12:17:01 -06: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  
				
					
						
							
							
								 
						
							
							
								28f09fcdd5 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into matthew/filter_members  
							
							
							
						 
						
							2018-06-04 00:09:17 +03: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  
				
					
						
							
							
								 
						
							
							
								9bbb9f5556 
								
							
								 
							
						 
						
							
							
								
								add lazy_load_members to the filter json schema  
							
							
							
						 
						
							2018-05-29 04:26:10 +01:00  
				
					
						
							
							
								 
						
							
							
								7a6df013cc 
								
							
								 
							
						 
						
							
							
								
								merge develop  
							
							
							
						 
						
							2018-05-29 00:25:22 +01:00  
				
					
						
							
							
								 
						
							
							
								754826a830 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/develop' into 3218-official-prom  
							
							
							
						 
						
							2018-05-28 18:57:23 +10:00  
				
					
						
							
							
								 
						
							
							
								08bfc48abf 
								
							
								 
							
						 
						
							
							
								
								custom error code for not leaving server notices room  
							
							
							
						 
						
							2018-05-22 17:27:27 +01:00  
				
					
						
							
							
								 
						
							
							
								a8990fa2ec 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/develop' into 3218-official-prom  
							
							
							
						 
						
							2018-05-22 10:50:26 -05:00  
				
					
						
							
							
								 
						
							
							
								a5e2941aad 
								
							
								 
							
						 
						
							
							
								
								Reject attempts to send event before privacy consent is given  
							
							... 
							
							
							
							Returns an M_CONSENT_NOT_GIVEN error (cf
https://github.com/matrix-org/matrix-doc/issues/1252 ) if consent is not yet
given. 
							
						 
						
							2018-05-22 12:00:47 +01:00  
				
					
						
							
							
								 
						
							
							
								df9f72d9e5 
								
							
								 
							
						 
						
							
							
								
								replacing portions  
							
							
							
						 
						
							2018-05-21 19:47:37 -05:00  
				
					
						
							
							
								 
						
							
							
								33f469ba19 
								
							
								 
							
						 
						
							
							
								
								Apply some limits to depth to counter abuse  
							
							... 
							
							
							
							* When creating a new event, cap its depth to 2^63 - 1
* When receiving events, reject any without a sensible depth
As per https://docs.google.com/document/d/1I3fi2S-XnpO45qrpCsowZv8P8dHcNZ4fsBsbOW7KABI  
							
						 
						
							2018-05-01 17:54:19 +01:00  
				
					
						
							
							
								 
						
							
							
								36c59ce669 
								
							
								 
							
						 
						
							
							
								
								Use six.itervalues in some places  
							
							... 
							
							
							
							There's more where that came from
Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-04-15 20:39:43 +02:00  
				
					
						
							
							
								 
						
							
							
								6168351877 
								
							
								 
							
						 
						
							
							
								
								Add b prefixes to some strings that are bytes in py3  
							
							... 
							
							
							
							This has no effect on python2
Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-04-04 13:48:51 +02:00  
				
					
						
							
							
								 
						
							
							
								fcfe7f6ad3 
								
							
								 
							
						 
						
							
							
								
								Use simplejson throughout  
							
							... 
							
							
							
							Let's use simplejson rather than json, for consistency. 
							
						 
						
							2018-03-29 22:45:52 +01:00  
				
					
						
							
							
								 
						
							
							
								fa72803490 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2018-03-19 11:41:01 +00:00  
				
					
						
							
							
								 
						
							
							
								b2f2282947 
								
							
								 
							
						 
						
							
							
								
								make lazy_load_members configurable in filters  
							
							
							
						 
						
							2018-03-19 01:15:13 +00:00  
				
					
						
							
							
								 
						
							
							
								926ba76e23 
								
							
								 
							
						 
						
							
							
								
								Replace ujson with simplejson  
							
							
							
						 
						
							2018-03-15 23:43:31 +00:00  
				
					
						
							
							
								 
						
							
							
								ab9f844aaf 
								
									
								
							
								 
							
						 
						
							
							
								
								Add federation_domain_whitelist option ( #2820 )  
							
							... 
							
							
							
							Add federation_domain_whitelist
gives a way to restrict which domains your HS is allowed to federate with.
useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network 
							
						 
						
							2018-01-22 19:11:18 +01:00  
				
					
						
							
							
								 
						
							
							
								28a6ccb49c 
								
							
								 
							
						 
						
							
							
								
								add registrations_require_3pid  
							
							... 
							
							
							
							lets homeservers specify a whitelist for 3PIDs that users are allowed to associate with.
Typically useful for stopping people from registering with non-work emails 
							
						 
						
							2018-01-19 00:19:58 +00:00  
				
					
						
							
							
								 
						
							
							
								d5f9fb06b0 
								
							
								 
							
						 
						
							
							
								
								Refactor UI auth implementation  
							
							... 
							
							
							
							Instead of returning False when auth is incomplete, throw an exception which
can be caught with a wrapper. 
							
						 
						
							2017-12-05 09:40:05 +00:00  
				
					
						
							
							
								 
						
							
							
								da562bd6a1 
								
							
								 
							
						 
						
							
							
								
								Improve comments on get_user_by_access_token  
							
							... 
							
							
							
							because I have to reverse-engineer this every time. 
							
						 
						
							2017-11-29 15:52:41 +00:00  
				
					
						
							
							
								 
						
							
							
								aa620d09a0 
								
							
								 
							
						 
						
							
							
								
								Add a config option to block all room invites ( #2457 )  
							
							... 
							
							
							
							- allows sysadmins the ability to lock down their servers so that people can't
send their users room invites. 
							
						 
						
							2017-09-19 16:08:14 +01:00  
				
					
						
							
							
								 
						
							
							
								ed9a7f5436 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2309  from matrix-org/erikj/user_ip_repl  
							
							... 
							
							
							
							Fix up user_ip replication commands 
							
						 
						
							2017-07-06 14:33:14 +01:00  
				
					
						
							
							
								 
						
							
							
								2c365f4723 
								
							
								 
							
						 
						
							
							
								
								Cache macaroon parse and validation  
							
							... 
							
							
							
							Turns out this can be quite expensive for requests, and is easily
cachable. We don't cache the lookup to the DB so invalidation still
works. 
							
						 
						
							2017-06-29 14:50:18 +01:00  
				
					
						
							
							
								 
						
							
							
								8c23221666 
								
							
								 
							
						 
						
							
							
								
								Fix up  
							
							
							
						 
						
							2017-06-27 15:53:45 +01:00  
				
					
						
							
							
								 
						
							
							
								ed3d0170d9 
								
							
								 
							
						 
						
							
							
								
								Batch upsert user ips  
							
							
							
						 
						
							2017-06-27 13:37:04 +01:00  
				
					
						
							
							
								 
						
							
							
								0185b75381 
								
							
								 
							
						 
						
							
							
								
								Change is_host_joined to use current_state table  
							
							... 
							
							
							
							This bypasses a bug where using the state groups to figure out if a host
is in a room sometimes errors if the servers isn't in the room. (For
example when the server rejected an invite to a remote room) 
							
						 
						
							2017-06-09 10:52:26 +01:00  
				
					
						
							
							
								 
						
							
							
								1a9255c12e 
								
							
								 
							
						 
						
							
							
								
								Use CodeMessageException subclass instead  
							
							... 
							
							
							
							Parse json errors from get_json client methods and throw special
errors. 
							
						 
						
							2017-04-25 19:30:55 +01:00  
				
					
						
							
							
								 
						
							
							
								566641a0b5 
								
							
								 
							
						 
						
							
							
								
								use jsonschema.FormatChecker for RoomID and UserID strings  
							
							... 
							
							
							
							* use a valid filter in rest/client/v2_alpha test
Signed-off-by: pik <alexander.maznev@gmail.com> 
							
						 
						
							2017-03-23 11:42:41 -03:00  
				
					
						
							
							
								 
						
							
							
								acafcf1c5b 
								
							
								 
							
						 
						
							
							
								
								Add valid filter tests, flake8, fix typo  
							
							... 
							
							
							
							Signed-off-by: pik <alexander.maznev@gmail.com> 
							
						 
						
							2017-03-23 11:42:10 -03:00  
				
					
						
							
							
								 
						
							
							
								e56c79c114 
								
							
								 
							
						 
						
							
							
								
								check_valid_filter using JSONSchema  
							
							... 
							
							
							
							* add invalid filter tests
Signed-off-by: pik <alexander.maznev@gmail.com> 
							
						 
						
							2017-03-23 11:42:07 -03:00  
				
					
						
							
							
								 
						
							
							
								19b9366d73 
								
							
								 
							
						 
						
							
							
								
								Fix a couple of logcontext leaks  
							
							... 
							
							
							
							Use preserve_fn to correctly manage the logcontexts around things we don't want
to yield on. 
							
						 
						
							2017-03-23 00:17:46 +00:00  
				
					
						
							
							
								 
						
							
							
								a8f96c63aa 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2017-03-15 16:01:01 +00:00  
				
					
						
							
							
								 
						
							
							
								e892457a03 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2017-03-15 15:01:39 +00:00  
				
					
						
							
							
								 
						
							
							
								6c82de5100 
								
							
								 
							
						 
						
							
							
								
								Format presence events on the edges instead of reformatting them multiple times  
							
							
							
						 
						
							2017-03-15 14:27:34 +00:00  
				
					
						
							
							
								 
						
							
							
								7827251daf 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1994  from matrix-org/dbkr/msisdn_signin_2  
							
							... 
							
							
							
							Phone number registration / login support v2 
							
						 
						
							2017-03-15 09:59:54 +00:00  
				
					
						
							
							
								 
						
							
							
								1d09586599 
								
							
								 
							
						 
						
							
							
								
								Address review comments  
							
							... 
							
							
							
							- don't blindly proxy all HTTPRequestExceptions
- log unexpected exceptions at error
- avoid `isinstance`
- improve docs on `from_http_response_exception` 
							
						 
						
							2017-03-14 14:15:37 +00:00  
				
					
						
							
							
								 
						
							
							
								7f237800e9 
								
							
								 
							
						 
						
							
							
								
								re-refactor exception heirarchy  
							
							... 
							
							
							
							Give CodeMessageException back its `msg` attribute, and use that to hold the
HTTP status message for HttpResponseException. 
							
						 
						
							2017-03-14 14:15:37 +00:00