summary refs log tree commit diff
path: root/synapse/logging/context.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-15remove `builtins.buffer` code from storage codeRichard van der Hoff4-31/+5
this is no longer needed on python 3
2020-05-15remove redundant `__func__`Richard van der Hoff2-13/+4
this is a no-op under python 3
2020-05-15remove to_asciiRichard van der Hoff3-38/+12
this is a no-op on python 3.
2020-05-15Remove `exception_to_unicode`Richard van der Hoff2-48/+3
this is a no-op on python 3.
2020-05-15Add Caddy 2 example (#7463)Jeff Peeler2-1/+12
The specific headers that are passed using this new configuration format are Host and X-Forwarded-For, which should be all that's required. Note that for production another matcher should be added in the first section to properly handle the base_url lookup: reverse_proxy /.well-known/matrix/* http://localhost:8008 Signed-off-by: Jeff Peeler <jpeeler@gmail.com>
2020-05-15Update the room member handler to use async/await. (#7507)Patrick Cloke3-74/+59
2020-05-15Implement room version 6 (MSC2240). (#7506)Patrick Cloke5-41/+14
2020-05-15Ignore incoming presence updates when presence is disabled (#7508)Andrew Morgan2-2/+5
2020-05-14Strictly enforce canonicaljson requirements in a new room version (#7381)Patrick Cloke7-5/+137
2020-05-14remove spurious changelog filesRichard van der Hoff2-2/+0
These PRs have gone straight to `master` and aren't really relevant to the release, so it doesn't make sense to have changelog entries for them.
2020-05-14Notes on using git (#7496)Richard van der Hoff5-58/+261
* general updates to CONTRIBUTING.md * notes on updating your PR * Notes on squash-merging or otherwise * document git branching model
2020-05-14Enforce MSC2209: auth rules for notifications in power level event (#7502)Patrick Cloke4-3/+65
In a new room version, the "notifications" key of power level events are subject to restricted auth rules.
2020-05-14Workaround for failure to wrap reason in Failure (#7473)Andrew Morgan2-0/+8
2020-05-14Fix b'GET' in prometheus metrics (#7503)Richard van der Hoff2-2/+5
2020-05-14Allow expired accounts to logout (#7443)Andrew Morgan5-22/+140
2020-05-14Move EventStream handling into default ReplicationDataHandler (#7493)Erik Johnston5-36/+40
This is so that the logic can happen on both master and workers when we move event persistence out.
2020-05-14Add `instance_map` config and route replication calls (#7495)Erik Johnston3-6/+33
2020-05-141.13.0rc2 v1.13.0rc2Richard van der Hoff1-3/+2
2020-05-141.13.0rc2Richard van der Hoff5-4/+17
2020-05-14Stop `get_joined_users` corruption from custom statuses (#7376)Richard van der Hoff3-2/+52
Fix a bug where the `get_joined_users` cache could be corrupted by custom status events (or other state events with a state_key matching the user ID). The bug was introduced by #2229, but has largely gone unnoticed since then. Fixes #7099, #7373.
2020-05-13Do not validate that the client dict is stable during UI Auth. (#7483)Patrick Cloke4-65/+29
This backs out some of the validation for the client dictionary and logs if this changes during a user interactive authentication session instead.
2020-05-13Allow censoring of events to happen on workers. (#7492)Erik Johnston4-8/+4
This is safe as we can now write to cache invalidation stream on workers, and is required for when we move event persistence off master.
2020-05-13Fix copypasted comment (#7477)Paul Tötterman2-1/+2
Signed-off-by: Paul Tötterman <paul.totterman@iki.fi>
2020-05-13Clean up replication unit tests. (#7490)Erik Johnston8-51/+16
2020-05-13SpellingErik Johnston2-2/+2
2020-05-13Shuffle persist event data store functions. (#7440)Erik Johnston19-1235/+1376
The aim here is to get to a stage where we have a `PersistEventStore` that holds all the write methods used during event persistence, so that we can take that class out of the `DataStore` mixin and instansiate it separately. This will allow us to instansiate it on processes other than master, while also ensuring it is only available on processes that are configured to write to events stream. This is a bit of an architectural change, where we end up with multiple classes per data store (rather than one per data store we have now). We end up having: 1. Storage classes that provide high level APIs that can talk to multiple data stores. 2. Data store modules that consist of classes that must point at the same database instance. 3. Classes in a data store that can be instantiated on processes depending on config.
2020-05-13Fix new flake8 errors (#7489)Patrick Cloke7-12/+19
This is a cherry-pick of 1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (#7470) to the release-v1.13.0 branch.
2020-05-13Have all instances correctly respond to REPLICATE command. (#7475)Erik Johnston4-48/+51
Before all streams were only written to from master, so only master needed to respond to `REPLICATE` commands. Before all instances wrote to the cache invalidation stream, but didn't respond to `REPLICATE`. This was a bug, which could lead to missed rows from cache invalidation stream if an instance is restarted, however all the caches would be empty in that case so it wasn't a problem.
2020-05-13Fix Redis reconnection logic (#7482)Erik Johnston3-2/+15
Proactively send out `POSITION` commands (as if we had just received a `REPLICATE`) when we connect to Redis. This is important as other instances won't notice we've connected to issue a `REPLICATE` command (unlike for direct TCP connections). This is only currently an issue if master process reconnects without restarting (if it restarts then it won't have written anything and so other instances probably won't have missed anything).
2020-05-12Update documentation about SSO mapping providers (#7458)Patrick Cloke3-77/+147
2020-05-12Fix new flake8 errors (#7470)Erik Johnston7-12/+19
2020-05-11Convert federation handler to async/await. (#7459)Patrick Cloke3-21/+17
2020-05-11Convert search code to async/await. (#7460)Patrick Cloke2-24/+21
2020-05-11Allow configuration of Synapse's cache without using synctl or environment ↵Amber Brown32-146/+620
variables (#6391)
2020-05-11Remove unused store method get_hosts_in_room (#7448)Andrew Morgan2-10/+1
2020-05-11Don't UPGRADE database rows v1.13.0rc1Andrew Morgan1-1/+1
2020-05-11RST indentingAndrew Morgan1-2/+2
2020-05-11Put rollback instructions in upgrade notesAndrew Morgan1-0/+19
2020-05-11Fix changelog typoAndrew Morgan1-1/+1
2020-05-11Oh yeah, RSTAndrew Morgan1-2/+1
2020-05-11Absolute URL it is thenAndrew Morgan1-1/+2
2020-05-11Fix upgrade notes linkAndrew Morgan1-1/+1
2020-05-11Provide summary of upgrade issues in changelog. Fix )Andrew Morgan2-12/+33
2020-05-11Move next version notes from changelog to upgrade notesAndrew Morgan2-14/+15
2020-05-11Changelog fixesAndrew Morgan1-3/+3
2020-05-111.13.0rc1Andrew Morgan144-143/+139
2020-05-11Documentation on setting up redis (#7446)Neil Johnson2-60/+108
2020-05-08Rework UI Auth session validation for registration (#7455)Patrick Cloke6-102/+280
Be less strict about validation of UI authentication sessions during registration to match client expecations.
2020-05-08Extend spam checker to allow for multiple modules (#7435)Andrew Morgan6-60/+95
2020-05-08Implement OpenID Connect-based login (#7256)Quentin Gliech21-12/+2163
2020-05-07Add room details admin endpoint (#7317)Manuel Stahl7-1/+165
2020-05-07Fix errors from malformed log line (#7454)Richard van der Hoff2-1/+2
2020-05-07Drop support for redis.dbid (#7450)Richard van der Hoff3-4/+2
Since we only use pubsub, the dbid is irrelevant.
2020-05-07Fixes typo (bellow -> below) (#7449)Patrick Cloke3-2/+3
2020-05-07Add more type hints to SAML handler. (#7445)Patrick Cloke3-12/+18
2020-05-07Support any process writing to cache invalidation stream. (#7436)Erik Johnston26-231/+226
2020-05-07Add a configuration setting for the dummy event threshold (#7422)Brendan Abolivier4-1/+31
Add dummy_events_threshold which allows configuring the number of forward extremities a room needs for Synapse to send forward extremities in it.
2020-05-06Improve per-block CPU and DB usage metrics (#7426)Patrick Cloke2-12/+27
2020-05-06Port group attestation renewal slow down from matrix-org-hotfixes (#7442)Andrew Morgan2-4/+3
2020-05-06Make redis go faster with hiredis (#7439)Richard van der Hoff2-1/+4
For the record, the reason we need this is as follows: each RDATA command comes down the redis pipe as a subscription message. txredisapi as written needs at least three reactor ticks to read each subscription message from the tcp buffer. Hence, once the process gets loaded, it starts getting behind, and eventually redis knifes the connection. it then takes ages for the master to work its way through the backlog, before it reconnects again, during which any commands from any workers are dropped.