- Mar 04, 2021
-
-
Richard van der Hoff authored
Following the advice at https://prometheus.io/docs/practices/instrumentation/#timestamps-not-time-since, it's preferable to export unix timestamps, not ages. There doesn't seem to be any particular naming convention for timestamp metrics.
-
Richard van der Hoff authored
Add prom metrics for number of users successfully registering and logging in, by SSO provider.
-
Richard van der Hoff authored
This great big stack of commits is a a whole load of hoop-jumping to make it easier to store additional values in login tokens, and then to actually store the SSO Identity Provider in the login token. (Making use of that data will follow in a subsequent PR.)
-
Erik Johnston authored
-
Erik Johnston authored
-
- Mar 03, 2021
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
Should fix some remaining warnings
-
Erik Johnston authored
Turns out matrix.org has an event that has duplicate auth events (which really isn't supposed to happen, but here we are). This caused the background update to fail due to `UniqueViolation`.
-
Patrick Cloke authored
-
Dirk Klimpel authored
-
Patrick Cloke authored
-
Erik Johnston authored
-
Richard van der Hoff authored
Turns out nginx overwrites the Host header by default.
-
Aaron authored
Prevent presence background jobs from running when presence is disabled Signed-off-by:
Aaron Raimist <aaron@raim.ist>
-
- Mar 02, 2021
-
-
Patrick Cloke authored
This reverts commit f5c93fc9. This is being backed out due to a regression (#9507) and additional review feedback being provided.
-
Erik Johnston authored
It landed in schema version 58 after 59 had been created, causing some servers to not run it. The main effect of was that not all rooms had their chain cover calculated correctly. After the BG updates complete the chain covers will get fixed when a new state event in the affected rooms is received.
-
Erik Johnston authored
Fixes #9504
-
Dirk Klimpel authored
-
- Mar 01, 2021
-
-
Patrick Cloke authored
-
Patrick Cloke authored
By consuming the response if the headers imply that the content is too large.
-
Patrick Cloke authored
This also pins the Twisted version in the mypy job for CI until proper type hints are fixed throughout Synapse.
-
- Feb 26, 2021
-
-
Jonathan de Jong authored
In #75, bytecode was disabled (from a bit of FUD back in `python<2.4` days, according to dev chat), I think it's safe enough to enable it again. Added in `__pycache__/` and `.pyc`/`.pyd` to `.gitignore`, to extra-insure compiled files don't get committed. `Signed-off-by:
Jonathan de Jong <jonathan@automatia.nl>`>
-
Tim Leung authored
### Changes proposed in this PR - Add support for the `no_proxy` and `NO_PROXY` environment variables - Internally rely on urllib's [`proxy_bypass_environment`](https://github.com/python/cpython/blob/bdb941be423bde8b02a5695ccf51c303d6204bed/Lib/urllib/request.py#L2519) - Extract env variables using urllib's `getproxies`/[`getproxies_environment`](https://github.com/python/cpython/blob/bdb941be423bde8b02a5695ccf51c303d6204bed/Lib/urllib/request.py#L2488 ) which supports lowercase + uppercase, preferring lowercase, except for `HTTP_PROXY` in a CGI environment This does contain behaviour changes for consumers so making sure these are called out: - `no_proxy`/`NO_PROXY` is now respected - lowercase `https_proxy` is now allowed and taken over `HTTPS_PROXY` Related to #9306 which also uses `ProxyAgent` Signed-off-by:
Timothy Leung <tim95@hotmail.co.uk>
-
Richard van der Hoff authored
... otherwise, we don't get the cookie back.
-
Richard van der Hoff authored
-
- Feb 25, 2021
-
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
- Feb 24, 2021
-
-
Richard van der Hoff authored
rewrite XForwardedForRequest to set `isSecure()` based on `X-Forwarded-Proto`. Also implement `getClientAddress()` while we're here.
-
Andrew Morgan authored
-
Erik Johnston authored
-
Jonathan de Jong authored
This fixes #8518 by adding a conditional check on `SyncResult` in a function when `prev_stream_token == current_stream_token`, as a sanity check. In `CachedResponse.set.<remove>()`, the result is immediately popped from the cache if the conditional function returns "false". This prevents the caching of a timed-out `SyncResult` (that has `next_key` as the stream key that produced that `SyncResult`). The cache is prevented from returning a `SyncResult` that makes the client request the same stream key over and over again, effectively making it stuck in a loop of requesting and getting a response immediately for as long as the cache keeps those values. Signed-off-by:
Jonathan de Jong <jonathan@automatia.nl>
-
Erik Johnston authored
* Split ShardedWorkerHandlingConfig This is so that we have a type level understanding of when it is safe to call `get_instance(..)` (as opposed to `should_handle(..)`). * Remove special cases in ShardedWorkerHandlingConfig. `ShardedWorkerHandlingConfig` tried to handle the various different ways it was possible to configure federation senders and pushers. This led to special cases that weren't hit during testing. To fix this the handling of the different cases is moved from there and `generic_worker` into the worker config class. This allows us to have the logic in one place and allows the rest of the code to ignore the different cases.
-
Erik Johnston authored
The idea here is to stop people forgetting to call `check_consistency`. Folks can still just pass in `None` to the new args in `build_sequence_generator`, but hopefully they won't.
-
- Feb 23, 2021
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
This confused me for a while.
-