summary refs log tree commit diff
path: root/.gitignore (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-11Reduce INFO logging (#8050)Erik Johnston4-25/+74
c.f. #8021 A lot of the code here is to change the `Completed 200 OK` logging to include the request URI so that we can drop the `Sending request...` log line. Some notes: 1. We won't log retries, which may be confusing considering the time taken log line includes retries and sleeps. 2. The `_send_request_with_optional_trailing_slash` will always be logged *without* the forward slash, even if it succeeded only with the forward slash.
2020-08-11Change the default log config to reduce disk I/O and storage (#8040)Erik Johnston3-10/+73
* Change default log config to buffer by default. This batches up writes to the filesystem, which is more efficient for disk I/O. This means that it can take some time for logs to get written to disk. Note that ERROR logs (and above) immediately flush the buffer. This only effects new installs, as we only write the log config if started with `--generate-config` (in the same way we do for generating signing keys). * Default to keeping last 4 days of logs. This hopefully reduces the amount of logs kept for new servers. Keeping the last 1GB of logs is likely overkill for new servers, but equally may not be enough for busy ones. Instead, we keep the last four days worth of logs, enough so that admins can investigate any problems that happened over e.g. a long weekend.
2020-08-11Implement login blocking based on SAML attributes (#8052)Richard van der Hoff6-11/+159
Hopefully this mostly speaks for itself. I also did a bit of cleaning up of the error handling. Fixes #8047
2020-08-10Stop uploading -py3 docker images (#8056)Richard van der Hoff2-4/+3
2020-08-10Add an assertion on prev_events in create_new_client_event (#8041)Richard van der Hoff3-0/+14
I think this would have caught all the cases in https://github.com/matrix-org/synapse/issues/7642 - and I think a 500 makes more sense here than a 403
2020-08-10TypoBrendan Abolivier1-1/+1
2020-08-10LintBrendan Abolivier1-2/+2
2020-08-10why mypy whyBrendan Abolivier1-1/+3
2020-08-07Convert directory, e2e_room_keys, end_to_end_keys, monthly_active_users ↵Patrick Cloke10-120/+141
database to async (#8042)
2020-08-07Convert additional database stores to async/await (#8045)Patrick Cloke6-152/+107
2020-08-07Clarify that undoing a shutdown might not be possible (#8010)Travis Ralston2-3/+11
2020-08-07Add a comment about SSLv23_METHOD (#8043)Richard van der Hoff2-0/+9
2020-08-07Don't log OPTIONS request at INFO (#8049)Erik Johnston2-1/+8
2020-08-07Remove unnecessary maybeDeferred calls (#8044)Patrick Cloke5-7/+5
2020-08-07Add health check endpoint (#8048)Erik Johnston7-3/+90
2020-08-07Reduce unnecessary whitespace in JSON. (#7372)David Vo15-53/+56
2020-08-06LintBrendan Abolivier1-1/+1
2020-08-06Incorporate reviewBrendan Abolivier1-2/+2
2020-08-06Revert #7736 (#8039)Brendan Abolivier12-339/+19
2020-08-06Convert some util functions to async (#8035)Patrick Cloke4-61/+39
2020-08-06Convert synapse.api to async/await (#8031)Patrick Cloke22-160/+172
2020-08-06Convert run_as_background_process inner function to async. (#8032)Patrick Cloke4-26/+16
2020-08-06Improve performance of the register endpoint (#8009)Patrick Cloke6-74/+146
2020-08-06Incorporate reviewBrendan Abolivier4-21/+12
2020-08-06Fixup worker doc (again) (#8000)Erik Johnston3-14/+43
2020-08-05Rename database classes to make some sense (#8033)Erik Johnston337-1323/+1408
2020-08-05Stop the parent process flushing the logs on exit (#8012)Richard van der Hoff4-3/+10
This solves the problem that the first few lines are logged twice on matrix.org. Hopefully the comments explain it.
2020-08-05bug report template: move comments into comment (#8030)Richard van der Hoff1-2/+2
2020-08-04Spruce up the check-newsfragment CI output (#8024)Andrew Morgan2-1/+13
This PR: * Reduces the amount of noise in the `check-newsfragment` CI output by hiding the dependency installation output by default. * Prints a link to the changelog/debian changelog section of the contributing guide if an error is found.
2020-08-04Fix async/await calls for broken media providers. (#8027)Patrick Cloke3-22/+21
2020-08-04Convert the SimpleHttpClient to async. (#8016)Patrick Cloke3-32/+26
2020-08-04Convert streams to async. (#8014)Patrick Cloke10-30/+27
2020-08-04re-implement daemonize (#8011)Richard van der Hoff4-14/+135
This has long been something I've wanted to do. Basically the `Daemonize` code is both too flexible and not flexible enough, in that it offers a bunch of features that we don't use (changing UID, closing FDs in the child, logging to syslog) and doesn't offer a bunch that we could do with (redirecting stdout/err to a file instead of /dev/null; having the parent not exit until the child is running). As a first step, I've lifted the Daemonize code and removed the bits we don't use. This should be a non-functional change. Fixing everything else will come later.
2020-08-03Remove signature check on v1 identity server lookups (#8001)Andrew Morgan2-31/+4
We've [decided](https://github.com/matrix-org/synapse/issues/5253#issuecomment-665976308) to remove the signature check for v1 lookups. The signature check has been removed in v2 lookups. v1 lookups are currently deprecated. As mentioned in the above linked issue, this verification was causing deployments for the vector.im and matrix.org IS deployments, and this change is the simplest solution, without being unjustified. Implementations are encouraged to use the v2 lookup API as it has [increased privacy benefits](https://github.com/matrix-org/matrix-doc/pull/2134).
2020-08-03Prevent join->join membership transitions changing member count (#7977)Andrew Morgan6-13/+126
`StatsHandler` handles updates to the `current_state_delta_stream`, and updates room stats such as the amount of state events, joined users, etc. However, it counts every new join membership as a new user entering a room (and that user being in another room), whereas it's possible for a user's membership status to go from join -> join, for instance when they change their per-room profile information. This PR adds a check for join->join membership transitions, and bails out early, as none of the further checks are necessary at that point. Due to this bug, membership stats in many rooms have ended up being wildly larger than their true values. I am not sure if we also want to include a migration step which recalculates these statistics (possibly using the `_populate_stats_process_rooms` bg update). Bug introduced in the initial implementation https://github.com/matrix-org/synapse/pull/4338.
2020-08-03Implement handling of HTTP HEAD requests. (#7999)Patrick Cloke3-8/+54
2020-08-03Convert the crypto module to async/await. (#8003)Patr