Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Merge Synapse release v1.18.0 into 'dinsic' #53

Merged
merged 306 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
2312525
Fix "argument of type 'ObservableDeferred' is not iterable" error (#7…
clokep Jun 16, 2020
f6f7511
Refactor getting replication updates from database. (#7636)
erikjohnston Jun 16, 2020
e452973
fix broken link in sample config (#7712)
richvdh Jun 16, 2020
46613aa
Implement unread counter (MSC2625) (#7673)
babolivier Jun 17, 2020
890c0c0
Update postgres in the Docker compose example to 12-alpine. (#7696)
lub Jun 17, 2020
434716e
Fetch from the r0 media path instead of the unspecced v1. (#7714)
clokep Jun 17, 2020
b44bdd7
Support running multiple media repos. (#7706)
erikjohnston Jun 17, 2020
e07a8ca
Add support for using rust-python-jaeger-reporter (#7697)
erikjohnston Jun 17, 2020
6418b03
Ignore the UI Auth sessions when porting from sqlite to postgresql (#…
clokep Jun 17, 2020
5a5cf64
Fix unread counts in sync
babolivier Jun 17, 2020
96bc110
Require parameterized package version to be at least 0.7.0. (#7680)
OlegGirko Jun 17, 2020
3630825
Convert the typing handler to async/await. (#7679)
clokep Jun 17, 2020
e35d44c
Merge pull request #7716 from matrix-org/babolivier/unread_fix
babolivier Jun 17, 2020
7d28243
add a comment
richvdh Jun 18, 2020
1b1489f
Fixed typo by adding a 'g' to PostgreSQL (#7724)
bitmvr Jun 19, 2020
91e886d
Speed up state res v2 across large state differences. (#7725)
erikjohnston Jun 19, 2020
e060bf4
Convert directory handler to async/await (#7727)
clokep Jun 22, 2020
95e41f3
Allow local media to be marked as safe from being quarantined. (#7718)
clokep Jun 22, 2020
2411025
Sync ignored table names in synapse_port_db to current database schem…
clokep Jun 23, 2020
8bbe87f
Set Content-Length for Metrics requests (#7730)
bluecmd Jun 23, 2020
6920e58
add org.matrix.login.jwt so that m.login.jwt can be deprecated (#7675)
Sorunome Jun 24, 2020
0e0a281
Yield during large v2 state res. (#7735)
erikjohnston Jun 24, 2020
b099ef0
Make tox actions work on Debian 10 (#7703)
ilmari Jun 25, 2020
177b2d0
Move flake8 to end. Don't exit script on failure (#7738)
anoadragon453 Jun 25, 2020
831b31e
Add another yield point to state res v2 (#7746)
erikjohnston Jun 26, 2020
2f6afdd
Explain the purpose of the "tests" conditional dependency requirement…
anoadragon453 Jun 30, 2020
a996580
Add some metrics for inbound and outbound federation processing times…
erikjohnston Jun 30, 2020
71cccf1
Additional configuration options for auto-join rooms (#7763)
clokep Jun 30, 2020
74d3e17
Back out MSC2625 implementation (#7761)
babolivier Jul 1, 2020
dc80a07
1.16.0rc1
anoadragon453 Jul 1, 2020
70e506f
Fixes to CHANGES.md
anoadragon453 Jul 1, 2020
8718021
Pin link in CHANGES.md
anoadragon453 Jul 1, 2020
244dbb0
Fix incorrect error message when database CTYPE was set incorrectly. …
richvdh Jul 1, 2020
1e03513
Fix new metric where we used ms instead of seconds (#7771)
erikjohnston Jul 1, 2020
a6eae69
Type checking for `FederationHandler` (#7770)
richvdh Jul 1, 2020
f01e2ca
Use symbolic names for replication stream names (#7768)
richvdh Jul 1, 2020
e866512
Add early returns to `_check_for_soft_fail` (#7769)
richvdh Jul 1, 2020
e5808c4
Hack to add push priority to push notifications (#7765)
reivilibre Jul 1, 2020
ea26e9a
Ensure that HTML pages served from Synapse include headers to avoid e…
clokep Jul 1, 2020
96e9afe
Correctly handle outliers as prev events over federation
erikjohnston Jul 1, 2020
e8c36e5
1.15.2
clokep Jul 2, 2020
1d61a24
Fix tense in the release notes.
clokep Jul 2, 2020
5ae0a4c
Add links to the fixes.
clokep Jul 2, 2020
244649b
Remove an extraneous space.
clokep Jul 2, 2020
fedb632
Merge tag 'v1.15.2'
clokep Jul 2, 2020
4d978d7
Merge branch 'master' into develop
clokep Jul 2, 2020
f2bcc6e
Merge branch 'master' into release-v1.16.0
clokep Jul 2, 2020
1319e53
1.16.0rc2
clokep Jul 2, 2020
1a76cdf
Move 1.15.2 after 1.16.0rc2.
clokep Jul 2, 2020
6f238a7
Fix a typo.
clokep Jul 2, 2020
f3e0f16
Merge tag 'v1.16.0rc2' into develop
clokep Jul 2, 2020
8097659
Allow YAML config file to contain None (#7779)
kotovalexarian Jul 3, 2020
21a212f
Fix inconsistent handling of upper and lower cases of email addresses…
dklimpel Jul 3, 2020
5cdca53
Merge different Resource implementation classes (#7732)
erikjohnston Jul 3, 2020
62b1ce8
isort 5 compatibility (#7786)
Half-Shot Jul 5, 2020
4e11874
Allow to use higher versions of prometheus_client (#7780)
okurz Jul 6, 2020
57feeab
Don't ignore `set_tweak` actions with no explicit `value`. (#7766)
reivilibre Jul 6, 2020
6d687eb
Convert the appservice handler to async/await. (#7775)
clokep Jul 6, 2020
2a266f4
Add documentation for JWT login type and improve sample config. (#7776)
clokep Jul 6, 2020
d378c3d
Add libwebp dependency to Dockerfile (#7791)
juhovan Jul 6, 2020
67d7756
Refactor getting replication updates from database v2. (#7740)
erikjohnston Jul 7, 2020
76dbd7b
Stop populating unused table `local_invites`. (#7793)
richvdh Jul 7, 2020
96bb01d
Change Caddy links (old is deprecated) (#7789)
NicolaiSoeborg Jul 8, 2020
9889434
1.16.0
richvdh Jul 8, 2020
e7f880c
shuffle changelog slightly
richvdh Jul 8, 2020
59ddcd7
Merge branch 'master' into develop
richvdh Jul 8, 2020
e0c0129
Update the installation docs on apt-transport-https (#7801)
heini Jul 8, 2020
ff0680f
Stop passing bytes when dumping JSON (#7799)
clokep Jul 8, 2020
e7efd8f
Do not use simplejson in Synapse. (#7800)
clokep Jul 8, 2020
ef5ed52
Revert "Update the installation docs on apt-transport-https (#7801)"
richvdh Jul 8, 2020
67593b1
Add `HomeServer.signing_key` property (#7805)
richvdh Jul 8, 2020
2ab0b02
Generate real events when we reject invites (#7804)
richvdh Jul 9, 2020
8fa7fdd
Pass original request headers from workers to the main process. (#7797)
clokep Jul 9, 2020
08c5181
Fix `can only concatenate list (not "tuple") to list` exception (#7810)
richvdh Jul 9, 2020
8ca39bd
Improve stacktraces from exceptions in background processes (#7808)
richvdh Jul 9, 2020
53ee214
`update_membership` declaration: now always returns an event id. (#7809)
richvdh Jul 9, 2020
38e1fac
Fix some spelling mistakes / typos. (#7811)
clokep Jul 9, 2020
4372678
1.17.0rc1
richvdh Jul 9, 2020
cbabcec
Drop incorrectly-added table `local_rejections_stream`. (#7816)
richvdh Jul 10, 2020
c9f7c68
1.16.1
richvdh Jul 10, 2020
e6fbb0c
fix changelog
richvdh Jul 10, 2020
b1beb3f
fix migration, again
richvdh Jul 10, 2020
e66e38b
update changelog
richvdh Jul 10, 2020
e29c443
Fix recursion error when fetching auth chain over federation (#7817)
erikjohnston Jul 10, 2020
f1245dc
Fix resync remote devices on receive PDU in worker mode. (#7815)
erikjohnston Jul 10, 2020
f299441
Add ability to shard the federation sender (#7798)
erikjohnston Jul 10, 2020
8ccb7f0
Merge branch 'master' into release-v1.17.0
richvdh Jul 10, 2020
6cef918
Merge branch 'release-v1.17.0' into develop
richvdh Jul 10, 2020
1bca21e
Include room states on invite events sent to ASes (#6455)
Sorunome Jul 10, 2020
d9e47af
Add types to the server code and remove unused parameter (#7813)
clokep Jul 10, 2020
66a4af8
Do not use canonicaljson to magically handle decoding bytes from JSON…
clokep Jul 10, 2020
29df3d0
1.17.0
richvdh Jul 13, 2020
59e64b6
Merge branch 'master' into develop
richvdh Jul 13, 2020
fa361c8
Update grafana dashboard
richvdh Jul 13, 2020
504c8f3
Fix handling of "off" in encryption_enabled_by_default_for_room_type …
babolivier Jul 13, 2020
457096e
Support handling registration requests across multiple client readers…
clokep Jul 13, 2020
f886a69
Correctly pass app_name to all email templates. (#7829)
erikjohnston Jul 14, 2020
93c8b07
Clearly state built-in ACME no longer works (#7824)
lfaraone Jul 14, 2020
4db1509
Improve the type hints of synapse.api.errors. (#7820)
clokep Jul 14, 2020
77d2c05
Add the option to validate the `iss` and `aud` claims for JWT logins.…
clokep Jul 14, 2020
491f0da
Add delete room admin endpoint (#7613)
dklimpel Jul 14, 2020
8522310
Allow email subjects to be customised through Synapse's configuration…
babolivier Jul 14, 2020
8d0097b
Fix bug in per-room message retention policies. (#7850)
clokep Jul 14, 2020
1d9dca0
remove `retry_on_integrity_error` wrapper for persist_events (#7848)
richvdh Jul 15, 2020
111e70d
Return the proper 403 Forbidden error during errors with JWT logins. …
clokep Jul 15, 2020
b11450d
Convert E2E key and room key handlers to async/await. (#7851)
clokep Jul 15, 2020
f13061d
Fix client reader sharding tests (#7853)
erikjohnston Jul 15, 2020
3a3a618
Use get_users_in_room rather than state handler in typing for speed
erikjohnston Jul 15, 2020
3032b54
Newsfile
erikjohnston Jul 15, 2020
62352c3
Fix typo
erikjohnston Jul 15, 2020
9006e12
Fix tests
erikjohnston Jul 15, 2020
8c7d0f1
Allow accounts to be re-activated from the admin APIs. (#7847)
clokep Jul 15, 2020
97e1159
Merge branch 'erikj/faster_typing' of github.com:matrix-org/synapse i…
erikjohnston Jul 15, 2020
a57df9b
Avoid brand new rooms in `delete_old_current_state_events` (#7854)
richvdh Jul 15, 2020
3545051
Ensure that calls to `json.dumps` are compatible with the standard li…
clokep Jul 15, 2020
12528dc
Remove obsolete comment.
reivilibre Jul 16, 2020
90b0cdd
Add some helper classes for generating ID sequences
richvdh Jul 16, 2020
42509b8
Use `PostgresSequenceGenerator` from `MultiWriterIdGenerator`
richvdh Jul 16, 2020
3c36ae1
Use SequenceGenerator for state group ID allocation
richvdh Jul 16, 2020
c445bc0
Use a postgres sequence to generate guest user IDs
richvdh Jul 16, 2020
16368c8
changelog
richvdh Jul 16, 2020
a973bcb
Add some tiny type annotations (#7870)
richvdh Jul 16, 2020
a827838
Merge pull request #7866 from matrix-org/rav/fix_guest_user_id
richvdh Jul 16, 2020
649a7ea
Add ability to run multiple pusher instances (#7855)
erikjohnston Jul 16, 2020
f2e38ca
Allow moving typing off master (#7869)
erikjohnston Jul 16, 2020
346476d
Reject attempts to join empty rooms over federation (#7859)
richvdh Jul 16, 2020
e530006
Optimise queueing of inbound replication commands (#7861)
richvdh Jul 16, 2020
b0f031f
Combine nginx federation server blocks (#7823)
lfaraone Jul 16, 2020
f460da6
Consistently use `db_to_json` to convert from database values to JSON…
clokep Jul 16, 2020
fff483e
Add admin endpoint to get members in a room. (#7842)
awesome-michael Jul 16, 2020
6fca1b3
Convert _base, profile, and _receipts handlers to async/await (#7860)
clokep Jul 17, 2020
00e57b7
Convert synapse.app to async/await. (#7868)
clokep Jul 17, 2020
6b3ac3b
Convert device handler to async/await (#7871)
clokep Jul 17, 2020
4642fd6
Change "unknown room ver" logging to warning. (#7881)
erikjohnston Jul 17, 2020
852930a
Add a default limit (of 100) to get/sync operations. (#7858)
clokep Jul 17, 2020
a3ad045
Fix TypeError in synapse.notifier (#7880)
erikjohnston Jul 17, 2020
2d2acc1
Stop using 'device_max_stream_id' (#7882)
erikjohnston Jul 17, 2020
a5545cf
Switch to Debian:Slim from Alpine for the docker image (#7839)
maquis196 Jul 17, 2020
1ec2961
Add help for creating a user via docker (#7885)
michaelkaye Jul 17, 2020
d1d5fa6
Fix the trace function for async functions. (#7872)
clokep Jul 17, 2020
f2af3e4
Remove Ubuntu Eoan that is now EOL (#7888)
gary-kim Jul 17, 2020
4380207
Fix deprecation warning due to invalid escape sequences (#7895)
tirkarthi Jul 20, 2020
5ecf98f
Change sample config's postgres user to synapse_user (#7889)
anoadragon453 Jul 20, 2020
a7b06a8
Fix deprecation warning: import ABC from collections.abc (#7892)
tirkarthi Jul 20, 2020
64d2280
Fix a typo in the sample config. (#7890)
ThiefMaster Jul 20, 2020
5662e2b
Remove unused code from synapse.logging.utils. (#7897)
tirkarthi Jul 20, 2020
b7ddece
Lint the contrib/ directory in CI and linting scripts, add synctl to …
anoadragon453 Jul 20, 2020
759481a
Element CSS and logo in email templates (#7919)
jaywink Jul 21, 2020
de11906
Convert room list handler to async/await. (#7912)
clokep Jul 21, 2020
2ccd48e
fix an incorrect comment
richvdh Jul 21, 2020
1599761
Clean up PreserveLoggingContext (#7877)
richvdh Jul 21, 2020
05060e0
Track command processing as a background process (#7879)
richvdh Jul 21, 2020
931b026
Remove an unused prometheus metric (#7878)
richvdh Jul 21, 2020
b74919c
Add debugging to sync response generation (#7929)
richvdh Jul 22, 2020
923c995
Skip serializing /sync response if client has disconnected (#7927)
richvdh Jul 22, 2020
55f2617
Update the dates for ACME v1 EOL
babolivier Jul 22, 2020
a4cf94a
Merge pull request #7934 from matrix-org/babolivier/acme_eol
babolivier Jul 22, 2020
cc9bb3d
Convert the message handler to async/await. (#7884)
clokep Jul 22, 2020
13d7746
Follow-up to admin API to re-activate accounts (#7908)
clokep Jul 22, 2020
68cd935
Convert the federation agent and related code to async/await. (#7874)
clokep Jul 23, 2020
ff22672
Reorder database docs to promote postgresql. (#7933)
michaelkaye Jul 23, 2020
4876af0
Abort federation requests if the client disconnects early (#7930)
richvdh Jul 23, 2020
7078866
Put a cache on `/state_ids` (#7931)
richvdh Jul 23, 2020
83434df
Update the auth providers to be async. (#7935)
clokep Jul 23, 2020
fefe994
Convert presence handler helpers to async/await. (#7939)
clokep Jul 23, 2020
1ec688b
Downgrade warning on client disconnect to INFO (#7928)
richvdh Jul 24, 2020
6a080ea
Return an empty body for OPTIONS requests. (#7886)
clokep Jul 24, 2020
5ea29d7
Convert more of the media code to async/await (#7873)
clokep Jul 24, 2020
53f7b49
Do not convert async functions to Deferreds in the interactive_auth_h…
clokep Jul 24, 2020
e739b20
Fix up types and comments that refer to Deferreds. (#7945)
clokep Jul 24, 2020
b975fa2
Convert state resolution to async/await (#7942)
clokep Jul 24, 2020
3fc8fdd
Support oEmbed for media previews. (#7920)
clokep Jul 27, 2020
c4268e3
Convert tests/rest/admin/test_room.py to unix file endings (#7953)
anoadragon453 Jul 27, 2020
d8a9cd8
Remove hacky error handling for inlineDeferreds. (#7950)
clokep Jul 27, 2020
84d099a
Fix typing replication not being handled on master (#7959)
erikjohnston Jul 27, 2020
1ef9efc
Fix error reporting when using `opentracing.trace` (#7961)
erikjohnston Jul 27, 2020
f88c48f
1.18.0rc1
richvdh Jul 27, 2020
7c2e2c2
update changelog
richvdh Jul 27, 2020
f57b99a
Handle replication commands synchronously where possible (#7876)
richvdh Jul 27, 2020
a8f7ed2
Typing worker needs to handle stream update requests (#7967)
erikjohnston Jul 28, 2020
7000a21
1.18.0rc2
richvdh Jul 28, 2020
2c1b9d6
Update worker docs with recent enhancements (#7969)
erikjohnston Jul 29, 2020
a9631b7
1.18.0
reivilibre Jul 30, 2020
fc0ef72
Add deprecation warnings
reivilibre Jul 30, 2020
320ef98
Fix formatting of changelog and upgrade notes
reivilibre Jul 30, 2020
70032b3
Merge commit '03619324f' into dinsic
anoadragon453 Aug 3, 2020
b98f60d
Merge commit '98c4e35e3' into dinsic
anoadragon453 Aug 3, 2020
48e7f21
Merge commit 'a3f11567d' into dinsic
anoadragon453 Aug 3, 2020
ca1ffa9
Merge commit 'ac51bd581' into dinsic
anoadragon453 Aug 3, 2020
3017e1d
Merge commit '5c5516f80' into dinsic
anoadragon453 Aug 3, 2020
5c4e0e6
Merge commit '231252516' into dinsic
anoadragon453 Aug 3, 2020
c6011c3
Merge commit 'f6f7511a4' into dinsic
anoadragon453 Aug 3, 2020
100a7ea
Merge commit 'e452973fd' into dinsic
anoadragon453 Aug 3, 2020
e64449b
Merge commit '46613aaf7' into dinsic
anoadragon453 Aug 3, 2020
09ddede
Merge commit '890c0c041' into dinsic
anoadragon453 Aug 3, 2020
3261eb7
Merge commit '434716e1d' into dinsic
anoadragon453 Aug 3, 2020
6553158
Merge commit 'b44bdd7f7' into dinsic
anoadragon453 Aug 3, 2020
5cf0efa
Merge commit 'e07a8caf5' into dinsic
anoadragon453 Aug 3, 2020
d9a9142
Merge commit '6418b0379' into dinsic
anoadragon453 Aug 3, 2020
5662b85
Merge commit '5a5cf6460' into dinsic
anoadragon453 Aug 3, 2020
545423f
Merge commit '96bc110a6' into dinsic
anoadragon453 Aug 3, 2020
c9239b4
Merge commit '363082561' into dinsic
anoadragon453 Aug 3, 2020
a97044a
Merge commit 'e35d44c01' into dinsic
anoadragon453 Aug 3, 2020
6ff1a10
Merge commit '1b1489ff1' into dinsic
anoadragon453 Aug 3, 2020
87f941c
Merge commit 'dc80a0762' into dinsic
anoadragon453 Aug 3, 2020
678f9fb
Merge commit 'e8c36e527' into dinsic
anoadragon453 Aug 3, 2020
60a96e4
Merge commit '5cdca53aa' into dinsic
anoadragon453 Aug 4, 2020
229d9e5
Merge commit '98894341e' into dinsic
anoadragon453 Aug 4, 2020
530c8a5
Merge commit '43726783e' into dinsic
anoadragon453 Aug 4, 2020
c89094e
Merge commit 'c9f7c683a' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
80506e8
Merge commit 'e29c44340' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
e8cc7b7
Merge commit 'b1beb3ff5' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
169bbda
Merge commit 'f1245dc3c' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
bf6cf4b
Merge commit 'f299441cc' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
cc8720e
Merge commit '8ccb7f08d' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
ab98006
Merge commit '6cef918a4' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
cf30af5
Merge commit '1bca21e1d' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
4d88e6d
Merge commit 'd9e47af61' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
17cbac5
Merge commit '66a4af8d9' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
7828cd3
Merge commit '29df3d0e9' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
196fdb6
Merge commit '59e64b6d5' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
e57ee9d
Merge commit '504c8f348' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
2bdf70f
Merge commit '457096e6d' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
aed7f97
Merge commit 'f886a6991' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
1a90225
Merge commit '93c8b077e' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
d249d35
Merge commit '4db150951' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
61ac6e2
Merge commit '77d2c0541' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
16a44cf
Merge commit '491f0dab1' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
fd40a70
Merge commit '85223106f' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
dd65904
Merge commit '8d0097bef' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
d9e25be
Merge commit 'a973bcb8a' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
a567e76
Merge commit 'de119063f' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
71b6f38
Merge commit '15997618e' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
1959400
Merge commit '05060e022' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
e10d550
Merge commit '931b02684' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
a189337
Merge commit 'b74919c72' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
38c605a
Merge commit '923c99502' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
b79c362
Merge commit 'a4cf94a3c' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
3b44a55
Merge commit 'cc9bb3dc3' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
e6f84db
Merge commit '13d77464c' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
9413e26
Merge commit '68cd93582' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
a684f57
Merge commit 'ff22672fd' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
c7fb21f
Merge commit '4876af06d' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
7f2e76b
Merge commit 'f88c48f3b' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
b7c5713
Merge commit '7000a215e' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
0b2c404
Merge commit 'a9631b7b4' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
4908c95
Merge commit '320ef9885' into anoa/dinsic_release_1_18_x
anoadragon453 Aug 4, 2020
2ba03d7
dinsic lint
anoadragon453 Aug 4, 2020
5c4aa97
Update isort to v3.8.3
anoadragon453 Aug 4, 2020
24652fb
Changelog
anoadragon453 Aug 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
326 changes: 326 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,11 @@ so, you will need to edit `homeserver.yaml`, as follows:
```

* You will also need to uncomment the `tls_certificate_path` and
`tls_private_key_path` lines under the `TLS` section. You can either
point these settings at an existing certificate and key, or you can
enable Synapse's built-in ACME (Let's Encrypt) support. Instructions
for having Synapse automatically provision and renew federation
certificates through ACME can be found at [ACME.md](docs/ACME.md).
Note that, as pointed out in that document, this feature will not
work with installs set up after November 2019.
`tls_private_key_path` lines under the `TLS` section. You will need to manage
provisioning of these certificates yourself — Synapse had built-in ACME
support, but the ACMEv1 protocol Synapse implements is deprecated, not
allowed by LetsEncrypt for new sites, and will break for existing sites in
late 2020. See [ACME.md](docs/ACME.md).

If you are using your own certificate, be sure to use a `.pem` file that
includes the full certificate chain including any intermediate certificates
Expand Down
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,10 @@ Using PostgreSQL
================

Synapse offers two database engines:
* `SQLite <https://sqlite.org/>`_
* `PostgreSQL <https://www.postgresql.org>`_
* `SQLite <https://sqlite.org/>`_

By default Synapse uses SQLite in and doing so trades performance for convenience.
SQLite is only recommended in Synapse for testing purposes or for servers with
light workloads.

Almost all installations should opt to use PostreSQL. Advantages include:
Almost all installations should opt to use PostgreSQL. Advantages include:

* significant performance improvements due to the superior threading and
caching model, smarter query optimiser
Expand All @@ -207,6 +203,10 @@ Almost all installations should opt to use PostreSQL. Advantages include:
For information on how to install and use PostgreSQL, please see
`docs/postgres.md <docs/postgres.md>`_.

By default Synapse uses SQLite and in doing so trades performance for convenience.
SQLite is only recommended in Synapse for testing purposes or for servers with
light workloads.

.. _reverse-proxy:

Using a reverse proxy with Synapse
Expand All @@ -215,7 +215,7 @@ Using a reverse proxy with Synapse
It is recommended to put a reverse proxy such as
`nginx <https://nginx.org/en/docs/http/ngx_http_proxy_module.html>`_,
`Apache <https://httpd.apache.org/docs/current/mod/mod_proxy_http.html>`_,
`Caddy <https://caddyserver.com/docs/proxy>`_ or
`Caddy <https://caddyserver.com/docs/quick-starts/reverse-proxy>`_ or
`HAProxy <https://www.haproxy.org/>`_ in front of Synapse. One advantage of
doing so is that it means that you can expose the default https port (443) to
Matrix clients without needing to run Synapse with root privileges.
Expand Down
18 changes: 18 additions & 0 deletions UPGRADE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,24 @@ for example:
wget https://packages.matrix.org/debian/pool/main/m/matrix-synapse-py3/matrix-synapse-py3_1.3.0+stretch1_amd64.deb
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb

Upgrading to v1.18.0
====================

Docker `-py3` suffix will be removed in future versions
-------------------------------------------------------

From 10th August 2020, we will no longer publish Docker images with the `-py3` tag suffix. The images tagged with the `-py3` suffix have been identical to the non-suffixed tags since release 0.99.0, and the suffix is obsolete.

On 10th August, we will remove the `latest-py3` tag. Existing per-release tags (such as `v1.18.0-py3`) will not be removed, but no new `-py3` tags will be added.

Scripts relying on the `-py3` suffix will need to be updated.

Redis replication is now recommended in lieu of TCP replication
---------------------------------------------------------------

When setting up worker processes, we now recommend the use of a Redis server for replication. **The old direct TCP connection method is deprecated and will be removed in a future release.**
See `docs/workers.md <docs/workers.md>`_ for more details.

Upgrading to v1.14.0
====================

Expand Down
1 change: 1 addition & 0 deletions changelog.d/53.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Merge mainline Synapse v1.18.0 into the `dinsic` branch.
21 changes: 10 additions & 11 deletions contrib/cmdclient/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
""" Starts a synapse client console. """
from __future__ import print_function

from twisted.internet import reactor, defer, threads
from http import TwistedHttpClient

import argparse
import cmd
import getpass
Expand All @@ -28,12 +25,14 @@
import sys
import time
import urllib
import urlparse
from http import TwistedHttpClient

import nacl.signing
import nacl.encoding
import nacl.signing
import urlparse
from signedjson.sign import SignatureVerifyException, verify_signed_json

from signedjson.sign import verify_signed_json, SignatureVerifyException
from twisted.internet import defer, reactor, threads

CONFIG_JSON = "cmdclient_config.json"

Expand Down Expand Up @@ -493,7 +492,7 @@ def do_list(self, line):
"list messages <roomid> from=END&to=START&limit=3"
"""
args = self._parse(line, ["type", "roomid", "qp"])
if not "type" in args or not "roomid" in args:
if "type" not in args or "roomid" not in args:
print("Must specify type and room ID.")
return
if args["type"] not in ["members", "messages"]:
Expand All @@ -508,7 +507,7 @@ def do_list(self, line):
try:
key_value = key_value_str.split("=")
qp[key_value[0]] = key_value[1]
except:
except Exception:
print("Bad query param: %s" % key_value)
return

Expand Down Expand Up @@ -585,7 +584,7 @@ def do_raw(self, line):
parsed_url = urlparse.urlparse(args["path"])
qp.update(urlparse.parse_qs(parsed_url.query))
args["path"] = parsed_url.path
except:
except Exception:
pass

reactor.callFromThread(
Expand Down Expand Up @@ -772,10 +771,10 @@ def main(server_url, identity_server_url, username, token, config_path):
syn_cmd.config = json.load(config)
try:
http_client.verbose = "on" == syn_cmd.config["verbose"]
except:
except Exception:
pass
print("Loaded config from %s" % config_path)
except:
except Exception:
pass

# Twisted-specific: Runs the command processor in Twisted's event loop
Expand Down
10 changes: 5 additions & 5 deletions contrib/cmdclient/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
# limitations under the License.

from __future__ import print_function
from twisted.web.client import Agent, readBody
from twisted.web.http_headers import Headers
from twisted.internet import defer, reactor

from pprint import pformat

import json
import urllib
from pprint import pformat

from twisted.internet import defer, reactor
from twisted.web.client import Agent, readBody
from twisted.web.http_headers import Headers


class HttpClient(object):
Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- traefik.http.routers.https-synapse.tls.certResolver=le-ssl

db:
image: docker.io/postgres:10-alpine
image: docker.io/postgres:12-alpine
# Change that password, of course!
environment:
- POSTGRES_USER=synapse
Expand Down
55 changes: 21 additions & 34 deletions contrib/experiments/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,24 @@
"""


from synapse.federation import ReplicationHandler

from synapse.federation.units import Pdu

from synapse.util import origin_from_ucid

from synapse.app.homeserver import SynapseHomeServer

# from synapse.logging.utils import log_function

from twisted.internet import reactor, defer
from twisted.python import log

import argparse
import curses.wrapper
import json
import logging
import os
import re

import cursesio
import curses.wrapper

from twisted.internet import defer, reactor
from twisted.python import log

from synapse.app.homeserver import SynapseHomeServer
from synapse.federation import ReplicationHandler
from synapse.federation.units import Pdu
from synapse.util import origin_from_ucid

# from synapse.logging.utils import log_function


logger = logging.getLogger("example")
Expand All @@ -75,7 +72,7 @@ def on_line(self, line):
"""

try:
m = re.match("^join (\S+)$", line)
m = re.match(r"^join (\S+)$", line)
if m:
# The `sender` wants to join a room.
(room_name,) = m.groups()
Expand All @@ -84,7 +81,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^invite (\S+) (\S+)$", line)
m = re.match(r"^invite (\S+) (\S+)$", line)
if m:
# `sender` wants to invite someone to a room
room_name, invitee = m.groups()
Expand All @@ -93,7 +90,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^send (\S+) (.*)$", line)
m = re.match(r"^send (\S+) (.*)$", line)
if m:
# `sender` wants to message a room
room_name, body = m.groups()
Expand All @@ -102,7 +99,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^backfill (\S+)$", line)
m = re.match(r"^backfill (\S+)$", line)
if m:
# we want to backfill a room
(room_name,) = m.groups()
Expand Down Expand Up @@ -201,16 +198,6 @@ def on_receive_pdu(self, pdu):
% (pdu.context, pdu.pdu_type, json.dumps(pdu.content))
)

# def on_state_change(self, pdu):
##self.output.print_line("#%s (state) %s *** %s" %
##(pdu.context, pdu.state_key, pdu.pdu_type)
##)

# if "joinee" in pdu.content:
# self._on_join(pdu.context, pdu.content["joinee"])
# elif "invitee" in pdu.content:
# self._on_invite(pdu.origin, pdu.context, pdu.content["invitee"])

def _on_message(self, pdu):
""" We received a message
"""
Expand Down Expand Up @@ -314,7 +301,7 @@ def backfill(self, room_name, limit=5):
return self.replication_layer.backfill(dest, room_name, limit)

def _get_room_remote_servers(self, room_name):
return [i for i in self.joined_rooms.setdefault(room_name).servers]
return list(self.joined_rooms.setdefault(room_name).servers)

def _get_or_create_room(self, room_name):
return self.joined_rooms.setdefault(room_name, Room(room_name))
Expand All @@ -334,7 +321,7 @@ def main(stdscr):
user = args.user
server_name = origin_from_ucid(user)

## Set up logging ##
# Set up logging

root_logger = logging.getLogger()

Expand All @@ -354,7 +341,7 @@ def main(stdscr):
observer = log.PythonLoggingObserver()
observer.start()

## Set up synapse server
# Set up synapse server

curses_stdio = cursesio.CursesStdIO(stdscr)
input_output = InputOutput(curses_stdio, user)
Expand All @@ -368,16 +355,16 @@ def main(stdscr):

input_output.set_home_server(hs)

## Add input_output logger
# Add input_output logger
io_logger = IOLoggerHandler(input_output)
io_logger.setFormatter(formatter)
root_logger.addHandler(io_logger)

## Start! ##
# Start!

try:
port = int(server_name.split(":")[1])
except:
except Exception:
port = 12345

app_hs.get_http_server().start_listening(port)
Expand Down
Loading