summary refs log tree commit diff
path: root/changelog.d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add news fileHubert Chathi2019-10-221-0/+1
|
* Merge pull request #5726 from matrix-org/uhoreg/e2e_cross-signing2-part2Hubert Chathi2019-10-221-0/+1
|\ | | | | Cross-signing [3/4] -- uploading signatures edition
| * Add changelog entryHubert Chathi2019-10-181-0/+1
| | | | | | | | ... again? How did you make it disappear, git?
* | Fix demo script on ipv6-supported boxes (#6229)Andrew Morgan2019-10-221-0/+1
| | | | | | The synapse demo was a bit flakey in terms of supporting federation. It turns out that if your computer resolved `localhost` to `::1` instead of `127.0.0.1`, the built-in federation blacklist specified in `start.sh` would still block it, since it contained an entry for `::/127`. Removing this no longer prevents Synapse from contacting `::1`, federation works again on these boxes.
* | Delete format_tap.py (#6219)Andrew Morgan2019-10-191-0/+1
| | | | | | | | | | | | | | * Delete format_tap.py This python implementation of a tap formatting library for buildkite has been replaced with a perl implementation as part of the matrix-org/sytest repo, which is specific to sytest's language, not that of any one homeserver's.
* | Remove Auth.check method (#6217)Richard van der Hoff2019-10-181-0/+1
|/ | | This method was somewhat redundant, and confusing.
* Merge branch 'uhoreg/e2e_cross-signing_merged' into developHubert Chathi2019-10-182-0/+5
|\
| * Merge branch 'develop' into uhoreg/e2e_cross-signing_mergedHubert Chathi2019-10-18113-66/+47
| |\
| * | add note about database upgradeHubert Chathi2019-10-181-1/+4
| | |
| * | Merge branch 'develop' into uhoreg/e2e_cross-signing_mergedHubert Chathi2019-09-0719-0/+19
| |\ \
| * \ \ Merge branch 'develop' into cross-signing_keysHubert Chathi2019-09-0416-1/+15
| |\ \ \
| * \ \ \ Merge branch 'uhoreg/e2e_cross-signing_merged' into cross-signing_keysHubert Chathi2019-08-2871-38/+33
| |\ \ \ \
| | * \ \ \ Merge branch 'develop' into uhoreg/e2e_cross-signing_mergedHubert Chathi2019-08-2886-53/+33
| | |\ \ \ \
| | * | | | | Cross-signing [1/4] -- hidden devices (#5759)Hubert Chathi2019-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow devices to be marked as "hidden" This is a prerequisite for cross-signing, as it allows us to create other things that live within the device namespace, so they can be used for signatures.
| * | | | | | fix formattingHubert Chathi2019-08-011-1/+1
| | | | | | |
| * | | | | | add changelogHubert Chathi2019-08-011-0/+1
| | | | | | |
| * | | | | | Merge branch 'develop' into cross-signing_hiddenHubert Chathi2019-07-3081-54/+30
| |\ \ \ \ \ \
| * | | | | | | add changelog fileHubert Chathi2019-07-301-0/+1
| | | | | | | |
* | | | | | | | Merge remote-tracking branch 'origin/develop' into rav/event_auth/1Richard van der Hoff2019-10-184-0/+4
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix logging config for the docker image (#6197)Richard van der Hoff2019-10-181-0/+1
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out that loggers that are instantiated before the config is loaded get turned off. Also bring the logging config that is generated by --generate-config into line. Fixes #6194.
| * | | | | | | Merge pull request #6196 from matrix-org/erikj/awaitErik Johnston2019-10-181-0/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Move rest/admin to use async/await.
| | * | | | | | | NewsfileErik Johnston2019-10-111-0/+1
| | | | | | | | |
| * | | | | | | | Add missing BOOLEAN_COLUMNs to synapse_port_db (#6216)Bart Noordervliet2019-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small fix to synapse_port_db to be able to convert from database schema v56.
| * | | | | | | | Fix presence timeouts when synchrotron restarts. (#6212)Erik Johnston2019-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix presence timeouts when synchrotron restarts. Handling timeouts would fail if there was an external process that had timed out, e.g. a synchrotron restarting. This was due to a couple of variable name typoes. Fixes #3715.
* | | | | | | | | Merge remote-tracking branch 'origin/develop' into rav/event_auth/1Richard van der Hoff2019-10-1810-1/+9
|\| | | | | | | |
| * | | | | | | | Remove dead changelog fileRichard van der Hoff2019-10-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of 1.4.1
| * | | | | | | | Fix up changelogsRichard van der Hoff2019-10-171-0/+1
| | | | | | | | |
| * | | | | | | | Merge pull request #6193 from matrix-org/uhoreg/interpret_device_key_in_storageHubert Chathi2019-10-111-0/+1
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | make storage layer in charge of interpreting the device key data
| | * | | | | | | | add changelogHubert Chathi2019-10-101-0/+1
| | | | | | | | | |
| * | | | | | | | | Merge pull request #6189 from matrix-org/uhoreg/e2e_backup_optional_versionHubert Chathi2019-10-111-0/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | make version optional in body of e2e backup version update
| | * | | | | | | | | add changelogHubert Chathi2019-10-091-0/+1
| | |/ / / / / / / /
| * | | | | | | | | Merge pull request #6195 from matrix-org/erikj/opentracing_preview_urlErik Johnston2019-10-111-0/+1
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | Trace non-JSON APIs, /media, /key etc
| | * | | | | | | | NewsfileErik Johnston2019-10-111-0/+1
| | | | | | | | | |
| * | | | | | | | | cas: support setting display name (#6114)Valérian Rousset2019-10-111-0/+1
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | Now, the CAS server can return an attribute stating what's the desired displayname, instead of using the username directly.
| * | | | | | | | Fix MAU reaping where reserved users are specified. (#6168)Neil Johnson2019-10-111-0/+1
| | | | | | | | |
| * | | | | | | | Merge pull request #6156 from matrix-org/erikj/postgres_anyErik Johnston2019-10-101-0/+1
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Use Postgres ANY for selecting many values.
| | * \ \ \ \ \ \ \ Merge branch 'develop' of github.com:matrix-org/synapse into erikj/postgres_anyErik Johnston2019-10-102-0/+2
| | |\ \ \ \ \ \ \ \
| | * | | | | | | | | NewsfileErik Johnston2019-10-101-0/+1
| | | | | | | | | | |
| * | | | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-10-102-0/+2
| |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | erikj/disable_sql_bytes
| | * | | | | | | | | Fix python packagingRichard van der Hoff2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... after it got borked by #6081
| * | | | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-10-1035-1/+35
| |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | erikj/disable_sql_bytes
| * | | | | | | | | | NewsfileErik Johnston2019-10-091-0/+1
| | | | | | | | | | |
* | | | | | | | | | | changelogRichard van der Hoff2019-10-171-0/+1
| |_|/ / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge pull request #6127 from matrix-org/erikj/patch_innerErik Johnston2019-10-101-0/+1
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | Add more log context checks when patching inlineCallbacks
| * | | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/patch_innerErik Johnston2019-10-104-0/+4
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | NewsfileErik Johnston2019-10-101-0/+1
| | |_|/ / / / / / / | |/| | | | | | | |
* | | | | | | | | | Add domain validation when creating room with list of invitees (#6121)werner2912019-10-101-0/+1
| | | | | | | | | |
* | | | | | | | | | before fulfilling a group invite,check if user is already joined/invited (#3436)Michael Telatynski2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes vector-im/riot-web#5645
* | | | | | | | | | send 404 as http-status when filter-id is unknown to the server (#2380)krombel2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixed the weirdness of 400 vs 404 as http status code in the case the filter id is not known by the server. As e.g. matrix-js-sdk expects 404 to catch this situation this leads to unwanted behaviour.
* | | | | | | | | | Add snapcraft packaging information (#6084)James2019-10-101-0/+1
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Fix races in room stats (and other) updates. (#6187)Richard van der Hoff2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hopefully this will fix the occasional failures we were seeing in the room directory. The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8. We can solve this easily by only processing up to the stream_id where we know all events have been persisted.
* | | | | | | | | Rewrite the user_filter migration again (#6184)Richard van der Hoff2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | you can't plausibly ALTER TABLE in sqlite, so we create the new table with the right schema to start with.
* | | | | | | | | Move tag/push rules room upgrade checking ealier (#6155)Andrew Morgan2019-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that _local_membership_update doesn't run when you join a new, remote room. It only runs if you're joining a room that your server already knows about. This would explain #4703 and #5295 and why the transfer would work in testing and some rooms, but not others. This would especially hit single-user homeservers. The check has been moved to right after the room has been joined, and works much more reliably. (Though it may still be a bit awkward of a place).
* | | | | | | | | Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-101-0/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #6185 from matrix-org/erikj/fix_censored_evnetsErik Johnston2019-10-091-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix inserting bytes as text in `censor_redactions`
| * | | | | | | | Update changelog.d/6185.bugfixErik Johnston2019-10-091-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
| * | | | | | | NewsfileErik Johnston2019-10-081-0/+1
| | | | | | | |
* | | | | | | | Merge pull request #6178 from matrix-org/babolivier/factor_out_bg_updatesBrendan Abolivier2019-10-091-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Factor out backgroung updates
| * | | | | | | | ChangelogBrendan Abolivier2019-10-071-0/+1
| | | | | | | | |
* | | | | | | | | add M_TOO_LARGE error code for uploading a too large file (#6151)Anshul Angaria2019-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #6109
* | | | | | | | | Remove unused public room list timeout param (#6179)Andrew Morgan2019-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused public room list timeout param * Add changelog
* | | | | | | | | Fix /federation/v1/state for recent room versions (#6170)Richard van der Hoff2019-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix /federation/v1/state for recent room versions Turns out this endpoint was completely broken for v3 rooms. Hopefully this re-signing code is irrelevant nowadays anyway.
* | | | | | | | | fix changelogRichard van der Hoff2019-10-071-1/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #6161 from matrix-org/erikj/dont_regen_user_id_on_failureErik Johnston2019-10-071-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Don't regenerate numeric user ID if registration fails.
| * | | | | | | | | Fixup newsfileErik Johnston2019-10-032-1/+1
| | | | | | | | | |
| * | | | | | | | | NewsfileErik Johnston2019-10-031-0/+1
| | | | | | | | | |
* | | | | | | | | | Log responder we are using. (#6139)Michael Kaye2019-10-071-0/+1
| |/ / / / / / / / |/| | | | | | | | | | | | | | | | | This prevents us logging "Responding to media request with responder %s".
* | | | | | | | | Fix changelog for PR #6175Brendan Abolivier2019-10-072-1/+1
| | | | | | | | |
* | | | | | | | | add some logging to the rooms stats updates, to try to track down a flaky ↵Richard van der Hoff2019-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test (#6167)
* | | | | | | | | Merge pull request #6175 from matrix-org/babolivier/fix_unique_user_filter_indexBrendan Abolivier2019-10-071-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix unique_user_filter_index schema update
| * | | | | | | | | ChangelogBrendan Abolivier2019-10-071-0/+1
| | | | | | | | | |
* | | | | | | | | | Merge pull request #6159 from matrix-org/erikj/cache_membershipsErik Johnston2019-10-071-0/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | Cache room membership lookups in _get_joined_users_from_context
| * | | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-10-031-0/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erikj/cache_memberships
| * | | | | | | | | | NewsfileErik Johnston2019-10-031-0/+1
| | |/ / / / / / / / | |/| | | | | | | |
* | | | | | | | | | Merge pull request #6147 from matrix-org/babolivier/3pid-invite-revokedBrendan Abolivier2019-10-041-0/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Don't 500 when trying to exchange a revoked 3PID invite
| * | | | | | | | | | ChangelogBrendan Abolivier2019-10-021-0/+1
| | | | | | | | | | |
* | | | | | | | | | | Update `user_filters` table to have a unique index, and non-null columns (#1172)Alexander Maznev2019-10-041-0/+1
| | | | | | | | | | |
* | | | | | | | | | | media/thumbnailer: Better quality for 1-bit / 8-bit color palette images (#2142)Robert Swain2019-10-041-0/+1
| |_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pillow will use nearest neighbour as the resampling algorithm if the source image is either 1-bit or a color palette using 8 bits. If we convert to RGB before scaling, we'll probably get a better result.
* | | | | | | | | | add some metrics on the federation sender (#6160)Richard van der Hoff2019-10-031-0/+1
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge branch 'master' into developAndrew Morgan2019-10-035-5/+0
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #6154 from matrix-org/erikj/fix_appservice_paginationErik Johnston2019-10-021-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix appservice room list pagination
| * | | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| | | | | | | | | |
* | | | | | | | | | Merge pull request #6153 from matrix-org/erikj/fix_room_list_non_federatableErik Johnston2019-10-021-0/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fix not showing non-federatable rooms to remote room list queries
| * | | | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| |/ / / / / / / / /
* | | | | | | | | | Merge pull request #6148 from matrix-org/erikj/find_next_generatedErik Johnston2019-10-021-0/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | Bound find_next_generated_user_id DB query.
| * | | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| | | | | | | | | |
* | | | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| | | | | | | | | |
* | | | | | | | | | Land improved room list based on room stats (#6019)Erik Johnston2019-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use room_stats and room_state for room directory search
* | | | | | | | | | Fix up some typechecking (#6150)Amber Brown2019-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * type checking fixes * changelog
* | | | | | | | | | Fix yields and copy instead of move push rules on room upgrade (#6144)Andrew Morgan2019-10-021-0/+1
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy push rules during a room upgrade from the old room to the new room, instead of deleting them from the old room. For instance, we've defined upgrading of a room multiple times to be possible, and push rules won't be transferred on the second upgrade if they're deleted during the first. Also fix some missing yields that probably broke things quite a bit.
* | | | | | | | | Merge branch 'release-v1.4.0' of github.com:matrix-org/synapse into developErik Johnston2019-10-023-0/+3
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | |
| * | | | | | | | Merge pull request #6146 from matrix-org/erikj/fix_destination_retry_timingsErik Johnston2019-10-021-0/+1
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix errors storing large retry intervals.
| | * | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| | | | | | | | | |
| * | | | | | | | | Merge pull request #6145 from matrix-org/erikj/fix_censored_redactionsErik Johnston2019-10-021-0/+1
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | Fix fetching censored redactions from DB
| | * | | | | | | | NewsfileErik Johnston2019-10-021-0/+1
| | | | | | | | | |
| * | | | | | | | | NewsfileErik Johnston2019-10-011-0/+1
| |/ / / / / / / /
* | | | | | | | | Merge branch 'erikj/fixup_devices_last_seen_query' of ↵Erik Johnston2019-10-012-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github.com:matrix-org/synapse into develop
| * | | | | | | | NewsfileErik Johnston2019-09-301-0/+1
| | | | | | | | |
| * | | | | | | | NewsfileErik Johnston2019-09-261-0/+1
| | | | | | | | |
* | | | | | | | | Drop unused tables (#6115)Richard van der Hoff2019-09-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tables are unused since #5893 (as amended by #6047), so we can now drop them. Fixes #6048.
* | | | | | | | | Edit SimpleHttpClient to reference that header keys can be passed as str or ↵Andrew Morgan2019-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bytes (#6077)
* | | | | | | | | Update changelog.d/6125.featureBrendan Abolivier2019-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | | | | | | | | ChangelogBrendan Abolivier2019-09-271-0/+1
| | | | | | | | |
* | | | | | | | | Move lookup-related functions from RoomMemberHandler to IdentityHandler (#5978)Andrew Morgan2019-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Just to have all the methods that make calls to identity services in one place.
* | | | | | | | | Merge pull request #6108 from matrix-org/erikj/remove_get_user_by_req-spanErik Johnston2019-09-271-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Add some helpful opentracing tags and remove get_user_by_req span
| * | | | | | | | | NewsfileErik Johnston2019-09-251-0/+1
| | | | | | | | | |
* | | | | | | | | | Kill off half-implemented password-reset via sms (#6101)Richard van der Hoff2019-09-261-0/+1
| |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing a password reset via SMS has never worked, and in any case is a silly idea because msisdn recycling is a thing. See also matrix-org/matrix-doc#2303.
* | | | | | | | | changelogRichard van der Hoff2019-09-26131-132/+0
| | | | | | | | |
* | | | | | | | | Explicitly log when a homeserver does not have a trusted key server ↵Neil Johnson2019-09-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configured (#6090)
* | | | | | | | | Clarify upgrade notes ahead of 1.4.0 releaseNeil Johnson2019-09-261-0/+1
| | | | | | | | |
* | | | | | | | | Fix dummy event insertion consent bug (#6053)Neil Johnson2019-09-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #5905
* | | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-2518-0/+18
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erikj/cleanup_user_ips_2
| * \ \ \ \ \ \ \ \ Merge pull request #6089 from matrix-org/erikj/cleanup_user_ipsErik Johnston2019-09-251-0/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Move last seen info into devices table
| | * \ \ \ \ \ \ \ \ Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-2517-0/+17
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erikj/cleanup_user_ips
| * | | | | | | | | | | Enable cleaning up extremities with dummy events by default to prevent undue ↵Neil Johnson2019-09-251-0/+1
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build up of forward extremities. (#5884)
| * | | | | | | | | | Threepid validity checks on msisdns should not be dependent on ↵Neil Johnson2019-09-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'threepid_behaviour_email'. (#6104) Fixes #6103
| * | | | | | | | | | Stop advertising unsupported flows for registration (#6107)Richard van der Hoff2019-09-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If email or msisdn verification aren't supported, let's stop advertising them for registration. Fixes #6100.
| * | | | | | | | | | Refactor the user-interactive auth handling (#6105)Richard van der Hoff2019-09-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull the checkers out to their own classes, rather than having them lost in a massive 1000-line class which does everything. This is also preparation for some more intelligent advertising of flows, as per #6100
| * | | | | | | | | | Refactor code for calculating registration flows (#6106)Richard van der Hoff2019-09-251-0/+1
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because, frankly, it looked like it was written by an axe-murderer. This should be a non-functional change, except that where `m.login.dummy` was previously advertised *before* `m.login.terms`, it will now be advertised afterwards. AFAICT that should have no effect, and will be more consistent with the flows that involve passing a 3pid.
| * | | | | | | | | Merge pull request #6092 from ↵Brendan Abolivier2019-09-241-0/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/babolivier/background_update_deactivated_return Fix the return value in the users_set_deactivated_flag background job
| | * | | | | | | | | ChangelogBrendan Abolivier2019-09-231-0/+1
| | | | | | | | | | |
| * | | | | | | | | | Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_workRichard van der Hoff2019-09-243-0/+3
| |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | remove unused parameter to get_user_id_by_threepid (#6099)Richard van der Hoff2019-09-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added in #5377, apparently in error
| | * | | | | | | | | | Merge pull request #6069 from matrix-org/rav/fix_attribute_mappingRichard van der Hoff2019-09-241-0/+1
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug with saml attribute maps.
| | | * \ \ \ \ \ \ \ \ \ Merge branch 'develop' into rav/fix_attribute_mappingRichard van der Hoff2019-09-1991-0/+91
| | | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | Fix a bug with saml attribute maps.Richard van der Hoff2019-09-191-0/+1
| | | | |_|_|/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a bug where the default attribute maps were prioritised over user-specified ones, resulting in incorrect mappings. The problem is that if you call SPConfig.load() multiple times, it adds new attribute mappers to a list. So by calling it with the default config first, and then the user-specified config, we would always get the default mappers before the user-specified mappers. To solve this, let's merge the config dicts first, and then pass them to SPConfig.
| | * | | | | | | | | | | Add sid to next_link for email validation (#6097)J. Ryan Stinnett2019-09-241-0/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_workRichard van der Hoff2019-09-2426-2/+27
| |\| | | | | | | | | | |
| | * | | | | | | | | | | Add submit_url response parameter to msisdn /requestToken (#6079)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Second part of solving #6076 Fixes #6076 We return a submit_url parameter on calls to POST */msisdn/requestToken so that clients know where to submit token information to.
| | * | | | | | | | | | | Add an unstable feature flag for separate add/bind 3pid APIs (#6044)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a m.separate_add_and_bind flag set to True. See MSC2290's Backward Compatibility section for details.
| | * | | | | | | | | | | Merge pull request #6064 from matrix-org/rav/saml_config_cleanupRichard van der Hoff2019-09-231-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the sample saml config closer to our standards
| | * | | | | | | | | | | | Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses a SimpleHttpClient instance equipped with the federation_ip_range_blacklist list for requests to identity servers provided by user input. Does not use a blacklist when contacting identity servers specified by account_threepid_delegates. The homeserver trusts the latter and we don't want to prevent homeserver admins from specifying delegates that are on internal IP addresses. Fixes #5935
| | * | | | | | | | | | | | Add m.id_access_token to /versions unstable_features (MSC2264) (#5974)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a flag to /versions' unstable_features section indicating that this Synapse understands what an id_access_token is, as per MSC2264. Fixes #5927
| | * | | | | | | | | | | | Add m.require_identity_server to /versions unstable_flags (#5972)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As MSC2263 states, m.require_identity_server must be set to false when it does not require an identity server to be provided by the client for the purposes of email registration or password reset. Adds an m.require_identity_server flag to /versionss unstable_flags section. This will advertise that Synapse no longer needs id_server as a parameter.
| | * | | | | | | | | | | | Add POST submit_token endpoint for MSISDN (#6078)Andrew Morgan2019-09-231-0/+1
| | | |_|_|/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | First part of solving #6076
| | * | | | | | | | | | | Implement MSC2290 (#6043)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements MSC2290. This PR adds two new endpoints, /unstable/account/3pid/add and /unstable/account/3pid/bind. Depending on the progress of that MSC the unstable prefix may go away. This PR also removes the blacklist on some 3PID tests which occurs in #6042, as the corresponding Sytest PR changes them to use the new endpoints. Finally, it also modifies the account deactivation code such that it doesn't just try to deactivate 3PIDs that were bound to the user's account, but any 3PIDs that were bound through the homeserver on that user's account.
| * | | | | | | | | | | | Update 6037.featureRichard van der Hoff2019-09-191-1/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'rav/saml_config_cleanup' into rav/saml_mapping_workRichard van der Hoff2019-09-191-0/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | |
| | * | | | | | | | | | | Merge branch 'develop' into rav/saml_config_cleanupRichard van der Hoff2019-09-1991-0/+91
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / | | | |/| | | | | | | | |
| | * | | | | | | | | | | Add changelogRichard van der Hoff2019-09-191-0/+1
| | | |_|/ / / / / / / / | | |/| | | | | | | | |
| * | | | | | | | | | | Merge branch 'develop' into rav/saml_mapping_workRichard van der Hoff2019-09-1991-0/+91
| |\ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / | | |/| | | | | | | | |
| * | | | | | | | | | | changelogRichard van der Hoff2019-09-131-0/+1
| | |/ / / / / / / / / | |/| | | | | | | | |
| * | | | | | | | | | 1.3.1 v1.3.1 github/release-v1.3.1 release-v1.3.1Richard van der Hoff2019-08-172-2/+0
| | | | | | | | | | |
| * | | | | | | | | | Drop dependency on sdnotify (#5871)Richard van der Hoff2019-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... to save OSes which don't use it from having to maintain a port. Fixes #5865.
| * | | | | | | | | | add attributionRichard van der Hoff2019-08-161-1/+1
| | | | | | | | | | |
| * | | | | | | | | | Add changelog entry.Chris Moos2019-08-161-0/+1
| | | | | | | | | | |
* | | | | | | | | | | NewsfileErik Johnston2019-09-241-0/+1
| |_|_|/ / / / / / / |/| | | | | | | | |
* | | | | | | | | | NewsfileErik Johnston2019-09-231-0/+1
| |_|/ / / / / / / |/| | | | | | | |
* | | | | | | | | Disable /register/available if registration is disabled (#6082)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #6066 This register endpoint should be disabled if registration is disabled, otherwise we're giving anyone the ability to check if a username exists on a server when we don't need to be. Error code is 403 (Forbidden) as that's the same returned by /register when registration is disabled.
* | | | | | | | | Generalize email sending logging (#6075)Andrew Morgan2019-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ancient times Synapse would only send emails when it was notifying a user about a message they received... Now it can do all sorts of neat things! Change the logging so it's not just about notifications.
* | | | | | | | | Return timeout error to user for identity server calls (#6073)Andrew Morgan2019-09-231-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #6072 from matrix-org/rav/fix_retry_resetRichard van der Hoff2019-09-231-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix exception when resetting retry timings
| * | | | | | | | | Fix exception when resetting retry timingsRichard van der Hoff2019-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: > TypeError: set_destination_retry_timings() missing 1 required positional argument: 'retry_interval' Introduced in #6016.
* | | | | | | | | | Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2019-09-201-0/+1
| | | | | | | | | |
* | | | | | | | | | Remove trailing slash ability from password reset's submit_token endpoint ↵Andrew Morgan2019-09-201-0/+1
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#6074) Remove trailing slash ability from the password reset submit_token endpoint. Since we provide the link in an email, and have never sent it with a trailing slash, there's no point for us to accept them on the endpoint.
* | | | | | | | | Ensure email validation link parameters are URL-encoded (#6063)Andrew Morgan2019-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The validation links sent via email had their query parameters inserted without any URL-encoding. Surprisingly this didn't seem to cause any issues, but if a user were to put a `/` in their client_secret it could lead to problems.
* | | | | | | | | Drop support for bind param on POST /account/3pid (MSC2290) (#6067)Andrew Morgan2019-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | As per [MSC2290](https://github.com/matrix-org/matrix-doc/pull/2290/files#diff-05cde9463e9209b701312b3baf2fb2ebR151), we're dropping the bind parameter from `/account/3pid`. This endpoint can now only be used for adding threepid's to the user's account on the homeserver.
* | | | | | | | | Docker: support SYNAPSE_WORKER envvar (#6058)Michael Kaye2019-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow passing SYNAPSE_WORKER envvar * changelog.d * Document SYNAPSE_WORKER. Attempting to imply that you don't need to change this default unless you're in worker mode. Also aware that there's a bigger problem of attempting to document a complete working configuration of workers using docker, as we currently only document to use `synctl` for worker mode, and synctl doesn't work that way in docker.
* | | | | | | | | Use unstable prefix for 3PID unbind API (#6062)J. Ryan Stinnett2019-09-192-1/+2
| | | | | | | | |
* | | | | | | | | Update the upgrade notes (#6050)Richard van der Hoff2019-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * make it clear that if you installed from a package manager, you should use that to upgrade * Document the new way of getting the server version (cf #4878) * Write some words about downgrading.
* | | | | | | | | Add some notes on rolling back to v1.3.1. (#6049)Richard van der Hoff2019-09-191-0/+1
| | | | | | | | |
* | | | | | | | | Undo the deletion of some tables (#6047)Richard van der Hoff2019-09-192-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a partial revert of #5893. The problem is that if we drop these tables in the same release as removing the code that writes to them, it prevents users users from being able to roll back to a previous release. So let's leave the tables in place for now, and remember to drop them in a subsequent release. (Note that these tables haven't been *read* for *years*, so any missing rows resulting from a temporary upgrade to vNext won't cause a problem.)
* | | | | | | | | Remove POST method from password reset submit_token endpoint (#6056)Andrew Morgan2019-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the POST method from `/password_reset/<medium>/submit_token/` as it's only used by phone number verification which Synapse does not support yet.
* | | | | | | | | Fix typo in account_threepid_delegates config (#6028)Jorik Schellekens2019-09-181-0/+1
| | | | | | | | |
* | | | | | | | | Give appropriate exit codes when synctl fails (#5992)Jorik Schellekens2019-09-181-0/+1
| | | | | | | | |
* | | | | | | | | Fix logcontext spam on non-Linux platforms (#6059)J. Ryan Stinnett2019-09-181-0/+1
| |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This checks whether the current platform supports thread resource usage tracking before logging a warning to avoid log spam. Fixes https://github.com/matrix-org/synapse/issues/6055
* | | | | | | | v2 3PID Invites (part of MSC2140) (#5979)Andrew Morgan2019-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3PID invites require making a request to an identity server to check that the invited 3PID has an Matrix ID linked, and if so, what it is. These requests are being made on behalf of a user. The user will supply an identity server and an access token for that identity server. The homeserver will then forward this request with the access token (using an `Authorization` header) and, if the given identity server doesn't support v2 endpoints, will fall back to v1 (which doesn't require any access tokens). Requires: ~~#5976~~
* | | | | | | | (#5849) Convert rst to markdown (#6040)dstipp2019-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Converting some of the rst documentation to markdown. Attempted to preserve whitespace and line breaks to minimize cosmetic change.
* | | | | | | | Fix race condition in room stats. (#6029)Erik Johnston2019-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke in #5971 Basically the bug is that if get_current_state_deltas returns no new updates and we then take the max pos, its possible that we miss an update that happens in between the two calls. (e.g. get_current_state_deltas looks up to stream pos 5, then an event persists and so getting the max stream pos returns 6, meaning that next time we check for things with a stream pos bigger than 6)
* | | | | | | | Add 'failure_ts' column to 'destinations' table (#6016)Richard van der Hoff2019-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track the time that a server started failing at, for general analysis purposes.
* | | | | | | | Fix well-known lookups with the federation certificate whitelist (#5997)Amber Brown2019-09-141-0/+1
| | | | | | | |
* | | | | | | | Add developer docs for using SAML without a server (#6032)Travis Ralston2019-09-131-0/+1
| | | | | | | |
* | | | | | | | Fix for structured logging tests stomping on logs (#6023)Amber Brown2019-09-131-0/+1
| | | | | | | |
* | | | | | | | Remove the cap on federation retry interval. (#6026)Richard van der Hoff2019-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially the intention here is to end up blacklisting servers which never respond to federation requests. Fixes https://github.com/matrix-org/synapse/issues/5113.
* | | | | | | | Fix bug in calculating the federation retry backoff period (#6025)Richard van der Hoff2019-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was intended to introduce an element of jitter; instead it gave you a 30/60 chance of resetting to zero.
* | | | | | | | changelogDavid Baker2019-09-121-0/+1
| | | | | | | |
* | | | | | | | add report_stats_endpoint config option (#6012)Sorunome2019-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
* | | | | | | | Blow up config if opentracing is missing (#5985)Jorik Schellekens2019-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Blow up config if opentracing is missing
* | | | | | | | Ensure support users can be registered even if MAU limit is reachedJason Robinson2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows support users to be created even on MAU limits via the admin API. Support users are excluded from MAU after creation, so it makes sense to exclude them in creation - except if the whole host is in disabled state. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* | | | | | | | Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976)Andrew Morgan2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a redo of https://github.com/matrix-org/synapse/pull/5897 but with `id_access_token` accepted. Implements [MSC2134](https://github.com/matrix-org/matrix-doc/pull/2134) plus Identity Service v2 authentication ala [MSC2140](https://github.com/matrix-org/matrix-doc/pull/2140). Identity lookup-related functions were also moved from `RoomMemberHandler` to `IdentityHandler`.
* | | | | | | | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redactionErik Johnston2019-09-111-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Allow use of different ratelimits for admin redactions.
| * | | | | | | | NewsfileErik Johnston2019-09-111-0/+1
| | | | | | | | |
* | | | | | | | | Clean up some code in the retry logic (#6017)Richard van der Hoff2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove some unused code * make things which were constants into constants for efficiency and clarity
* | | | | | | | | Add note about extra arg to send_membership_event, remove arg in ↵Andrew Morgan2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remote_reject_invite (#6009) Some small fixes to `room_member.py` found while doing other PRs. 1. Add requester to the base `_remote_reject_invite` method. 2. `send_membership_event`'s docstring was out of date and took in a `remote_room_hosts` arg that was not used and no calling function provided.
* | | | | | | | | Check dependencies on setup in the nicer way. (#5989)Jorik Schellekens2019-09-111-0/+1
| | | | | | | | |
* | | | | | | | | Fix existing v2 identity server calls (MSC2140) (#6013)Andrew Morgan2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two things I missed while implementing [MSC2140](https://github.com/matrix-org/matrix-doc/pull/2140/files#diff-c03a26de5ac40fb532de19cb7fc2aaf7R80). 1. Access tokens should be provided to the identity server as `access_token`, not `id_access_token`, even though the homeserver may accept the tokens as `id_access_token`. 2. Access tokens must be sent to the identity server in a query parameter, the JSON body is not allowed. We now send the access token as part of an `Authorization: ...` header, which fixes both things. The breaking code was added in https://github.com/matrix-org/synapse/pull/5892 Sytest PR: https://github.com/matrix-org/sytest/pull/697
* | | | | | | | | Remove origin parameter from add_display_name_to_third_party_invite and add ↵Andrew Morgan2019-09-111-0/+1
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | params to docstring (#6010) Another small fixup noticed during work on a larger PR. The `origin` field of `add_display_name_to_third_party_invite` is not used and likely was just carried over from the `on_PUT` method of `FederationThirdPartyInviteExchangeServlet` which, like all other servlets, provides an `origin` argument. Since it's not used anywhere in the handler function though, we should remove it from the function arguments.
* | | | | | | | Merge pull request #6011 from matrix-org/anoa/fix_3pid_validationErik Johnston2019-09-101-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Use account_threepid_delegate for 3pid validation
| * | | | | | | | Add changelogAndrew Morgan2019-09-101-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #6004 from matrix-org/jaywink/autojoin-create-real-usersJason Robinson2019-09-091-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Only count real users when checking for auto-creation of auto-join room
| * | | | | | | | | Only count real users when checking for auto-creation of auto-join roomJason Robinson2019-09-091-0/+1
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if the first registered user was a "support" or "bot" user, when the first real user registers, the auto-join rooms were not created. Fix to exclude non-real (ie users with a special user type) users when counting how many users there are to determine whether we should auto-create a room. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* | | | | | | | | Merge pull request #5934 from matrix-org/erikj/censor_redactionsErik Johnston2019-09-091-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Censor redactions in DB after a month
| * \ \ \ \ \ \ \ \ Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-0521-1/+20
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erikj/censor_redactions
| * | | | | | | | | | NewsfileErik Johnston2019-08-301-0/+1
| | |_|_|_|_|_|_|/ / | |/| | | | | | | |
* | | | | | | | | | Add a build info metric to Prometheus (#6005)Amber Brown2019-09-101-0/+1
| | | | | | | | | |
* | | | | | | | | | NewsfileErik Johnston2019-09-091-0/+1
| |_|/ / / / / / / |/| | | | | | | |
* | | | | | | | | Servers-known-about statistic (#5981)Amber Brown2019-09-071-0/+1
| | | | | | | | |
* | | | | | | | | Ensure a sid parameter is passed to bind_threepid (#5995)Andrew Morgan2019-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | `sid` is required to be part of `three_pid_creds`. We were 500'ing if it wasn't provided instead of returning `M_MISSING_PARAM`.
* | | | | | | | | Merge pull request #5998 from matrix-org/erikj/fixup_federate_flagErik Johnston2019-09-061-0/+1
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | Correctly handle non-bool m.federate flag
| * | | | | | | | NewsfileErik Johnston2019-09-061-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #5993 from matrix-org/anoa/worker_store_regErik Johnston2019-09-061-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Move get_threepid_validation_session and delete_threepid_session into RegistrationWorkerStore
| * | | | | | | | | Change changelogAndrew Morgan2019-09-062-1/+1
| | | | | | | | | |
| * | | | | | | | | Add changelogAndrew Morgan2019-09-061-0/+1
| |/ / / / / / / /
* / / / / / / / / Add changelogAndrew Morgan2019-09-061-0/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #5991 from matrix-org/erikj/fix_tracing_funcsErik Johnston2019-09-061-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Don't assume there is a 'self' arg in @trace decorator
| * | | | | | | | Update changelogErik Johnston2019-09-061-1/+1
| | | | | | | | |
| * | | | | | | | NewsfileErik Johnston2019-09-061-0/+1
| | | | | | | | |
* | | | | | | | | Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-066-0/+6
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* | | | | | | | Trace how long it takes for the send trasaction to complete, including ↵Jorik Schellekens2019-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retrys (#5986)
* | | | | | | | Gracefully handle log context slips and missing opentracing import errors. ↵Jorik Schellekens2019-09-051-0/+1
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | (#5988)
* | | | | | | Merge pull request #5984 from ↵Erik Johnston2019-09-051-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/joriks/opentracing_link_send_to_edu_contexts Link the send loop with the edus contexts
| * | | | | | | Bugfix phrasingJorik Schellekens2019-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org>
| * | | | | | | newsfileJorik Schellekens2019-09-051-0/+1
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Add opentracing to all client servlets (#5983)Jorik Schellekens2019-09-051-0/+1
| | | | | | |
* | | | | | | Switch to using v2 Identity Service APIs other than lookup (MSC 2140) (#5892)Andrew Morgan2019-09-051-0/+1
| | | | | | |
* | | | | | | Fix opentracing contexts missing from outbound replication requests (#5982)Jorik Schellekens2019-09-051-0/+1
| | | | | | |
* | | | | | | Add POST /_matrix/client/r0/account/3pid/unbind (MSC2140) (#5980)Andrew Morgan2019-09-051-0/+1
|/ / / / / / | | | | | | | | | | | | Implements `POST /_matrix/client/r0/account/3pid/unbind` from [MSC2140](https://github.com/matrix-org/matrix-doc/blob/dbkr/tos_2/proposals/2140-terms-of-service-2.md#post-_matrixclientr0account3pidunbind).
* | | | | | Remove bind_email and bind_msisdn (#5964)Andrew Morgan2019-09-041-0/+1
| | | | | | | | | | | | | | | | | | Removes the `bind_email` and `bind_msisdn` parameters from the `/register` C/S API endpoint as per [MSC2140: Terms of Service for ISes and IMs](https://github.com/matrix-org/matrix-doc/pull/2140/files#diff-c03a26de5ac40fb532de19cb7fc2aaf7R107).
* | | | | | Cleanup event auth type initialisation (#5975)Andrew Morgan2019-09-041-0/+1
| | | | | | | | | | | | | | | | | | Very small code cleanup.
* | | | | | Fix and refactor room and user stats (#5971)Erik Johnston2019-09-041-0/+1
| | | | | | | | | | | | | | | | | | Previously the stats were not being correctly populated.
* | | | | | Ensure the list media admin API is always available (#5966)Travis Ralston2019-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ensure the list media admin API is always available This API is required for some external media repo implementations to operate (mostly for doing quarantine operations on a room). * changelog
* | | | | | Docker packaging should not su-exec or chmod if already running as UID/GID ↵Michael Kaye2019-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#5970) Adjust su-exec to only be used if needed. If UID == getuid() and GID == getgid() then we do not need to su-exec, and chmod will not work.
* | | | | | Ensure an auth instance is available to ListMediaInRoom (#5967)Travis Ralston2019-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ensure an auth instance is available to ListMediaInRoom Fixes https://github.com/matrix-org/synapse/issues/5737 * Changelog
* | | | | | Remove double return statements (#5962)Andrew Morgan2019-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all the "double return" statements which were a result of us removing all the instances of ``` defer.returnValue(...) return ``` statements when we switched to python3 fully.
* | | | | | Opentrace device lists (#5853)Jorik Schellekens2019-09-031-0/+1
| | | | | | | | | | | | | | | | | | Trace device list changes.
* | | | | | Remove unused methods from c/s api v1 in register.py (#5963)Andrew Morgan2019-09-021-0/+1
| | | | | | | | | | | | | | | | | | These methods were part of the v1 C/S API. Remove them as they are no longer used by any code paths.
* | | | | | fix thumbnail storage location (#5915)L0ric02019-09-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix thumbnail storage location Signed-off-by: Lorenz Steinert <lorenz@steinerts.de> * Add changelog file. Signed-off-by: Lorenz Steinert <lorenz@steinerts.de> * Update Changelog Signed-off-by: Lorenz Steinert <lorenz@steinerts.de>
* | | | | | Update INSTALL.md to say that Python 2 is no longer supported (#5953)Aaron Raimist2019-09-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* | | | | | Revert "Add m.id_access_token flag (#5930)" (#5945)Andrew Morgan2019-08-301-1/+0
| | | | | | | | | | | | | | | | | | This reverts commit 4765f0cfd95f6160f32c75481651d125f343cd58.
* | | | | | Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
* | | | | | Move buildkite config to the pipelines repo (#5943)Amber Brown2019-08-311-0/+1
| | | | | |
* | | | | | Add m.id_access_token flag (#5930)Andrew Morgan2019-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a flag to `/versions`' `unstable_features` section indicating that this Synapse understands what an `id_access_token` is, as per https://github.com/matrix-org/synapse/issues/5927#issuecomment-523566043 Fixes #5927
* | | | | | Removed unused jenkins/ folder and script (#5938)Amber Brown2019-08-301-0/+1
| | | | | |
* | | | | | Revert "Use the v2 lookup API for 3PID invites (#5897)" (#5937)Andrew Morgan2019-08-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 71fc04069a5770a204c3514e0237d7374df257a8. This broke 3PID invites as #5892 was required for it to work correctly.
* | | | | | Fix coverage in sytest and use plugins for buildkite (#5922)Amber Brown2019-08-291-0/+1
|/ / / / /
* | | | | Add a link to python's logging config schema (#5926)Jorik Schellekens2019-08-281-0/+1
| | | | |
* | | | | Merge pull request #5902 from matrix-org/hs/exempt-support-users-from-consentWill Hunt2019-08-281-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Exempt support users from consent
| * | | | | Removing entry for 5903Will Hunt2019-08-281-1/+0
| | | | | |
| * | | | | Update changelogHalf-Shot2019-08-231-1/+1
| | | | | |
| * | | | | Merge branch 'hs/bot-user-type' into hs/exempt-support-users-from-consentHalf-Shot2019-08-231-0/+1
| |\ \ \ \ \
| | * | | | | Add changelogHalf-Shot2019-08-231-0/+1
| | | | | | |
| * | | | | | newsfile 5902Half-Shot2019-08-231-0/+1
| |/ / / / /
* | | | | | Let synctl use a config directory. (#5904)Jorik Schellekens2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | * Let synctl use a config directory.
* | | | | | Use the v2 lookup API for 3PID invites (#5897)Andrew Morgan2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/matrix-org/synapse/issues/5861 Adds support for the v2 lookup API as defined in [MSC2134](https://github.com/matrix-org/matrix-doc/pull/2134). Currently this is only used for 3PID invites. Sytest PR: https://github.com/matrix-org/sytest/pull/679
* | | | | | Config templating (#5900)Jorik Schellekens2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By: Erik Johnston <erik@matrix.org>
* | | | | | Implement a structured logging output system. (#5680)Amber Brown2019-08-281-0/+1
| | | | | |
* | | | | | Fix a cache-invalidation bug for worker-based deployments (#5920)Richard van der Hoff2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the caches on worker processes were not being correctly invalidated when a room's state was changed in a way that did not affect the membership list of the room. We need to make sure we send out cache invalidations even when no memberships are changing.
* | | | | | Merge pull request #5914 from matrix-org/rei/admin_getadminreivilibre2019-08-281-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Add GET method to admin API /users/@user:dom/admin
| * | | | | | Add GET method to admin API /users/@user:dom/adminOlivier Wilkinson (reivilibre)2019-08-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | | | | | | Merge pull request #5859 from matrix-org/rei/msc2197reivilibre2019-08-281-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | MSC2197 Search Filters over Federation