This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.36.0' into babolivier/dinsic_1.41.0
Synapse 1.36.0 (2021-06-15) =========================== No significant changes. Synapse 1.36.0rc2 (2021-06-11) ============================== Bugfixes -------- - Fix a bug which caused presence updates to stop working some time after a restart, when using a presence writer worker. Broke in v1.33.0. ([\#10149](matrix-org/synapse#10149)) - Fix a bug when using federation sender worker where it would send out more presence updates than necessary, leading to high resource usage. Broke in v1.33.0. ([\#10163](matrix-org/synapse#10163)) - Fix a bug where Synapse could send the same presence update to a remote twice. ([\#10165](matrix-org/synapse#10165)) Synapse 1.36.0rc1 (2021-06-08) ============================== Features -------- - Add new endpoint `/_matrix/client/r0/rooms/{roomId}/aliases` from Client-Server API r0.6.1 (previously [MSC2432](matrix-org/matrix-spec-proposals#2432)). ([\#9224](matrix-org/synapse#9224)) - Improve performance of incoming federation transactions in large rooms. ([\#9953](matrix-org/synapse#9953), [\#9973](matrix-org/synapse#9973)) - Rewrite logic around verifying JSON object and fetching server keys to be more performant and use less memory. ([\#10035](matrix-org/synapse#10035)) - Add new admin APIs for unprotecting local media from quarantine. Contributed by @dklimpel. ([\#10040](matrix-org/synapse#10040)) - Add new admin APIs to remove media by media ID from quarantine. Contributed by @dklimpel. ([\#10044](matrix-org/synapse#10044)) - Make reason and score parameters optional for reporting content. Implements [MSC2414](matrix-org/matrix-spec-proposals#2414). Contributed by Callum Brown. ([\#10077](matrix-org/synapse#10077)) - Add support for routing more requests to workers. ([\#10084](matrix-org/synapse#10084)) - Report OpenTracing spans for database activity. ([\#10113](matrix-org/synapse#10113), [\#10136](matrix-org/synapse#10136), [\#10141](matrix-org/synapse#10141)) - Significantly reduce memory usage of joining large remote rooms. ([\#10117](matrix-org/synapse#10117)) Bugfixes -------- - Fixed a bug causing replication requests to fail when receiving a lot of events via federation. ([\#10082](matrix-org/synapse#10082)) - Fix a bug in the `force_tracing_for_users` option introduced in Synapse v1.35 which meant that the OpenTracing spans produced were missing most tags. ([\#10092](matrix-org/synapse#10092)) - Fixed a bug that could cause Synapse to stop notifying application services. Contributed by Willem Mulder. ([\#10107](matrix-org/synapse#10107)) - Fix bug where the server would attempt to fetch the same history in the room from a remote server multiple times in parallel. ([\#10116](matrix-org/synapse#10116)) - Fix a bug introduced in Synapse 1.33.0 which caused replication requests to fail when receiving a lot of very large events via federation. ([\#10118](matrix-org/synapse#10118)) - Fix bug when using workers where pagination requests failed if a remote server returned zero events from `/backfill`. Introduced in 1.35.0. ([\#10133](matrix-org/synapse#10133)) Improved Documentation ---------------------- - Clarify security note regarding hosting Synapse on the same domain as other web applications. ([\#9221](matrix-org/synapse#9221)) - Update CAPTCHA documentation to mention turning off the verify origin feature. Contributed by @aaronraimist. ([\#10046](matrix-org/synapse#10046)) - Tweak wording of database recommendation in `INSTALL.md`. Contributed by @aaronraimist. ([\#10057](matrix-org/synapse#10057)) - Add initial infrastructure for rendering Synapse documentation with mdbook. ([\#10086](matrix-org/synapse#10086)) - Convert the remaining Admin API documentation files to markdown. ([\#10089](matrix-org/synapse#10089)) - Make a link in docs use HTTPS. Contributed by @RhnSharma. ([\#10130](matrix-org/synapse#10130)) - Fix broken link in Docker docs. ([\#10132](matrix-org/synapse#10132)) Deprecations and Removals ------------------------- - Remove the experimental `spaces_enabled` flag. The spaces features are always available now. ([\#10063](matrix-org/synapse#10063)) Internal Changes ---------------- - Tell CircleCI to build Docker images from `main` branch. ([\#9906](matrix-org/synapse#9906)) - Simplify naming convention for release branches to only include the major and minor version numbers. ([\#10013](matrix-org/synapse#10013)) - Add `parse_strings_from_args` for parsing an array from query parameters. ([\#10048](matrix-org/synapse#10048), [\#10137](matrix-org/synapse#10137)) - Remove some dead code regarding TLS certificate handling. ([\#10054](matrix-org/synapse#10054)) - Remove redundant, unmaintained `convert_server_keys` script. ([\#10055](matrix-org/synapse#10055)) - Improve the error message printed by synctl when synapse fails to start. ([\#10059](matrix-org/synapse#10059)) - Fix GitHub Actions lint for newsfragments. ([\#10069](matrix-org/synapse#10069)) - Update opentracing to inject the right context into the carrier. ([\#10074](matrix-org/synapse#10074)) - Fix up `BatchingQueue` implementation. ([\#10078](matrix-org/synapse#10078)) - Log method and path when dropping request due to size limit. ([\#10091](matrix-org/synapse#10091)) - In Github Actions workflows, summarize the Sytest results in an easy-to-read format. ([\#10094](matrix-org/synapse#10094)) - Make `/sync` do fewer state resolutions. ([\#10102](matrix-org/synapse#10102)) - Add missing type hints to the admin API servlets. ([\#10105](matrix-org/synapse#10105)) - Improve opentracing annotations for `Notifier`. ([\#10111](matrix-org/synapse#10111)) - Enable Prometheus metrics for the jaeger client library. ([\#10112](matrix-org/synapse#10112)) - Work to improve the responsiveness of `/sync` requests. ([\#10124](matrix-org/synapse#10124)) - OpenTracing: use a consistent name for background processes. ([\#10135](matrix-org/synapse#10135))
- Loading branch information
Showing
120 changed files
with
4,246 additions
and
2,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy the documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
pages: | ||
name: GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup mdbook | ||
uses: peaceiris/actions-mdbook@4b5ef36b314c2599664ca107bb8c02412548d79d # v1.1.14 | ||
with: | ||
mdbook-version: '0.4.9' | ||
|
||
- name: Build the documentation | ||
run: mdbook build | ||
|
||
- name: Deploy latest documentation | ||
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
keep_files: true | ||
publish_dir: ./book | ||
destination_dir: ./develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,6 @@ __pycache__/ | |
/docs/build/ | ||
/htmlcov | ||
/pip-wheel-metadata/ | ||
|
||
# docs | ||
book/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Documentation for possible options in this file is at | ||
# https://rust-lang.github.io/mdBook/format/config.html | ||
[book] | ||
title = "Synapse" | ||
authors = ["The Matrix.org Foundation C.I.C."] | ||
language = "en" | ||
multilingual = false | ||
|
||
# The directory that documentation files are stored in | ||
src = "docs" | ||
|
||
[build] | ||
# Prevent markdown pages from being automatically generated when they're | ||
# linked to in SUMMARY.md | ||
create-missing = false | ||
|
||
[output.html] | ||
# The URL visitors will be directed to when they try to edit a page | ||
edit-url-template = "https://github.com/matrix-org/synapse/edit/develop/{path}" | ||
|
||
# Remove the numbers that appear before each item in the sidebar, as they can | ||
# get quite messy as we nest deeper | ||
no-section-label = true | ||
|
||
# The source code URL of the repository | ||
git-repository-url = "https://github.com/matrix-org/synapse" | ||
|
||
# The path that the docs are hosted on | ||
site-url = "/synapse/" | ||
|
||
# Additional HTML, JS, CSS that's injected into each page of the book. | ||
# More information available in docs/website_files/README.md | ||
additional-css = [ | ||
"docs/website_files/table-of-contents.css", | ||
"docs/website_files/remove-nav-buttons.css", | ||
"docs/website_files/indent-section-headers.css", | ||
] | ||
additional-js = ["docs/website_files/table-of-contents.js"] | ||
theme = "docs/website_files/theme" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
# Overview | ||
Captcha can be enabled for this home server. This file explains how to do that. | ||
The captcha mechanism used is Google's ReCaptcha. This requires API keys from Google. | ||
|
||
## Getting keys | ||
|
||
Requires a site/secret key pair from: | ||
|
||
<https://developers.google.com/recaptcha/> | ||
|
||
Must be a reCAPTCHA v2 key using the "I'm not a robot" Checkbox option | ||
|
||
## Setting ReCaptcha Keys | ||
|
||
The keys are a config option on the home server config. If they are not | ||
visible, you can generate them via `--generate-config`. Set the following value: | ||
|
||
A captcha can be enabled on your homeserver to help prevent bots from registering | ||
accounts. Synapse currently uses Google's reCAPTCHA service which requires API keys | ||
from Google. | ||
|
||
## Getting API keys | ||
|
||
1. Create a new site at <https://www.google.com/recaptcha/admin/create> | ||
1. Set the label to anything you want | ||
1. Set the type to reCAPTCHA v2 using the "I'm not a robot" Checkbox option. | ||
This is the only type of captcha that works with Synapse. | ||
1. Add the public hostname for your server, as set in `public_baseurl` | ||
in `homeserver.yaml`, to the list of authorized domains. If you have not set | ||
`public_baseurl`, use `server_name`. | ||
1. Agree to the terms of service and submit. | ||
1. Copy your site key and secret key and add them to your `homeserver.yaml` | ||
configuration file | ||
``` | ||
recaptcha_public_key: YOUR_SITE_KEY | ||
recaptcha_private_key: YOUR_SECRET_KEY | ||
|
||
In addition, you MUST enable captchas via: | ||
|
||
``` | ||
1. Enable the CAPTCHA for new registrations | ||
``` | ||
enable_registration_captcha: true | ||
``` | ||
1. Go to the settings page for the CAPTCHA you just created | ||
1. Uncheck the "Verify the origin of reCAPTCHA solutions" checkbox so that the | ||
captcha can be displayed in any client. If you do not disable this option then you | ||
must specify the domains of every client that is allowed to display the CAPTCHA. | ||
|
||
## Configuring IP used for auth | ||
|
||
The ReCaptcha API requires that the IP address of the user who solved the | ||
captcha is sent. If the client is connecting through a proxy or load balancer, | ||
The reCAPTCHA API requires that the IP address of the user who solved the | ||
CAPTCHA is sent. If the client is connecting through a proxy or load balancer, | ||
it may be required to use the `X-Forwarded-For` (XFF) header instead of the origin | ||
IP address. This can be configured using the `x_forwarded` directive in the | ||
listeners section of the homeserver.yaml configuration file. | ||
listeners section of the `homeserver.yaml` configuration file. |
Oops, something went wrong.