summary refs log tree commit diff
path: root/scripts-dev/check_auth.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-02-16CommentErik Johnston1-1/+4
2017-02-16CommentErik Johnston1-7/+14
2017-02-16Store the default push actions in a more efficient mannerErik Johnston1-11/+40
2017-02-14Make kick & ban reasons workDavid Baker1-0/+5
We somehow specced APIs with reason strings, preserve the content in the events and even have the clients display them, but failed to actually pass the parameter through to the event content.
2017-02-14Fix bugs in the /keys/changes apiRichard van der Hoff3-11/+58
* `get_forward_extremeties_for_room` takes a numeric `stream_ordering`. We were passing a `RoomStreamToken`, which meant that it returned the *current* extremities, rather than those corresponding to the `from_token`. However: * `get_state_ids_for_events` required a second ('types') parameter; this meant that a `TypeError` was thrown and we ended up acting as though there was *no* prev state. * `get_state_ids_for_events` actually returns a map from event_id to state dictionary - just looking up the state keys in it again meant that we acted as though there was no prev state. We now check if each member's state has changed since *any* of the extremities. Also add/fix some comments.
2017-02-14Less aggressive timersErik Johnston1-2/+2
2017-02-14Aggregate event push actionsErik Johnston5-57/+340
2017-02-13Cache get_presence storageErik Johnston3-5/+15
2017-02-13Ordering is important on errbacks so add the cleanup func before creating an ↵Kegan Dougal1-7/+7
ObservableDeferred
2017-02-13Pop the txn from the map in case it has already been deleted somehowKegan Dougal1-1/+1
2017-02-13Don't cache errors at allKegan Dougal1-10/+9
2017-02-13http txns: Do not cache error responsesKegan Dougal1-1/+10
Previously we did. This meant that, amongst other errors, rate-limiting errors would be cached and prevent messages with that txn ID being sent.
2017-02-13Add db functions needed for room initial sync to slaveMark Haines2-0/+10
2017-02-13Use signedjson.sign instead of syutil.crypto.jsonsignAndrew Shadura1-1/+1
Functions from syutil.crypto.jsonsign are now available in signedjson, so use that instead of depending on syutil. Signed-off-by: Andrew Shadura <andrew@shadura.me>
2017-02-11Fix typo in config comments.Tyler Smith1-1/+1
Signed-off-by: Tyler Smith <tylersmith.me@gmail.com>
2017-02-09Update version and changelog github/release-v0.19.1 release-v0.19.1Erik Johnston2-1/+8
2017-02-08Update CAPTCHA_SETUP.rst X-Forwarded-For docsDaniel Dent1-3/+2
It looks like CAPTCHA_SETUP.rst contains information relevant to an old version of Synapse, but Synapse now has a different approach to configuring use of the X-Forwarded-For header.
2017-02-08Make None check explicitErik Johnston1-1/+1
2017-02-08Ignore new rejected events when working out forward extremeties.Erik Johnston1-9/+6
2017-02-08Remove a few aspirational but unused constantsDavid Baker1-3/+0
from the Kegan era
2017-02-04Bump changelog and version github/release-v0.19.0 release-v0.19.0Erik Johnston2-1/+7
2017-02-02Bump changelog and version v0.19.0-rc4Erik Johnston2-2/+8
2017-02-02Bump cache sizes for common membership queriesErik Johnston1-3/+3
2017-02-02Measure new device list stuffErik Johnston2-1/+6
2017-02-02Bump version and changelog v0.19.0-rc3Erik Johnston2-5/+14
2017-02-02Use new get_users_who_share_room_with_userErik Johnston1-11/+13
2017-02-02Fix replicationErik Johnston1-0/+3
2017-02-02sets aren't JSON serializableErik Johnston1-1/+1
2017-02-02CommentErik Johnston1-1/+4
2017-02-02Use stream_ordering_to_exterm for /keys/changesErik Johnston1-9/+9
2017-02-02CommentErik Johnston1-0/+2
2017-02-02CommentErik Johnston1-1/+2
2017-02-02Make presence.get_new_events a bit fasterErik Johnston4-29/+33
We do this by caching the set of users a user shares rooms with.
2017-02-02admin,storage: added more administrator functionalitiesMorteza Araby5-3/+502
administrators can now: - Set displayname of users - Update user avatars - Search for users by user_id - Browse all users in a paginated API - Reset user passwords - Deactivate users Helpers for doing paginated queries has also been added to storage Signed-off-by: Morteza Araby <morteza.araby@ericsson.com>
2017-02-02Update changelog v0.19.0-rc2Erik Johnston2-1/+7
2017-02-02Update changelog v0.19.0-rc1Erik Johnston1-1/+1
2017-02-02Fix email push in pusher workerErik Johnston8-57/+70
This was broken when device list updates were implemented, as Mailer could no longer instantiate an AuthHandler due to a dependency on federation sending.
2017-02-02Bump version and changelogErik Johnston2-1/+49
2017-02-01Be more agressive about purging old room event_push_actionsErik Johnston1-3/+8
2017-02-01Doc argsErik Johnston2-0/+11
2017-02-01CommentErik Johnston1-0/+3
2017-02-01Include newly joined users in /keys/changes APIErik Johnston3-5/+43
2017-02-01Correctly raise exceptions for ratelimitng. Ratelimit on 401Erik Johnston2-4/+6
2017-02-01Wake sync up for device changesErik Johnston1-1/+2
2017-02-01CommentErik Johnston1-1/+1
2017-02-01Add m.room.member type to queryErik Johnston1-1/+1
2017-02-01Add a small cache get_all_new_eventsErik Johnston1-0/+2
2017-02-01Up get_latest_event_ids_in_room cacheErik Johnston1-1/+1
2017-02-01CommentErik Johnston1-1/+12
2017-02-01Implement /keys/changesErik Johnston2-0/+54
2017-01-31Remote membership tests for replicationErik Johnston1-43/+0
This is because it now relies of the caches stream, which only works on postgres. We are trying to test with sqlite.
2017-01-31Only invalidate membership caches based on the cache streamErik Johnston4-41/+5
Before we completely invalidated get_users_in_room whenever we updated any current_state_events table. This was way too aggressive.
2017-01-31Remove explicit < 400 check as apparently this is confusingErik Johnston1-3/+1
2017-01-31Add an index to make membership queries fasterErik Johnston3-1/+26
2017-01-31CommentErik Johnston1-0/+2
2017-01-31CommentErik Johnston1-0/+4
2017-01-31Better handle 404 response for federation /send/Erik Johnston2-2/+14
2017-01-31Fix deletion of old sent devices correctlyErik Johnston1-5/+17
2017-01-31Only fetch with row ts and count > 1Erik Johnston1-1/+2
2017-01-31Fix clearing out old device list outbound pokesErik Johnston1-2/+7
2017-01-30Stream cache invalidations for room membership storage functionsErik Johnston1-2/+6
2017-01-30Don't have such a large cacheErik Johnston1-1/+1
2017-01-30Fix unit testsErik Johnston3-7/+15
2017-01-30Use DB cache of joined users for presenceErik Johnston1-3/+3
2017-01-30Noop device key changes if they're the sameErik Johnston3-15/+45
2017-01-30Fix queryErik Johnston1-1/+1
2017-01-30Use get_users_in_room and declare it iterableErik Johnston2-2/+2
2017-01-30Rename funcErik Johnston2-2/+2
2017-01-30Remove debug loggingErik Johnston1-1/+0
2017-01-30Clear out old destination pokes.Erik Johnston1-0/+42
2017-01-30Always use the latest stream_id, sent or unsentErik Johnston1-4/+4
2017-01-27Add ts column to device_lists_outbound_pokesErik Johnston2-1/+5
2017-01-27Hook device list updates to replicationErik Johnston7-29/+159
2017-01-27CommentErik Johnston1-0/+2
2017-01-27CommentErik Johnston1-0/+2
2017-01-27SQL param orderingErik Johnston1-1/+1
2017-01-27User if rather than forErik Johnston1-1/+4
2017-01-27Better nameErik Johnston2-2/+4
2017-01-27Remove unused paramErik Johnston1-2/+1
2017-01-26Fix unit testsErik Johnston1-0/+17
2017-01-26Fix on sqlite: use left rather than outer joinErik Johnston1-3/+3
2017-01-26Handle users leaving roomsErik Johnston2-1/+24
2017-01-26Add commentsErik Johnston4-7/+61
2017-01-26Implement device key caching over federationErik Johnston13-57/+381
2017-01-25Fix up sending of m.device_list_update edusErik Johnston3-80/+82
2017-01-25Add basic implementation of local device list changesErik Johnston14-39/+348
2017-01-24Don't clobber a displayname or avatar_url if provided by an m.room.member eventPaul "LeoNerd" Evans1-2/+4
2017-01-23TypoErik Johnston1-1/+1
2017-01-23Refactor to calculate state delta outside transactionErik Johnston1-87/+118
2017-01-20CommentsErik Johnston1-8/+19
2017-01-20Insert delta of current_state_events to be more efficientErik Johnston5-119/+58
2017-01-20SpellingErik Johnston1-1/+1
2017-01-20Update all call sites after renameErik Johnston1-1/+1
2017-01-20CommentsErik Johnston1-0/+11
2017-01-20Calculate the forward extremeties onceErik Johnston2-126/+92
2017-01-20fix doc for purge_media_cacheRichard van der Hoff1-5/+3
purge_media_cache takes its arg from a query-param, not the POST body, for some reason.
2017-01-20Derive current_state_events from state groupsErik Johnston4-99/+138
2017-01-20Make worker listener config backwards compatErik Johnston1-0/+10
2017-01-19Added default config for turn username and passwordMarvin Steadfast1-0/+5
2017-01-19Added username and password for turn serverMarvin Steadfast2-10/+20
It makes it possible to use a turn server that needs a username and password instead of a token.
2017-01-18Update LruCache size estimate on clearErik Johnston1-0/+2
2017-01-18Lowercase all email addresses before querying dbDavid Baker2-1/+12
Since we store all emails in the DB in lowercase (https://github.com/matrix-org/synapse/pull/1170)
2017-01-17Lower loading events log to DEBUGErik Johnston1-2/+2
2017-01-17Lower the not retrying host log line to debugErik Johnston1-1/+1
2017-01-17Change resolve_state_groups call site logging to DEBUGErik Johnston3-6/+6
2017-01-17Measure metrics of string_cacheErik Johnston1-3/+8
2017-01-17PEP8Erik Johnston1-1/+1
2017-01-17Only construct sets when necessaryMark Haines1-14/+19
2017-01-17Use better namesErik Johnston1-9/+7
2017-01-17Fix typo in return typeErik Johnston1-3/+2
2017-01-17Use better variable nameErik Johnston1-3/+3
2017-01-17Get state at event rather than for room in pushErik Johnston1-1/+1
2017-01-17Correctly handle case of rejected events in state resErik Johnston1-10/+16
2017-01-17Check event is in state_mapErik Johnston1-2/