1
0
Commit Graph

18628 Commits

Author SHA1 Message Date
Andrew Morgan
c891774a0e Apply suggestions from code review 2021-05-18 17:39:39 +01:00
Savyasachee Jha
a36d1ec5ae Removed duplicate file for hardening systemd workers and updated the docs as requested in code review 2021-05-18 16:14:49 +05:30
Savyasachee Jha
ad8e2cc36c Update changelog.d/9802.doc with a link to the actual issue
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-05-18 16:10:56 +05:30
Savyasachee Jha
585ae3884c Apply suggestions from code review by anoadragon453
Mostly a few grammatical changes to better fit the language expected

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-05-18 16:10:05 +05:30
Savyasachee Jha
12d130738f Made changes as requested in PR discussion and added a mention of hardening in the docs 2021-04-18 15:59:36 +05:30
Savyasachee Jha
e2cd6b54f7 Revert "Added some hardening measures to systemd unit files for managing the matrix-synapse service"
This reverts commit 0d754ef4cf.
2021-04-18 15:56:16 +05:30
Savyasachee Jha
8832e048bc Revert "Added changelog"
This reverts commit 5be9e61c1e.
2021-04-18 15:56:15 +05:30
Savyasachee Jha
83d2f62263 Revert "Changed the changelog extension to correct one"
This reverts commit 1de1225767.
2021-04-18 15:56:14 +05:30
Savyasachee Jha
2978ae1b16 Revert "Added change to debian changelog"
This reverts commit f70c7aa89a.
2021-04-18 15:56:12 +05:30
Savyasachee Jha
df647d64c3 Revert "Added full stop to the end of changelog line"
This reverts commit bfc08191a6.
2021-04-18 15:56:11 +05:30
Savyasachee Jha
6783198b5f Revert "Renamed changelog file to correct pull request number"
This reverts commit 2a3b35885f.
2021-04-18 15:56:06 +05:30
Savyasachee Jha
006576fc1c Revert "Update debian/matrix-synapse.service to match ordering in documentation"
This reverts all the commits made to harden service files till now.
2021-04-18 15:55:21 +05:30
Savyasachee Jha
84fad5ecf9 Update debian/matrix-synapse.service to match ordering in documentation
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-04-14 19:14:32 +05:30
Savyasachee Jha
2a3b35885f Renamed changelog file to correct pull request number 2021-04-13 21:29:16 +05:30
Savyasachee Jha
bfc08191a6 Added full stop to the end of changelog line 2021-04-13 21:25:22 +05:30
Savyasachee Jha
f70c7aa89a Added change to debian changelog 2021-04-13 21:21:57 +05:30
Savyasachee Jha
1de1225767 Changed the changelog extension to correct one 2021-04-13 21:11:51 +05:30
Savyasachee Jha
5be9e61c1e Added changelog 2021-04-13 19:47:05 +05:30
Savyasachee Jha
0d754ef4cf Added some hardening measures to systemd unit files for managing the matrix-synapse service 2021-04-13 19:39:43 +05:30
Andrew Morgan
d9bd181a3f Update changelog for v1.32.0 v1.32.0rc1 2021-04-13 14:39:06 +01:00
Andrew Morgan
3efd98aa1c 1.32.0rc1 2021-04-13 14:23:43 +01:00
Erik Johnston
c1dbe84c3d Add release helper script (#9713)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-04-13 11:51:10 +01:00
Dan Callahan
1d5f0e3529 Bump black configuration to target py36 (#9781)
Signed-off-by: Dan Callahan <danc@element.io>
2021-04-13 10:41:34 +01:00
Dirk Klimpel
1fc97ee876 Add an admin API to manage ratelimit for a specific user (#9648) 2021-04-13 10:26:37 +01:00
Dan Callahan
a7044e5c0f Drop Python 3.5 from Trove classifier metadata. (#9782)
* Drop Python 3.5 from Trove classifier metadata.

Signed-off-by: Dan Callahan <danc@element.io>
2021-04-12 16:00:28 +01:00
Dan Callahan
3efde8b69a Add option to skip unit tests when building debs (#9793)
Signed-off-by: Dan Callahan <danc@element.io>
2021-04-12 15:27:05 +01:00
Will Hunt
e300ef64b1 Require AppserviceRegistrationType (#9548)
This change ensures that the appservice registration behaviour follows the spec. We decided to do this for Dendrite, so it made sense to also make a PR for synapse to correct the behaviour.
2021-04-12 15:13:55 +01:00
Patrick Cloke
0b3112123d Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
Richard van der Hoff
f946450184 Fix duplicate logging of exceptions in transaction processing (#9780)
There's no point logging this twice.
2021-04-09 18:12:15 +01:00
Patrick Cloke
abc814dcbf Enable complement tests for MSC2946. (#9771)
By providing the additional build tag for `msc2946`.
2021-04-09 08:11:51 -04:00
Dan Callahan
0277b8f3e6 Proof of concept for GitHub Actions (#9661)
Signed-off-by: Dan Callahan <danc@element.io>
2021-04-09 10:54:30 +01:00
Dirk Klimpel
48a1f4db31 Remove old admin API GET /_synapse/admin/v1/users/<user_id> (#9401)
Related: #8334
Deprecated in: #9429 - Synapse 1.28.0 (2021-02-25)

`GET /_synapse/admin/v1/users/<user_id>` has no
- unit tests
- documentation

API in v2 is available (#5925 - 12/2019, v1.7.0).
API is misleading. It expects `user_id` and returns a list of all users.

Signed-off-by: Dirk Klimpel dirk@klimpel.org
2021-04-09 09:44:40 +01:00
Jonathan de Jong
2ca4e349e9 Bugbear: Add Mutable Parameter fixes (#9682)
Part of #9366

Adds in fixes for B006 and B008, both relating to mutable parameter lint errors.

Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>
2021-04-08 22:38:54 +01:00
Richard van der Hoff
64f4f506c5 Merge pull request #9766 from matrix-org/rav/drop_py35
Require py36, Postgres 9.6, and sqlite 3.22
2021-04-08 19:29:03 +01:00
Richard van der Hoff
9e167d9c53 Merge remote-tracking branch 'origin/develop' into rav/drop_py35 2021-04-08 18:30:38 +01:00
Richard van der Hoff
24c58ebfc9 remove unused param on make_tuple_comparison_clause 2021-04-08 18:29:57 +01:00
Richard van der Hoff
88b9414e32 Merge pull request #9769 from matrix-org/rav/fix_bionic
Fix incompatibility with bionic
2021-04-08 18:26:51 +01:00
Erik Johnston
be0e722fe1 Merge branch 'erikj/fix_stalled_catchup' into develop 2021-04-08 18:05:35 +01:00
Erik Johnston
3a569fb200 Fix sharded federation sender sometimes using 100% CPU.
We pull all destinations requiring catchup from the DB in batches.
However, if all those destinations get filtered out (due to the
federation sender being sharded), then the `last_processed` destination
doesn't get updated, and we keep requesting the same set repeatedly.
2021-04-08 17:34:07 +01:00
Richard van der Hoff
77e56deffc update test_old_deps script 2021-04-08 16:44:07 +01:00
Richard van der Hoff
04ff88139a Update tox.ini to remove py35 2021-04-08 16:43:04 +01:00
Richard van der Hoff
9278eb701e drop support for stretch and xenial 2021-04-08 16:42:32 +01:00
Richard van der Hoff
3ada9b4264 Drop support for sqlite<3.22 as well 2021-04-08 16:42:32 +01:00
Richard van der Hoff
abade34633 Require py36 and Postgres 9.6 2021-04-08 16:42:32 +01:00
Richard van der Hoff
906065c75b unpin olddeps build from py36 2021-04-08 16:41:35 +01:00
Richard van der Hoff
5edd91caec Fix incompatibility with tox 2.5
Apparently on tox 2.5, `usedevelop` overrides `skip_install`, so we end up
trying to install the full dependencies even for the `-old` environment.
2021-04-08 16:22:45 +01:00
Johannes Wienke
cb657eb2f8 Put opencontainers labels to the final image (#9765)
They don't make any sense on the intermediate builder image. The final
images needs them to be of use for anyone.

Signed-off-by: Johannes Wienke <languitar@semipol.de>
2021-04-08 13:49:14 +01:00
Patrick Cloke
452991527a MSC3083: Check for space membership during a local join of restricted rooms. (#9735)
When joining a room with join rules set to 'restricted', check if the
user is a member of the spaces defined in the 'allow' key of the join rules.

This only applies to an experimental room version, as defined in MSC3083.
2021-04-08 08:28:32 -04:00
Patrick Cloke
48d44ab142 Record more information into structured logs. (#9654)
Records additional request information into the structured logs,
e.g. the requester, IP address, etc.
2021-04-08 08:01:14 -04:00
Andrew Morgan
0d87c6bd12 Don't report anything from GaugeBucketCollector metrics until data is present (#8926)
This PR modifies `GaugeBucketCollector` to only report data once it has been updated, rather than initially reporting a value of 0. Fixes zero values being reported for some metrics on startup until a background job to update the metric's value runs later.
2021-04-06 16:32:04 +01:00