Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2021-02-03 | Social login UI polish (#9301) | Richard van der Hoff | 12 | -75/+213 | |
2021-02-03 | Clarify documentation about escaping URLs in templates. (#9310) | Patrick Cloke | 3 | -20/+9 | |
2021-02-03 | Add debug for OIDC flow (#9307) | Richard van der Hoff | 2 | -15/+26 | |
2021-02-03 | social login Fix username validation javascript (#9297) | Richard van der Hoff | 3 | -21/+85 | |
* fix validation and don't use built-in validation UI Co-authored-by: Bruno Windels <brunow@element.io> | |||||
2021-02-03 | Fix formatting for "bad session" error during sso registration flow (#9296) | Richard van der Hoff | 2 | -3/+17 | |
2021-02-03 | Honour ratelimit flag for application services for invite ratelimiting (#9302) | Erik Johnston | 4 | -51/+13 | |
2021-02-02 | social login: add noopener to terms link (#9300) | Richard van der Hoff | 2 | -1/+2 | |
2021-02-02 | Update changelog v1.27.0rc1 | Erik Johnston | 1 | -0/+2 | |
2021-02-02 | 1.27.0rc1 | Erik Johnston | 53 | -58/+71 | |
2021-02-02 | Add an admin API to get the current room state (#9168) | Travis Ralston | 6 | -1/+88 | |
This could arguably replace the existing admin API for `/members`, however that is out of scope of this change. This sort of endpoint is ideal for moderation use cases as well as other applications, such as needing to retrieve various bits of information about a room to perform a task (like syncing power levels between two places). This endpoint exposes nothing more than an admin would be able to access with a `select *` query on their database. | |||||
2021-02-02 | Put SAML callback URI under /_synapse/client. (#9289) | Richard van der Hoff | 10 | -13/+25 | |
2021-02-01 | Put OIDC callback URI under /_synapse/client. (#9288) | Richard van der Hoff | 11 | -28/+46 | |
2021-02-01 | Add an OpenID example config for Gitea. (#9134) | Oliver Hanikel | 2 | -0/+35 | |
2021-02-01 | fix broken HTML tag | Richard van der Hoff | 1 | -1/+1 | |
2021-02-01 | make primary button not wider than viewport | Bruno Windels | 1 | -0/+1 | |
2021-02-01 | Collect terms consent from the user during SSO registration (#9276) | Richard van der Hoff | 9 | -0/+230 | |
2021-02-01 | Improve styling and wording of SSO UIA templates (#9286) | Richard van der Hoff | 6 | -25/+81 | |
fixes #9171 | |||||
2021-02-01 | Refactor email summary generation. (#9260) | Patrick Cloke | 3 | -122/+204 | |
* Fixes a case where no summary text was returned. * The use of messages_from_person vs. messages_from_person_and_others was tweaked to depend on whether there was 1 sender or multiple senders, not based on if there was 1 room or multiple rooms. | |||||
2021-02-01 | Improve styling and wording of SSO error templates (#9287) | Richard van der Hoff | 5 | -60/+101 | |
2021-02-01 | Make importing display name and email optional (#9277) | Richard van der Hoff | 5 | -13/+82 | |
2021-02-01 | Add phone home stats for encrypted messages. (#9283) | Jan Christian Grünhage | 3 | -2/+64 | |
Signed-off-by: Jan Christian Grünhage <jan.christian@gruenhage.xyz> | |||||
2021-02-01 | Prevent email UIA failures from raising a LoginError (#9265) | Andrew Morgan | 2 | -10/+1 | |
Context, Fixes: https://github.com/matrix-org/synapse/issues/9263 In the past to fix an issue with old Riots re-requesting threepid validation tokens, we raised a `LoginError` during UIA instead of `InteractiveAuthIncompleteError`. This is now breaking the way Tchap logs in - which isn't standard, but also isn't disallowed by the spec. An easy fix is just to remove the 4 year old workaround. | |||||
2021-02-01 | Replace username picker with a template (#9275) | Richard van der Hoff | 15 | -204/+429 | |
There's some prelimiary work here to pull out the construction of a jinja environment to a separate function. I wanted to load the template at display time rather than load time, so that it's easy to update on the fly. Honestly, I think we should do this with all our templates: the risk of ending up with malformed templates is far outweighed by the improved turnaround time for an admin trying to update them. | |||||
2021-02-01 | Improve styling and wording of SSO redirect confirm template (#9272) | Richard van der Hoff | 11 | -30/+200 | |
2021-02-01 | Fix SSO on workers (#9271) | Richard van der Hoff | 8 | -65/+93 | |
Fixes #8966. * Factor out build_synapse_client_resource_tree Start a function which will mount resources common to all workers. * Move sso init into build_synapse_client_resource_tree ... so that we don't have to do it for each worker * Fix SSO-login-via-a-worker Expose the SSO login endpoints on workers, like the documentation says. * Update workers config for new endpoints Add documentation for endpoints recently added (#8942, #9017, #9262) * remove submit_token from workers endpoints list this *doesn't* work on workers (yet). * changelog * Add a comment about the odd path for SAML2Resource | |||||
2021-02-01 | Split out a separate endpoint to complete SSO registration (#9262) | Richard van der Hoff | 7 | -26/+145 | |
There are going to be a couple of paths to get to the final step of SSO reg, and I want the URL in the browser to consistent. So, let's move the final step onto a separate path, which we redirect to. | |||||
2021-01-30 | Fixes for PyPy compatibility (#9270) | Ivan Shapovalov | 2 | -1/+3 | |
* synapse.app.base: only call gc.freeze() on CPython gc.freeze() is an implementation detail of CPython garbage collector, and notably does not exist on PyPy. Rather than playing whack-a-mole and skipping the call when under PyPy, simply restrict it to CPython because the whole gc module is implementation-defined. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name> | |||||
2021-01-29 | Ratelimit invites by room and target user (#9258) | Erik Johnston | 9 | -4/+192 | |
2021-01-29 | Fix Debian builds on Xenial (#9254) | Dan Callahan | 4 | -1/+11 | |
Adds note about updating dh-virtualenv once we drop support for Xenial. We can't update now, because it needs debhelper 12, while Xenial only backports 10. Signed-off-by: Dan Callahan <danc@element.io> | |||||
2021-01-29 | Fix typo in UPGRADE.rst | Denis Kasak | 1 | -2/+2 | |
2021-01-28 | Ratelimit 3PID /requestToken API (#9238) | Erik Johnston | 11 | -14/+159 | |
2021-01-28 | Cache config options in SSL verification (#9255) | Erik Johnston | 2 | -4/+10 | |
Reading from the config object is *slow*. | |||||
2021-01-28 | Add type hints to E2E handler. (#9232) | Patrick Cloke | 7 | -177/+198 | |
This finishes adding type hints to the `synapse.handlers` module. | |||||
2021-01-27 | Add notes on integrating with Facebook for SSO login. (#9244) | Richard van der Hoff | 2 | -5/+49 | |
2021-01-27 | Add 'brand' field to MSC2858 response (#9242) | Richard van der Hoff | 10 | -32/+55 | |
We've decided to add a 'brand' field to help clients decide how to style the buttons. Also, fix up the allowed characters for idp_id, while I'm in the area. | |||||
2021-01-27 | Support for scraping email addresses from OIDC providers (#9245) | Richard van der Hoff | 4 | -30/+53 | |
2021-01-27 | Update debian changelog. v1.26.0-deb github/release-v1.26.0 release-v1.26.0 | Patrick Cloke | 1 | -2/+6 | |
2021-01-27 | Check if a user is in the room before sending a PowerLevel event on their ↵ | Pankaj Yadav | 2 | -1/+12 | |
behalf (#9235) | |||||
2021-01-27 | Move note above changes. v1.26.0 | Patrick Cloke | 1 | -2/+2 | |
2021-01-27 | Clean-up the template loading code. (#9200) | Patrick Cloke | 12 | -38/+96 | |
* Enables autoescape by default for HTML files. * Adds a new read_template method for reading a single template. * Some logic clean-up. | |||||
2021-01-27 | Copy the upgrade note to 1.26.0. | Patrick Cloke | 1 | -3/+7 | |
2021-01-27 | 1.26.0 | Patrick Cloke | 2 | -1/+7 | |
2021-01-27 | Add a note to changelog about redis usage (#9227) | Erik Johnston | 3 | -1/+11 | |
2021-01-27 | Implement MSC2858 support (#9183) | Richard van der Hoff | 9 | -21/+230 | |
Fixes #8928. | |||||
2021-01-27 | Pass a dict, instead of None, to modules if a None config is specified in ↵ | Andrew Morgan | 2 | -1/+3 | |
the homeserver config (#9229) If a Synapse module's config block were empty in YAML, thus being translated to a `Nonetype` in Python, then some modules could fail as that None ends up getting passed to their `parse_config` method. Modules are expected to accept a `dict` instead. This PR ensures that if the user does end up specifying an empty config block (such as what [the default oidc config in the sample config](https://github.com/matrix-org/synapse/blob/5310808d3bebd17275355ecd474bc013e8c7462d/docs/sample_config.yaml#L1816-L1845) states) then `None` is not passed to the module. An empty dict is passed instead. This code assumes that no existing modules are relying on receiving a `None` config block, but I'd really hope that they aren't. | |||||
2021-01-26 | Add type hints to various handlers. (#9223) | Patrick Cloke | 14 | -138/+205 | |
With this change all handlers except the e2e_* ones have type hints enabled. | |||||
2021-01-26 | Do not require the CAS service URL setting (use public_baseurl instead). (#9199) | Patrick Cloke | 5 | -16/+10 | |
The current configuration is handled for backwards compatibility, but is considered deprecated. | |||||
2021-01-26 | Precompute joined hosts and store in Redis (#9198) | Erik Johnston | 11 | -49/+265 | |
2021-01-26 | Try to recover from unknown encodings when previewing media. (#9164) | Patrick Cloke | 3 | -10/+64 | |
Treat unknown encodings (according to lxml) as UTF-8 when generating a preview for HTML documents. This isn't fully accurate, but will hopefully give a reasonable title and summary. | |||||
2021-01-26 | Update isort to v5.7.0 (#9222) | Andrew Morgan | 2 | -1/+2 | |
This new version no longer has the problem of adding/removing a blank line in `.pyi` files, which black disagrees with. This would cause `isort` to slightly modify `.pyi` files, before `black` would subsequently modify back directly afterwards. Relevant `isort` issue: https://github.com/pycqa/isort/issues/1284 | |||||
2021-01-26 | Periodically send pings to detect dead Redis connections (#9218) | Erik Johnston | 4 | -57/+107 | |
This is done by creating a custom `RedisFactory` subclass that periodically pings all connections in its pool. We also ensure that the `replyTimeout` param is non-null, so that we timeout waiting for the reply to those pings (and thus triggering a reconnect). | |||||
2021-01-26 | Fix get forward extremities query | Jason Robinson | 1 | -1/+1 | |
Signed-off-by: Jason Robinson <jasonr@matrix.org> | |||||
2021-01-26 | Make natural join inner join | Jason Robinson | 1 | -2/+2 | |
Co-authored-by: Erik Johnston <erik@matrix.org> | |||||
2021-01-25 | Don't error if deleting a non-existent pusher. (#9121) | Patrick Cloke | 2 | -1/+4 | |
2021-01-25 | Add an admin API for shadow-banning users. (#9209) | Patrick Cloke | 8 | -7/+164 | |
This expands the current shadow-banning feature to be usable via the admin API and adds documentation for it. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. Shadow-banning a user should be used as a tool of last resort and may lead to confusing or broken behaviour for the client. | |||||
2021-01-25 | Fix Python 3.5 old deps build by using a compatible pip version. (#9217) | Patrick Cloke | 3 | -8/+11 | |
Co-authored-by: Dan Callahan <danc@element.io> pip 21.0 stopped supporting Python 3.5. | |||||
2021-01-25 | Fix Python 3.5 old deps build by using a compatible pip version. (#9217) | Patrick Cloke | 3 | -8/+11 | |
Co-authored-by: Dan Callahan <danc@element.io> pip 21.0 stopped supporting Python 3.5. | |||||
2021-01-25 | Tweak changes. v1.26.0rc2 | Patrick Cloke | 1 | -2/+2 | |
2021-01-25 | 1.26.0rc2 | Patrick Cloke | 7 | -6/+18 | |
2021-01-25 | Handle missing content keys when calculating presentable names. (#9165) | Patrick Cloke | 4 | -16/+242 | |
Treat the content as untrusted and do not assume it is of the proper form. | |||||
2021-01-23 | Add depth and received_ts to forward_extremities admin API response | Jason Robinson | 2 | -2/+9 | |
Also add a warning on the admin API documentation. Signed-off-by: Jason Robinson <jasonr@matrix.org> | |||||
2021-01-22 | Fix chain cover update to handle events with duplicate auth events (#9210) | Erik Johnston | 3 | -1/+14 | |
2021-01-22 | Bump psycopg2 version (#9204) | Erik Johnston | 3 | -3/+4 | |
As we use `execute_values` with the `fetch` parameter. | |||||
2021-01-21 | Return a 404 if no valid thumbnail is found. (#9163) | Patrick Cloke | 4 | -82/+183 | |
If no thumbnail of the requested type exists, return a 404 instead of erroring. This doesn't quite match the spec (which does not define what happens if no thumbnail can be found), but is consistent with what Synapse already does. | |||||
2021-01-21 | Align the directories linted in CI with the defaults in scripts-dev/lint.sh ↵ | Andrew Morgan | 3 | -2/+5 | |
(#9191) The lists of source directories to lint between `tox.ini` and `lint.sh` became out of sync. This PR tightens them up and adds some comments reminding any future readers to keep the list in sync. | |||||
2021-01-21 | Speed up chain cover calculation (#9176) | Erik Johnston | 3 | -55/+161 | |
2021-01-21 | Increase perf of handling concurrent use of StreamIDGenerators. (#9190) | Erik Johnston | 2 | -8/+14 | |
We have seen a failure mode here where if there are many in flight unfinished IDs then marking an ID as finished takes a lot of CPU (as calling deque.remove iterates over the list) | |||||
2021-01-21 | Add schema update to fix existing DBs affected by #9193 (#9195) | Erik Johnston | 3 | -1/+20 | |
2021-01-21 | Fix receipts or account data not being sent down sync (#9193) | Erik Johnston | 5 | -7/+62 | |
Introduced in #9104 This wasn't picked up by the tests as this is all fine the first time you run Synapse (after upgrading), but then when you restart the wrong value is pulled from `stream_positions`. | |||||
2021-01-21 | Use execute_batch in more places (#9188) | Erik Johnston | 12 | -31/+26 | |
* Use execute_batch in more places * Newsfile | |||||
2021-01-21 | Add tests for List Users Admin API (#9045) | Dirk Klimpel | 3 | -30/+215 | |
2021-01-21 | Add a check for duplicate IdP ids (#9184) | Richard van der Hoff | 2 | -0/+12 | |
2021-01-21 | Prefix idp_id with "oidc-" (#9189) | Richard van der Hoff | 4 | -9/+35 | |
... to avoid clashes with other SSO mechanisms | |||||
2021-01-21 | Use execute_batch instead of executemany in places (#9181) | Erik Johnston | 3 | -12/+12 | |
`execute_batch` does fewer round trips in postgres than `executemany`, but does not give a correct `txn.rowcount` result after. | |||||
2021-01-20 | Specify that the long description is rST in the package metadata. (#9180) | Patrick Cloke | 2 | -0/+2 | |
This avoids a warning when uploading packages to PyPI via twine. | |||||
2021-01-20 | Fix a typo in the release notes. | Patrick Cloke | 1 | -1/+1 | |
2021-01-20 | Fix reStructuredText formatting. | Patrick Cloke | 1 | -1/+1 | |
2021-01-20 | Point people to the upgrade notes. v1.26.0rc1 | Patrick Cloke | 1 | -0/+4 | |
2021-01-20 | Formatting. | Patrick Cloke | 1 | -1/+1 | |
2021-01-20 | SQL formatting in UPGRADE. | Patrick Cloke | 1 | -0/+4 | |
2021-01-20 | Add upgrade notes about chain cover. | Patrick Cloke | 1 | -8/+12 | |
2021-01-20 | Include upgrade notes. | Patrick Cloke | 1 | -0/+42 | |
2021-01-20 | Re-run towncrier. | Patrick Cloke | 4 | -4/+2 | |
2021-01-20 | Tighten the restrictions on `idp_id` (#9177) | Richard van der Hoff | 2 | -3/+10 | |
2021-01-20 | Support icons for Identity Providers (#9154) | Richard van der Hoff | 19 | -91/+146 | |
2021-01-20 | Various improvements to the federation client. (#9129) | Patrick Cloke | 2 | -58/+68 | |
* Type hints for `FederationClient`. * Using `async` functions instead of returning `Awaitable` instances. | |||||
2021-01-20 | docs: Add link to Matrix VoIP tester for turn-howto (#9135) | rht | 2 | -0/+7 | |
Signed-off-by: rht <rhtbot@protonmail.com> | |||||
2021-01-20 | Give `public_baseurl` a default value (#9159) | Richard van der Hoff | 14 | -83/+48 | |
2021-01-20 | Reword confusing sentence in CHANGES. | Patrick Cloke | 1 | -1/+1 | |
2021-01-20 |