summary refs log tree commit diff
path: root/synapse/crypto/resource (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-03-23Simplify intern_dictErik Johnston1-17/+10
2016-03-23Don't bother interning keys that are already internedErik Johnston1-3/+1
2016-03-23Intern all the thingsErik Johnston8-45/+97
2016-03-23Intern sender, event_id and room_id in eventsErik Johnston1-0/+5
2016-03-23Intern type and state_key on eventsErik Johnston1-0/+7
2016-03-23String internErik Johnston2-3/+17
2016-03-23Comment about weird SQLErik Johnston1-1/+3
2016-03-23SQLite and postgres doesn't share a true literalErik Johnston1-1/+1
2016-03-23Ensure all old public rooms have aliasesErik Johnston2-4/+26
2016-03-23Ensure published rooms have public join rulesErik Johnston1-0/+7
2016-03-23CommentErik Johnston1-0/+3
2016-03-23Don't cache events in get_recent_events_for_roomErik Johnston1-14/+19
2016-03-23Don't cache events in get_current_state_for_keyErik Johnston2-9/+11
2016-03-23Don't require alias in public room list.Erik Johnston1-14/+13
Rooms now no longer require an alias to be published. Also, changes the way we pull out state of each room to not require fetching all state events.
2016-03-23Make get_invites return RoomsForUserErik Johnston2-7/+5
2016-03-23Reduce cache sizeErik Johnston1-1/+1
2016-03-22Key StateHandler._state_cache off of state groupsErik Johnston1-40/+21
2016-03-22Make LruCache use a dedicated _Node classErik Johnston1-32/+41
2016-03-22Make StateHandler._state_cache only store event_ids.Erik Johnston2-7/+42
2016-03-22Measure StateHandler._resolve_eventsErik Johnston1-38/+40
2016-03-22Bump get_unread_event_push_actions_by_room_for_user cacheErik Johnston1-1/+1
2016-03-22Bump get_aliases_for_room cacheErik Johnston1-1/+1
2016-03-22Use get_users_in_room to count the number of room members rather than using ↵Mark Haines1-1/+3
read_receipts
2016-03-22Don't cache events in _state_group_cacheErik Johnston1-60/+48
Instead, simply cache the event ids, relying on the event cache to cache the actual events. The problem was that while the state groups cache was limited in the number of groups it could hold, each individual group could consist of thousands of events.
2016-03-22Doc stringErik Johnston1-0/+6
2016-03-22Make stateGroupCache honour CACHE_SIZE_FACTORErik Johnston1-1/+7
2016-03-22an invalide is something else...Matthew Hodgson1-1/+1
2016-03-21Remove unused backfilled parameter from persist_eventMark Haines3-42/+19
2016-03-21Add published room list edit APIErik Johnston4-4/+116
2016-03-21remove unused current_state variable from on_receive_pduMark Haines1-2/+0
2016-03-18Catch exceptions from EDU handlingErik Johnston1-1/+6
2016-03-18Don't assume existence of event_id in __str__Erik Johnston1-1/+3
2016-03-18Dedupe requested event list in _get_eventsErik Johnston1-14/+12
2016-03-18Yield on EDU handlingErik Johnston1-3/+4
2016-03-17Check canonical alias event existsErik Johnston1-1/+2
2016-03-17Remove another unused function from presenceMark Haines1-4/+0
2016-03-17Update aliases event after deletionErik Johnston2-7/+48
Attempt to update the appropriate `m.room.aliases` event after deleting an alias. This may fail due to the deleter not being in the room. Will also check if the canonical alias of the event is set to the deleted alias, and if so will attempt to delete it.
2016-03-17Remove dead code left over from presence changesMark Haines4-108/+0
2016-03-17Add option to definitions.py to search for functions a function refers toMark Haines1-1/+22
2016-03-16remove debug loggingDavid Baker1-3/+0
2016-03-16Unused importDavid Baker1-1/+0
2016-03-16Make registration idempotent, part 2: be idempotent if the client specifies ↵David Baker3-6/+42
a username.
2016-03-16pep8David Baker1-1/+2
2016-03-16time_msec()David Baker1-1/+1
2016-03-16string with symbols is a bit too symboly.David Baker1-1/+1
2016-03-16Replace other time.time().David Baker1-2/+1
2016-03-16Use hs get_clock instead of time.time()David Baker1-2/+2
2016-03-16take extra return val from check_auth in account tooDavid Baker1-1/+1
2016-03-16Fix testsDavid Baker1-4/+5
2016-03-16pep8 & remove debug loggingDavid Baker2-5/+6
2016-03-16Make registration idempotent: if you specify the same session, make it give ↵David Baker2-13/+74
you an access token for the user that was registered on previous uses of that session. Tweak the UI auth layer to not delete sessions when their auth has completed and hence expire themn so they don't hang around until server restart. Allow server-side data to be associated with UI auth sessions.
2016-03-16Clarify that we do have reset functionality via the ISRichard van der Hoff1-21/+20
2016-03-16Add a comment to offer a hint to an explanation for why we have a unique ↵Mark Haines1-0/+1
constraint on (app_id, pushkey, user_id)
2016-03-16Password reset docs and scriptRichard van der Hoff3-1/+59
Replace the bash/perl gen_password script with a python one, and write a note on how to use it.
2016-03-15Fix a couple of errors when deleting pushersMark Haines1-2/+2
2016-03-15Hook up adding a pusher to the notifier for replication.Mark Haines2-0/+12
2016-03-15Add replication stream for pushersMark Haines6-18/+107
2016-03-15Remove needless PreserveLoggingContextErik Johnston1-5/+4
2016-03-15Persist rejection of invites over federationErik Johnston1-1/+17
2016-03-15English v0.14.0-rc1Erik Johnston1-1/+1
2016-03-15Bump version and changelogErik Johnston2-1/+40
2016-03-14Add config to create guest account on 3pid inviteErik Johnston2-25/+36
Currently, when a 3pid invite request is sent to an identity server, it includes a provisioned guest access token. This allows the link in the, say, invite email to include the guest access token ensuring that the same account is used each time the link is clicked. This flow has a number of flaws, including when using different servers or servers that have guest access disabled. For now, we keep this implementation but hide it behind a config option until a better flow is implemented.
2016-03-14Return list, not generator.Erik Johnston1-3/+1
2016-03-14Fix regression where synapse checked whether push rules were valid JSON ↵Mark Haines2-6/+19
before the compatibility hack that handled clients sending invalid JSON
2016-03-11Thats not how transactions work.Erik Johnston1-13/+16
2016-03-11Use parse_json_object_from_request to parse JSON out of request bodiesMark Haines11-90/+49
2016-03-11Implement logoutErik Johnston3-14/+109
2016-03-11Fix SQL statementErik Johnston1-1/+1
2016-03-11more pep8David Baker1-1/+1
2016-03-11Make select more sensible when dseleting access tokens, rename pusher ↵David Baker3-7/+5
deletion to match access token deletion and make exception arg optional.
2016-03-11Delete old, unused methods and rename new one to just be ↵David Baker2-16/+3
`user_delete_access_tokens` with an `except_token_ids` argument doing what it says on the tin.
2016-03-11Dear PyCharm, please indent sensibly for me. Thx.David Baker2-3/+3
2016-03-11Fix cache invalidation so deleting access tokens (which we did when changing ↵David Baker4-17/+34
password) actually takes effect without HS restart. Reinstate the code to avoid logging out the session that changed the password, removed in 415c2f05491ce65a4fc34326519754cd1edd9c54
2016-03-11Make key client send a Host headerErik Johnston1-0/+3
2016-03-10Store appservice ID on registerDaniel Wagner-Hall2-7/+38
2016-03-10Update users table in a batched mannerErik Johnston1-9/+14
2016-03-10Flake8 fixblide1-6/+6
2016-03-10Register endpoint returns refresh_tokenblide2-17/+26
Guest registration still doesn't return refresh_token
2016-03-09Add commentErik Johnston1-0/+3
2016-03-09Return the correct token formErik Johnston1-1/+1
2016-03-09Use topological orders for initial sync timelineErik Johnston1-2/+2
2016-03-09Pin pysaml2 version to 3.xErik Johnston1-1/+1
This is due to the fact that `from saml2 import config` fails in version 4.x
2016-03-09Add a parse_json_object functionMark Haines11-121/+97
to deduplicate all the copy+pasted _parse_json functions. Also document the parse_.* functions.
2016-03-09Ensure integer is an integerErik Johnston1-1/+1
2016-03-09Reinstate coverage checks for integ testsRichard van der Hoff2-2/+4
2016-03-09Specify synapse-directory for integ testsRichard van der Hoff2-2/+6
2016-03-08Only build py27 tox env for integ testsRichard van der Hoff2-2/+2
2016-03-08Use sytest build scripts, rather than reinventing the wheelRichard van der Hoff2-52/+7
2016-03-08Idempotent-ise schema update scriptDaniel Wagner-Hall1-1/+5
If any ASes don't have an ID, the schema will fail, and then it will error when trying to add the column again.
2016-03-08Fix relative imports so they work in both py3 and py27Mark Haines17-22/+22
2016-03-08pep8David Baker1-2/+5
2016-03-08Encode unicode objects given to post_urlencode* otherwise urllib.urlencode ↵David Baker1-2/+12
chokes.
2016-03-07Use syntax that works on both py2.7 and py3Mark Haines8-10/+10
2016-03-07Fix testsDavid Baker3-20/+20
2016-03-07Send the user ID matching the guest access token, since there is no Matrix ↵David Baker2-2/+7
API to discover what user ID an access token is for.
2016-03-04Send history visibility on boundary changesErik Johnston1-0/+26
2016-03-04Prefill from the correct streamMark Haines1-1/+1
2016-03-04prefill the push rules stream change cacheMark Haines1-2/+9
2016-03-04s/stream_ordering/event_stream_ordering/ in pushMark Haines3-27/+31
2016-03-04/FNARG/dMark Haines1-1/+0
2016-03-04Always include kicks and bans in full /syncErik Johnston1-3/+9
2016-03-04SpellingErik Johnston1-1/+1
2016-03-04Fix unit testsMark Haines1-2/+2
2016-03-04Hook up the push rules stream to account_data in /syncMark Haines4-69/+85
2016-03-04Add profile information to invitesErik Johnston3-3/+17
2016-03-04tests/utils: added room_invite_state_types to test configPatrik Oldsberg1-0/+1
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-03-04config,handlers/_base: added homeserver config for what state is included in ↵Patrik Oldsberg3-7/+44
a room invite Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-03-04Make sure we add all invited members before returning from createRoomRichard van der Hoff1-1/+1
add a missing yield.
2016-03-03jenkins-*.sh: set -xRichard van der Hoff4-4/+12
Also move the options from the shebang line to the body of the script, so that they take effect even if somebody explicitly runs "bash jenkins.sh"
2016-03-03Pass whole requester to ratelimitingDaniel Wagner-Hall13-76/