summary refs log tree commit diff
path: root/scripts-dev/check_auth.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-02-17Some cleanupDaniel Wagner-Hall2-69/+61
I'm not particularly happy with the "action" switching, but there's no convenient way to defer the work that needs to happen after it, so... :(
2016-02-17Respond to federated invite with non-empty contextDaniel Wagner-Hall3-46/+65
Currently, we magically perform an extra database hit to find the inviter, and use this to guess where we should send the event. Instead, fill in a valid context, so that other callers relying on the context actually have one.
2016-02-17api/filtering: don't assume that event content will always be a dictPatrik Oldsberg1-1/+4
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-02-17client/v1/room: include event_id in response to state event PUT, in ↵Patrik Oldsberg1-2/+2
accordance with the spec Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-02-16Some cleanup, some TODOs, more to doDaniel Wagner-Hall1-68/+60
2016-02-16Fix typo in request validation for adding push rules.Mark Haines1-1/+1
2016-02-16Make adding push rules idempotentMark Haines1-82/+86
Also remove the **kwargs from the add_push_rule method. Fixes https://matrix.org/jira/browse/SYN-391
2016-02-16Some cleanupDaniel Wagner-Hall2-23/+30
2016-02-16Tidy? up room creation event sendingDaniel Wagner-Hall1-63/+72
2016-02-16Add commentDaniel Wagner-Hall1-1/+1
2016-02-15Branch off member and non member sendsDaniel Wagner-Hall5-74/+99
Unclean, needs tidy-up, but works
2016-02-15Simplify room creation codeDaniel Wagner-Hall2-52/+28
2016-02-15Simplify room creation codeDaniel Wagner-Hall2-55/+31
2016-02-15Use update_membership for profile updatesDaniel Wagner-Hall2-20/+12
2016-02-15Use update_membership to kick guestsDaniel Wagner-Hall2-16/+19
2016-02-15Reuse update_membership from /joinDaniel Wagner-Hall2-19/+14
2016-02-15Inline _do_local_membership_updateDaniel Wagner-Hall1-18/+7
2016-02-15Inline _do_join as it now only has one callerDaniel Wagner-Hall1-48/+47
Also, consistently apply rate limiting. Again, ugly, but a step in the right direction.
2016-02-15Merge implementation of /join by alias or IDDaniel Wagner-Hall5-70/+71
This code is kind of rough (passing the remote servers down a long chain), but is a step towards improvement.
2016-02-15Merge some room joining codepathsDaniel Wagner-Hall2-5/+11
Force joining by alias to go through the send_membership_event checks, rather than bypassing them straight into _do_join. This is the first of many stages of cleanup.
2016-02-12Revert "Merge two of the room join codepaths"Daniel Wagner-Hall5-73/+69
This reverts commit cf81375b94c4763766440471e632fc4b103450ab. It subtly violates a guest joining auth check
2016-02-12Merge two of the room join codepathsDaniel Wagner-Hall5-69/+73
There's at least one more to merge in. Side-effects: * Stop reporting None as displayname and avatar_url in some cases * Joining a room by alias populates guest-ness in join event * Remove unspec'd PUT version of /join/<room_id_or_alias> which has not been called on matrix.org according to logs * Stop recording access_token_id on /join/room_id - currently we don't record it on /join/room_alias; I can try to thread it through at some point.
2016-02-12Catch the exceptions thrown by twisted when you write to a closed connectionMark Haines5-11/+33
2016-02-11Enforce user_id exclusivity for AS registrationsDaniel Wagner-Hall1-5/+12
This whole set of checks is kind of an ugly mess, which I may clean up at some point, but for now let's be correct.
2016-02-11Bump version and changelogErik Johnston2-1/+6
2016-02-11Fix SYN-627, events are in incorrect room in /syncErik Johnston1-1/+1
2016-02-11Bump version and changelogErik Johnston2-1/+7
2016-02-11Return events in correct order for /eventsErik Johnston2-8/+12
2016-02-11Add some paranoia loggingErik Johnston1-0/+10
2016-02-100.13.1 v0.13.1Matthew Hodgson1-1/+1
2016-02-10bump for 0.13.1Matthew Hodgson1-0/+7
2016-02-10try to bump syweb to 0.6.8Matthew Hodgson1-1/+1
2016-02-10Update CHANGESErik Johnston1-2/+4
2016-02-10Bump version and changelogErik Johnston2-1/+23
2016-02-10Batch fetch _get_state_groups_from_groupsErik Johnston1-32/+34
2016-02-10Use _simple_select_many for _get_state_group_for_eventsErik Johnston2-17/+11
2016-02-10Only calculate initial sync for 10 rooms at a timeErik Johnston1-24/+29
This helps to ensure we don't completely starve other requests.
2016-02-10Remove commentErik Johnston1-1/+1
2016-02-10s/parent_context/previous_context/Erik Johnston1-9/+9
2016-02-10Set parent context on instansiationErik Johnston1-2/+7
2016-02-10Rename functionsErik Johnston2-4/+4
2016-02-09TypoErik Johnston1-1/+1
2016-02-09Atomically persit push actions when we persist the eventErik Johnston6-65/+49
2016-02-09Pass in current state to push action handlerErik Johnston3-27/+20
2016-02-09Fix testErik Johnston1-9/+1
2016-02-09Fix testErik Johnston1-3/+4
2016-02-09Change a log from debug to infoErik Johnston1-1/+1
2016-02-09Remove dead codeErik Johnston1-12/+0
2016-02-09Invalidate get_last_receipt_event_id_for_user cacheErik Johnston1-0/+5
2016-02-09Don't load all ephemeral state for a room on every syncErik Johnston2-14/+20
2016-02-09Fix unit testsErik Johnston2-5/+9
2016-02-09Remove pyc files before running testsDaniel Wagner-Hall1-1/+1
2016-02-09Revert "Reject additional path segments"Daniel Wagner-Hall3-6/+6
This reverts commit 1d19a5ec0fff73af9cee8c21118020b31be47379. iOS Console is apparently relying on these paths.
2016-02-09Measure some /sync related thingsErik Johnston2-150/+162
2016-02-09Revert to putting it around the entire blockErik Johnston1-124/+124
2016-02-09Don't create new logging contextErik Johnston1-12/+15
2016-02-09Don't bother copying records on parent contextErik Johnston1-8/+0
2016-02-09Fix bug in util.metrics.MeasureErik Johnston1-1/+3
2016-02-09Create new context when measuringErik Johnston1-2/+5
2016-02-09Don't measure across event stream call, as it lasts for a long time.Erik Johnston1-124/+124
2016-02-09Change logcontext warns to debugErik Johnston1-3/+3
2016-02-08Derive macaroon_secret_key from signing key.Erik Johnston2-16/+30
Unfortunately, there are people that are running synapse without a `macaroon_sercret_key` set. Mandating they set one is a good solution, except that breaking auto upgrades is annoying.
2016-02-08Fix up logcontextsErik Johnston31-229/+356
2016-02-08Add metrics to pushersErik Johnston3-31/+149
2016-02-08Reject additional path segmentsDaniel Wagner-Hall3-6/+6
2016-02-05Report the v1 and v2 patterns separatelyMark Haines1-4/+12