summary refs log tree commit diff
path: root/demo (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-11-06default config: blacklist more internal ipsEuan Kemp1-0/+2
2016-11-04CommentErik Johnston1-0/+1
2016-11-04Remove unused but buggy functionErik Johnston1-11/+1
2016-11-03Fix copypasto error in metric rename table in docsPaul "LeoNerd" Evans1-4/+4
2016-11-03Rename the python-specific metrics now the docs claim that we have donePaul "LeoNerd" Evans1-7/+9
2016-11-03Since we don't export per-filetype fd counts any more, delete all the code ↵Paul "LeoNerd" Evans1-36/+4
related to that too
2016-11-03Remove now-unused 'resource' importPaul "LeoNerd" Evans1-8/+0
2016-11-03Now we have new-style metrics don't bother exporting legacy-named process onesPaul "LeoNerd" Evans1-16/+1
2016-11-03Remove spurious commentErik Johnston1-2/+2
2016-11-03Replace postgres GIN with GISTErik Johnston3-1/+45
This is because GIN can be slow to write too, especially when the table gets large.
2016-11-03Don't error on non-ascii passwordsDavid Baker1-1/+1
2016-11-02Set CORs headers on responses from the media repoMark Haines3-7/+22
2016-11-01Bump version and changelogErik Johnston2-1/+7
2016-11-01Continue to clean up received_transactionsErik Johnston1-0/+14
2016-10-31Removed unused stuffErik Johnston1-163/+3
2016-10-31Increase batching of sent transaction insertsErik Johnston1-1/+1
This should further reduce the number of individual inserts, transactions and updates that are required for keeping sent_transactions up to date.
2016-10-31Add details of renamed metricsPaul "LeoNerd" Evans1-0/+34
2016-10-28Remove long-deprecated instructions about promethesus console; also fix for ↵Paul "LeoNerd" Evans1-33/+8
modern config file format
2016-10-28Changelog formattting v0.18.2-rc5Erik Johnston1-0/+1
2016-10-28Bump changelog and versionMark Haines2-1/+8
2016-10-27Set up the process collector during metrics __init__; that way all ↵Paul "LeoNerd" Evans2-2/+3
split-process workers have it
2016-10-27Pass the Metrics group into the process collector instead of having it find ↵Paul "LeoNerd" Evans2-8/+4
its own one; this avoids it needing to import from synapse.metrics
2016-10-27Allow creation of a 'subspace' within a Metrics object, returning another onePaul "LeoNerd" Evans1-0/+3
2016-10-27Bump changelog and version v0.18.2-rc4Erik Johnston2-1/+10
2016-10-27Use most recently added binding, not most recently seen user.Erik Johnston1-19/+11
2016-10-27Fix user_threepids schema deltaErik Johnston1-1/+38
The delta `37/user_threepids.sql` aimed to update all the email addresses to be lower case, however duplicate emails may exist in the table already. This commit adds a step where the delta moves the duplicate emails to a new `medium` `email_old`. Only the most recently used account keeps the binding intact. We move rather than delete so that we retain some record of which emails were associated with which account.
2016-10-27Update changelog v0.18.2-rc3Erik Johnston1-0/+1
2016-10-27Bump changelog and versionErik Johnston2-2/+8
2016-10-25Fixup change log v0.18.2-rc2Erik Johnston1-2/+2
2016-10-25Bump version and changelogErik Johnston2-1/+20
2016-10-24Fix infinite typing bugErik Johnston1-2/+10
There's a bug somewhere that causes typing notifications to not be timed out properly. By adding a paranoia timer and using correct inequalities notifications should stop being stuck, even if it the root cause hasn't been fixed.
2016-10-24Actually use the new functionErik Johnston1-1/+1
2016-10-24Fix incredubly slow back pagination queryErik Johnston4-12/+48
If a client didn't specify a from token when paginating backwards synapse would attempt to query the (global) maximum topological token. This a) doesn't make much sense since they're room specific and b) there are no indices that lets postgres do this efficiently.
2016-10-20StyleLuke Barnard1-2/+3
2016-10-20Closing brace on following lineLuke Barnard1-1/+2
2016-10-20as_user->app_service, less redundant comments, better positioned commentsLuke Barnard3-14/+11
2016-10-20flake8Luke Barnard1-1/+3
2016-10-20Use real AS object by passing it through the requesterLuke Barnard3-18/+15
This means synapse does not have to check if the AS is interested, but instead it effectively re-uses what it already knew about the requesting user
2016-10-19Split callback metric lambda functions down onto their own lines to keep ↵Paul "LeoNerd" Evans1-8/+16
line lengths under 90
2016-10-19Adjust code for <100 char line limitPaul "LeoNerd" Evans1-1/+1
2016-10-19Cut the raw /proc/self/stat line up into named fields at collection timePaul "LeoNerd" Evans1-8/+22
2016-10-19Move the process metrics collector code into its own filePaul "LeoNerd" Evans3-141/+161
2016-10-19A slightly neater way to manage metric collector functionsPaul "LeoNerd" Evans1-2/+8
2016-10-19appease pep8Paul "LeoNerd" Evans1-3/+5
2016-10-19Also guard /proc/self/fds-related code with a suitable psuedoconstantPaul "LeoNerd" Evans1-3/+5
2016-10-19Guard registration of process-wide metrics by existence of the requisite ↵Paul "LeoNerd" Evans1-45/+50
/proc entries
2016-10-19Add standard process_start_time_seconds metricPaul "LeoNerd" Evans1-0/+15
2016-10-19Add standard process_max_fds metricPaul "LeoNerd" Evans1-0/+13
2016-10-19Add standard process_open_fds metricPaul "LeoNerd" Evans1-20/+29
2016-10-19Add standard process_*_memory_bytes metricsPaul "LeoNerd" Evans1-0/+8
2016-10-19Use /proc/self/stat to generate the new process_cpu_*_seconds_total metricsPaul "LeoNerd" Evans1-4/+12
2016-10-19Export CPU usage metrics also under prometheus-standard metric namePaul "LeoNerd" Evans1-0/+15
2016-10-19Callback metric values might not just be integers - allow floatsPaul "LeoNerd" Evans1-2/+2
2016-10-19CommentErik Johnston1-0/+3
2016-10-19Latest delta is now 37David Baker1-0/+0
2016-10-19Convert emails to lowercase when storingDavid Baker2-1/+20
And db migration sql to convert existing addresses.
2016-10-19Check whether to ratelimit sooner to avoid workErik Johnston2-6/+22
2016-10-18Refactor test_filter to use real DataStorepik3-46/+83
* add tests for filter api errors
2016-10-18Allow Configurable Rate Limiting Per ASLuke Barnard3-1/+26
This adds a flag loaded from the registration file of an AS that will determine whether or not its users are rate limited (by ratelimit in _base.py). Needed for IRC bridge reasons - see https://github.com/matrix-org/matrix-appservice-irc/issues/240.
2016-10-18Fix push notifications for a single unread messageErik Johnston1-1/+1
2016-10-18Reduce redundant database work in email pusherErik Johnston1-0/+4
Update the last stream ordering if the `get_unread_push_actions_for_user_in_range_for_email` returns no new push actions. This reduces the range that it needs to check next iteration.
2016-10-17Update changelog v0.18.2-rc1Erik Johnston1-4/+7
2016-10-17Bump version and changelogErik Johnston2-2/+26
2016-10-17Bump schema versionErik Johnston2-1/+1
2016-10-17Remove TODOErik Johnston1-2/+0
2016-10-17Drop some unused indicesErik Johnston3-17/+83
2016-10-14Fix MockHttpRequest always returning M_UNKNOWN errcode in testingpik1-1/+1
2016-10-14Revert part of 6207399David Baker1-20/+10
older sqlite doesn't support indexes on expressions, lets just store things lowercase in the db
2016-10-14Error codes for filtersAlexander Maznev2-7/+16
* add tests Signed-off-by: Alexander Maznev <alexander.maznev@gmail.com>
2016-10-14Make password reset email field case insensitiveDavid Baker2-10/+36
2016-10-13Fix email push notifs being droppedErik Johnston1-14/+25
A lot of email push notifications were failing to be sent due to an exception being thrown along one of the (many) paths. This was due to a change where we moved from pulling out the full state for each room, but rather pulled out the event ids for the state and separately loaded the full events when needed.
2016-10-12Handle delete device requests with no bodyRichard van der Hoff1-2/+11
We should probably return a 401 rather than a 400 for existing clients that don't know they have to do the UIA dance to delete a device.
2016-10-12User-interactive auth on delete deviceRichard van der Hoff1-5/+11
2016-10-12Explain how long the servers can cache the TLS fingerprints forMark Haines1-3/+4
2016-10-12Improve comment formattingMark Haines2-4/+7
2016-10-11Add config option for adding additional TLS fingerprintsMark Haines2-12/+41
2016-10-11Fix check of wrong variableErik Johnston1-1/+1
2016-10-11Work around email-spamming Riot bugRichard van der Hoff1-3/+14
5d9546f9 introduced a change to synapse behaviour, in that failures in the interactive-auth process would return the flows and params data as well as an error code (as specced in https://github.com/matrix-org/matrix-doc/pull/397). That change exposed a bug in Riot which would make it request a new validation token (and send a new email) each time it got a 401 with a `flows` parameter (see https://github.com/vector-im/vector-web/issues/2447 and the fix at https://github.com/matrix-org/matrix-react-sdk/pull/510). To preserve compatibility with broken versions of Riot, grandfather in the old behaviour for the email validation stage.
2016-10-08Use sys.executable instead of hardcoded python. fixes #1161Pedro Larroy1-1/+1
2016-10-07Interactive Auth: Return 401 from for incorrect passwordRichard van der Hoff1-32/+52
This requires a bit of fettling, because I want to return a helpful error message too but we don't want to distinguish between unknown user and invalid password. To avoid hardcoding the error message into 15 places in the code, I've had to refactor a few methods to return None instead of throwing. Fixes https://matrix.org/jira/browse/SYN-744
2016-10-06rest/client/v1/register: use the correct requester in createUserPatrik Oldsberg4-31/+22
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-10-06window.postmessage for Interactive Auth fallbackRichard van der Hoff1-1/+3
If you're a webapp running the fallback in an iframe, you can't set set a window.onAuthDone function. Let's post a message back to window.opener instead.
2016-10-06handlers/profile: added admin override for set_displayname and set_avatar_urlPatrik Oldsberg1-4/+4
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-10-06handers: do not ratelimit app service sendersPatrik Oldsberg1-1/+7
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-10-06storage/appservice: make appservice methods only relying on the cache ↵Patrik Oldsberg10-41/+31
synchronous
2016-10-05Bump changelog and versionErik Johnston2-1/+7
2016-10-04Add Riot brand to email notifsDavid Baker1-1/+3
2016-10-03Implement pluggable password authErik Johnston7-401/+486
Allows delegating the password auth to an external module. This also moves the LDAP auth to using this system, allowing it to be removed from the synapse tree entirely in the future.
2016-09-30Update changelog v0.18.1-rc1Erik Johnston1-0/+2
2016-09-30api/auth: fix for not being allowed to set your own state_keyPatrik Oldsberg1-10/+0
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-09-30Bump version and changelogErik Johnston2-1/+22
2016-09-29Restructure ldap authenticationMartin Weinelt1-87/+192
- properly parse return values of ldap bind() calls - externalize authentication methods - change control flow to be more error-resilient - unbind ldap connections in many places - improve log messages and loglevels
2016-09-27Fix background reindex of origin_server_tsErik Johnston1-15/+29
The storage function `_get_events_txn` was removed everywhere except from this background reindex. The function was removed due to it being (almost) completely unused while also being large and complex. Therefore, instead of resurrecting `_get_events_txn` we manually reimplement the bits that are needed directly.
2016-09-27Update port script with recently added tablesErik Johnston1-0/+9
This also fixes a bug where the port script would explode when it encountered the newly added boolean column `public_room_list_stream.visibility`
2016-09-27Remove duplicationErik Johnston1-31/+19
2016-09-27Remove unused variableErik Johnston1-3/+0
2016-09-26Fix perf of fetching state in SQLiteErik Johnston1-20/+41
2016-09-25typoMatthew Hodgson1-1/+1
2016-09-23Reduce DB hits for replicationErik Johnston6-45/+115
Some streams will occaisonally advance their positions without actually having any new rows to send over federation. Currently this means that the token will not advance on the workers, leading to them repeatedly sending a slightly out of date token. This in turns requires the master to hit the DB to check if there are any new rows, rather than hitting the no op logic where we check if the given token matches the current token. This commit changes the API to always return an entry if the position for a stream has changed, allowing workers to advance their tokens correctly.
2016-09-23Move FEDERATION_PING_INTERVAL timer. Update log lineErik Johnston1-8/+10
2016-09-23Time out typing over federationErik Johnston6-83/+120
2016-09-22Update commentsErik Johnston1-2/+3
2016-09-22Add commentsErik Johnston2-0/+6
2016-09-22Shuffle things around to make unit tests workErik Johnston2-15/+16
2016-09-22Allow invites via 3pid to bypass sender sig checkErik Johnston2-7/+22
When a server sends a third party invite another server may be the one that the inviting user registers with. In this case it is that remote server that will issue an actual invitation, and wants to do it "in the name of" the original invitee. However, the new proper invite will not be signed by the original server, and thus other servers would reject the invite if it was seen as coming from the original user. To fix this, a special case has been added to the auth rules whereby another server can send an invite "in the name of" another server's user, so long as that user had previously issued a third party invite that is now being accepted.
2016-09-21Match against event_id, rather than room_idErik Johnston1-1/+1
2016-09-21Remove spurious AS clauseErik Johnston1-1/+1
2016-09-21Update correct tableErik Johnston1-6/+10
2016-09-21Readd entries to public_room_list_stream that were deletedErik Johnston2-1/+23
2016-09-21Fix _delete_old_forward_extrem_cache queryErik Johnston1-5/+4
2016-09-21Add total_room_count_estimate to /publicRoomsErik Johnston1-0/+3
2016-09-21Support /initialSync in synchrotron workerErik Johnston6-383/+461
2016-09-19Bump version and changelogErik Johnston2-3/+16
2016-09-19_id field must uniquely identify different conditionsErik Johnston1-2/+2
2016-09-17proposal for notifying on e2e eventsMatthew Hodgson1-0/+49
2016-09-17PEP8Erik Johnston1-1/+1
2016-09-17Handle fact that _generate_room_entry may not return a room entryErik Johnston1-12/+25
2016-09-17Enable guest access to POST /publicRoomsErik Johnston1-2/+2
2016-09-17SpellingErik Johnston1-1/+1
2016-09-17Fix and clean up publicRooms paginationErik Johnston1-110/+123
2016-09-17mention client_reader workerMatthew Hodgson1-0/+1
2016-09-17fix logger for client_reader workerMatthew Hodgson1-1/+1
2016-09-16Make public room search case insensitiveDavid Baker1-4/+4
2016-09-16Update changelog v0.18.0-rc1Erik Johnston1-2/+3
2016-09-16Update changelog and bump versionErik Johnston2-1/+41
2016-09-16Fix public room pagination for client_reader appErik Johnston1-0/+1
2016-09-16CommentErik Johnston1-0/+2
2016-09-16Make POST /publicRooms require authErik Johnston1-2/+1
2016-09-16CommentErik Johnston1-0/+2
2016-09-16Add remote reoom cacheErik Johnston1-2/+23
2016-09-16Support filtering remote room listsErik Johnston3-6/+18
2016-09-16Filter remote rooms lists locallyErik Johnston2-11/+25
2016-09-16Don't cache searched in /publicRoomsErik Johnston1-1/+5
2016-09-16Add new storage function to slave storeErik Johnston1-0/+1
2016-09-15Add very basic filter API to /publicRoomsErik Johnston1-5/+18
2016-09-15Change the way we calculate new_limit in /publicRooms and add POST APIErik Johnston2-15/+62
2016-09-15Handling expiring stream extrems correctly.Erik Johnston2-3/+22
2016-09-15Change get_pos_of_last_change to return upper boundErik Johnston2-6/+6
2016-09-15Enable state caches on workersErik Johnston6-0/+6
2016-09-15Use stream_change cache to make get_forward_extremeties_for_room cache more ↵Erik Johnston3-2/+19
effective
2016-09-15Add cache to get_forward_extremeties_for_roomErik Johnston2-1/+2
2016-09-15Remove default public rooms limitErik Johnston1-1/+1
2016-09-15By default limit /publicRooms to 100 entriesErik Johnston1-1/+1
2016-09-15Stream public room changes down replicationErik Johnston4-1/+74
2016-09-15Base public room list off of public_rooms streamErik Johnston2-7/+79
2016-09-15Pass since/from parameters over federationErik Johnston6-57/+63
2016-09-15Allow paginating both forwards and backwardsErik Johnston2-24/+65