1
0
Commit Graph

14849 Commits

Author SHA1 Message Date
Andrew Morgan c38b54a802 Only count non-cache state resolution 2020-02-10 18:53:54 +00:00
Andrew Morgan 9b998d1d29 Use consistent buckets 2020-02-10 18:53:43 +00:00
Andrew Morgan bde5a6b0cc Fix seven contrib files with Python syntax errors (#5446) 2020-02-10 18:47:16 +00:00
Andrew Morgan 3c9b5d5903 Merge pull request #5477 from matrix-org/babolivier/third_party_rules_3pid 2020-02-10 18:35:45 +00:00
Andrew Morgan 1bce7212ee Merge pull request #5479 from matrix-org/erikj/add_create_room_hook_develop 2020-02-10 18:35:16 +00:00
Andrew Morgan 6e4b75ab69 Merge pull request #5478 from matrix-org/joriks/demo_python3 2020-02-10 17:57:28 +00:00
Andrew Morgan 1fc5a6e048 Merge commit '839f9b923' into dinsic-release-v1.1.0 2020-02-10 17:57:05 +00:00
Andrew Morgan 1114a42739 Remove Postgres 9.4 support (#5448) 2020-02-10 17:52:09 +00:00
Andrew Morgan 4c2ba4ef3a Merge pull request #5385 from matrix-org/erikj/reduce_http_exceptions 2020-02-10 17:01:20 +00:00
Andrew Morgan ecdc5752d4 Merge commit 'dd927b29e' into dinsic-release-v1.1.0 2020-02-10 16:53:36 +00:00
Andrew Morgan 9a269724a5 Merge pull request #5389 from matrix-org/erikj/renew_attestations_on_master 2020-02-10 16:53:23 +00:00
Andrew Morgan 8396268752 Move SyTest to Buildkite (#5459) 2020-02-10 16:53:11 +00:00
Andrew Morgan 29b4ea2fc4 Merge pull request #5464 from matrix-org/erikj/3pid_remote_invite_state 2020-02-10 16:47:16 +00:00
Andrew Morgan 0300c033e0 Merge pull request #5440 from matrix-org/babolivier/third_party_event_rules 2020-02-10 16:47:02 +00:00
Andrew Morgan 72c14cb133 Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitive 2020-02-10 16:39:29 +00:00
Andrew Morgan dd486836f7 Merge remote-tracking branch 'dinsic/dinsic' into dinsic-release-v1.1.0 2020-02-10 16:37:49 +00:00
Andrew Morgan 5f3fb66b57 Merge pull request #5465 from matrix-org/babolivier/fix_deactivation_bg_job 2020-02-10 16:00:39 +00:00
Andrew Morgan 49e9dc2600 Merge pull request #5462 from matrix-org/babolivier/account_validity_deactivated_accounts_2 2020-02-10 16:00:01 +00:00
Andrew Morgan 3ae03c7ed2 Merge pull request #5460 from matrix-org/joriks/demo_python3 2020-02-10 15:58:33 +00:00
Andrew Morgan e6a0f56811 Don't send renewal emails to deactivated users 2020-02-10 15:54:20 +00:00
Andrew Morgan 07d0da8922 Merge pull request #5390 from matrix-org/erikj/dont_log_on_fail_to_get_file 2020-02-10 15:09:47 +00:00
Andrew Morgan 979f3a5e03 Track deactivated accounts in the database (#5378) 2020-02-10 15:08:10 +00:00
Andrew Morgan fab5140c9d Use python3 in the demo 2020-02-10 14:51:10 +00:00
Andrew Morgan 0ed71e4e4b Merge pull request #5458 from matrix-org/hawkowl/fix-prometheus 2020-02-10 14:48:37 +00:00
Andrew Morgan 1dd17ff39f Updates to the federation_client script (#5447) 2020-02-10 14:43:47 +00:00
Andrew Morgan a27e00eb32 Clean up code for sending federation EDUs. (#5381) 2020-02-10 14:43:23 +00:00
Andrew Morgan 9efcd2da53 Expose statistics on extrems to prometheus (#5384) 2020-02-10 14:42:57 +00:00
Andrew Morgan 8ea4191636 Remove Python 2.7 support. (#5425) 2020-02-10 14:41:41 +00:00
Andrew Morgan cafeb5e0e7 Fix resetting password via a phone number (#21) dinsic_2020-02-10 2020-01-24 15:23:31 +00:00
Andrew Morgan 0cc2594966 Validate client_secret parameter according to spec (#20) 2020-01-22 15:52:46 +00:00
Andrew Morgan f4d1ab0027 Add the ability to restrict max avatar filesize and content-type (#19) 2019-12-12 13:51:25 +00:00
Andrew Morgan c7e206b69b Add some flaky sytests to a sytest-blacklist (#17) 2019-12-09 15:17:07 +00:00
Andrew Morgan d49933470d Add limit_profile_requests_to_known_users option (#18) 2019-12-05 11:55:12 +00:00
Andrew Morgan 32b7e20d41 Fix scripts/generate_signing_key.py import statement (#15) 2019-12-03 10:49:29 +00:00
Andrew Morgan b69732705d Capatilise letters after a - in new user displaynames (#14) 2019-12-02 15:10:23 +00:00
Brendan Abolivier c3a2c8c768 Merge pull request #16 from matrix-org/babolivier/dinsic-state-retrieval
Discard retention policies when retrieving state
2019-11-29 14:25:52 +00:00
Brendan Abolivier 9cd241d070 Changelog 2019-11-29 11:37:11 +00:00
Brendan Abolivier f7b12c955b Discard retention policies when retrieving state
Purge jobs don't delete the latest event in a room in order to keep the forward extremity and not break the room. On the other hand, get_state_events, when given an at_token argument calls filter_events_for_client to know if the user can see the event that matches that (sync) token. That function uses the retention policies of the events it's given to filter out those that are too old from a client's view.

Some clients, such as Riot, when loading a room, request the list of members for the latest sync token it knows about, and get confused to the point of refusing to send any message if the server tells it that it can't get that information. This can happen very easily with the message retention feature turned on and a room with low activity so that the last event sent becomes too old according to the room's retention policy.

An easy and clean fix for that issue is to discard the room's retention policies when retrieving state.
2019-11-29 11:35:09 +00:00
Andrew Morgan c446f59047 Hide expired users from user directory, optionally show on renewal (#13) 2019-11-14 18:42:55 +00:00
Andrew Morgan 28578e7568 Add a /user/:user_id/info servlet to give user deactivated/expired information (#12) 2019-11-14 14:22:58 +00:00
Andrew Morgan d6b7606e07 Create configurable ratelimiter for 3pid invites (#11) 2019-11-12 11:38:35 +00:00
Brendan Abolivier b77369079c Merge pull request #10 from matrix-org/babolivier/dinsic-retention-visibility
Don't apply retention policy based filtering on state events
2019-11-11 13:44:01 +00:00
Brendan Abolivier f93e4b6a39 Changelog 2019-11-06 15:53:31 +00:00
Brendan Abolivier dfa60504af Don't apply retention policy based filtering on state events
As per MSC1763, 'Retention is only considered for non-state events.', so don't filter out state events based on the room's retention policy.
2019-11-06 15:47:40 +00:00
Richard van der Hoff 85f15ac592 Support for routing outbound HTTP requests via a proxy (#6239)
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy.

The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`.

The proxy will then be used for
 * push
 * url previews
 * phone-home stats
 * recaptcha validation
 * CAS auth validation

It will *not* be used for:
 * Application Services
 * Identity servers
 * Outbound federation
 * In worker configurations, connections from workers to masters

Fixes #4198.
2019-11-01 14:22:46 +00:00
Brendan Abolivier 3e4527d796 Merge pull request #9 from matrix-org/babolivier/ci
Add SyTest to the BuildKite CI
2019-10-31 23:09:23 +00:00
Brendan Abolivier e6f0536de1 Remove python TAP script 2019-10-31 16:16:25 +00:00
Brendan Abolivier 0559c87007 Don't use test image 2019-10-31 15:49:15 +00:00
Brendan Abolivier 7467a8090c Remove CircleCI configuration 2019-10-23 17:37:50 +01:00
Brendan Abolivier 0263c044ff Move sytest jobs to the right location 2019-10-23 17:37:28 +01:00