Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove unused DeferredMockCallable | Richard van der Hoff | 2020-12-02 | 1 | -90/+1 |
| | |||||
* | remove unused `resource_for_federation` | Richard van der Hoff | 2020-12-02 | 1 | -17/+0 |
| | | | | This is now only used in `test_typing`, so move it there. | ||||
* | Simplify the way the `HomeServer` object caches its internal attributes. ↵ | Jonathan de Jong | 2020-11-30 | 1 | -1/+1 |
| | | | | | (#8565) Changes `@cache_in_self` to use underscore-prefixed attributes. | ||||
* | Solidify the HomeServer constructor. (#8515) | Jonathan de Jong | 2020-10-15 | 1 | -14/+17 |
| | | | | | | This implements a more standard API for instantiating a homeserver and moves some of the dependency injection into the test suite. More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`. | ||||
* | Clean-up some broken/unused code in the test framework (#8514) | Patrick Cloke | 2020-10-09 | 1 | -68/+54 |
| | |||||
* | Add logging on startup/shutdown (#8448) | Erik Johnston | 2020-10-02 | 1 | -0/+2 |
| | | | | | This is so we can tell what is going on when things are taking a while to start up. The main change here is to ensure that transactions that are created during startup get correctly logged like normal transactions. | ||||
* | Allow background tasks to be run on a separate worker. (#8369) | Patrick Cloke | 2020-10-02 | 1 | -1/+1 |
| | |||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -3/+3 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2020-07-31 | 1 | -12/+4 |
|\ | | | | | | | erikj/add_rate_limiting_to_joins | ||||
| * | Convert storage layer to async/await. (#7963) | Patrick Cloke | 2020-07-28 | 1 | -12/+4 |
| | | |||||
* | | Add ratelimiting on joins | Erik Johnston | 2020-07-31 | 1 | -0/+4 |
|/ | |||||
* | Convert the message handler to async/await. (#7884) | Patrick Cloke | 2020-07-22 | 1 | -1/+3 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -1/+1 |
| | |||||
* | Create a ListenerConfig object (#7681) | Richard van der Hoff | 2020-06-16 | 1 | -0/+1 |
| | | | | | | | | | | This ended up being a bit more invasive than I'd hoped for (not helped by generic_worker duplicating some of the code from homeserver), but hopefully it's an improvement. The idea is that, rather than storing unstructured `dict`s in the config for the listener configurations, we instead parse it into a structured `ListenerConfig` object. | ||||
* | Allow configuration of Synapse's cache without using synctl or environment ↵ | Amber Brown | 2020-05-11 | 1 | -0/+1 |
| | | | | variables (#6391) | ||||
* | Persist user interactive authentication sessions (#7302) | Patrick Cloke | 2020-04-30 | 1 | -4/+4 |
| | | | | | By persisting the user interactive authentication sessions to the database, this fixes situations where a user hits different works throughout their auth session and also allows sessions to persist through restarts of Synapse. | ||||
* | Fix collation for postgres for unit tests (#7359) | Richard van der Hoff | 2020-04-28 | 1 | -1/+4 |
| | | | | When running the UTs against a postgres deatbase, we need to set the collation correctly. | ||||
* | Convert auth handler to async/await (#7261) | Patrick Cloke | 2020-04-15 | 1 | -4/+9 |
| | |||||
* | Clean up some LoggingContext stuff (#7120) | Richard van der Hoff | 2020-03-24 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | * Pull Sentinel out of LoggingContext ... and drop a few unnecessary references to it * Factor out LoggingContext.current_context move `current_context` and `set_context` out to top-level functions. Mostly this means that I can more easily trace what's actually referring to LoggingContext, but I think it's generally neater. * move copy-to-parent into `stop` this really just makes `start` and `stop` more symetric. It also means that it behaves correctly if you manually `set_log_context` rather than using the context manager. * Replace `LoggingContext.alive` with `finished` Turn `alive` into `finished` and make it a bit better defined. | ||||
* | Add `rooms.room_version` column (#6729) | Erik Johnston | 2020-01-27 | 1 | -0/+8 |
| | | | This is so that we don't have to rely on pulling it out from `current_state_events` table. | ||||
* | Split state groups into a separate data store (#6296) | Erik Johnston | 2019-12-20 | 1 | -1/+1 |
| | |||||
* | Add database config class (#6513) | Erik Johnston | 2019-12-18 | 1 | -29/+14 |
| | | | | | This encapsulates config for a given database and is the way to get new connections. | ||||
* | Remove database config parsing from apps. | Erik Johnston | 2019-12-10 | 1 | -2/+0 |
| | |||||
* | Fixup tests | Erik Johnston | 2019-12-05 | 1 | -1/+3 |
| | |||||
* | Implementation of MSC2314 (#6176) | Amber Brown | 2019-11-28 | 1 | -0/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-10-30 | 1 | -1/+0 |
|\ | | | | | | | erikj/split_out_persistence_store | ||||
| * | Option to suppress resource exceeded alerting (#6173) | Neil Johnson | 2019-10-24 | 1 | -1/+0 |
| | | | | | | | | The expected use case is to suppress MAU limiting on small instances | ||||
* | | Use new EventPersistenceStore | Erik Johnston | 2019-10-23 | 1 | -2/+8 |
|/ | |||||
* | Fix postgres unit tests to use prepare_database | Erik Johnston | 2019-10-22 | 1 | -10/+2 |
| | |||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -1/+1 |
| | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :) | ||||
* | Remove non-functional 'expire_access_token' setting (#5782) | Richard van der Hoff | 2019-07-30 | 1 | -1/+0 |
| | | | | | | | | The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656) | ||||
* | Merge tag 'v1.2.0rc2' into develop | Andrew Morgan | 2019-07-24 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | Bugfixes -------- - Fix a regression introduced in v1.2.0rc1 which led to incorrect labels on some prometheus metrics. ([\#5734](https://github.com/matrix-org/synapse/issues/5734)) | ||||
| * | Fix servlet metric names (#5734) | Jorik Schellekens | 2019-07-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | * Fix servlet metric names Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Remove redundant check * Cover all return paths | ||||
* | | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -3/+3 |
|/ | |||||
* | Fixes to the federation rate limiter (#5621) | Richard van der Hoff | 2019-07-05 | 1 | -6/+0 |
| | | | | | | | - Put the default window_size back to 1000ms (broken by #5181) - Make the `rc_federation` config actually do something - fix an off-by-one error in the 'concurrent' limit - Avoid creating an unused `_PerHostRatelimiter` object for every single incoming request | ||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
| | |||||
* | Pass config_dir_path and data_dir_path into Config.read_config. (#5522) | Richard van der Hoff | 2019-06-24 | 1 | -1/+1 |
| | | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -9/+9 |
| | |||||
* | Set default room version to v4. (#5379) | Neil Johnson | 2019-06-06 | 1 | -1/+2 |
| | | | | Set default room version to v4. | ||||
* | Add ability to perform password reset via email without trusting the ↵ | Andrew Morgan | 2019-06-06 | 1 | -1/+0 |
| | | | | | | | | | | | | identity server (#5377) Sends password reset emails from the homeserver instead of proxying to the identity server. This is now the default behaviour for security reasons. If you wish to continue proxying password reset requests to the identity server you must now enable the email.trust_identity_server_for_password_resets option. This PR is a culmination of 3 smaller PRs which have each been separately reviewed: * #5308 * #5345 * #5368 | ||||
* | Make all the rate limiting options more consistent (#5181) | Amber Brown | 2019-05-15 | 1 | -12/+8 |
| | |||||
* | Use correct config option for ratelimiting in tests | Erik Johnston | 2019-05-14 | 1 | -1/+2 |
| | |||||
* | Migrate all tests to use the dict-based config format instead of hanging ↵ | Amber Brown | 2019-05-13 | 1 | -69/+63 |
| | | | | items off HomeserverConfig (#5171) | ||||
* | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 1 | -3/+6 |
| | |||||
* | Collect room-version variations into one place (#4969) | Richard van der Hoff | 2019-04-01 | 1 | -2/+3 |
| | | | | Collect all the things that make room-versions different to one another into one place, so that it's easier to define new room versions. | ||||
* | Use an explicit dbname for postgres connections in the tests. (#4928) | Richard van der Hoff | 2019-03-25 | 1 | -18/+16 |
| | | | | | | I don't have a database with the same name as my user, so leaving the database name unset fails. While we're at it, clear out some unused stuff in the test setup. | ||||
* | Add test | Erik Johnston | 2019-03-20 | 1 | -2/+0 |
| | |||||
* | Use a regular HomeServerConfig object for unit tests | Richard van der Hoff | 2019-03-19 | 1 | -11/+15 |
| | | | | | | | Rather than using a Mock for the homeserver config, use a genuine HomeServerConfig object. This makes for a more realistic test, and means that we don't have to keep remembering to add things to the mock config every time we add a new config setting. | ||||
* | Add ratelimiting on failed login attempts (#4865) | Brendan Abolivier | 2019-03-18 | 1 | -0/+2 |
| | |||||
* | Add ratelimiting on login (#4821) | Brendan Abolivier | 2019-03-15 | 1 | -2/+6 |
| | | | Add two ratelimiters on login (per-IP address and per-userID). | ||||
* | setup master | Amber Brown | 2019-03-11 | 1 | -0/+2 |
| | |||||
* | Disable captcha registration by default in tests | Andrew Morgan | 2019-03-08 | 1 | -0/+1 |
| | |||||
* | Add rate-limiting on registration (#4735) | Brendan Abolivier | 2019-03-05 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rate-limiting for registration * Add unit test for registration rate limiting * Add config parameters for rate limiting on auth endpoints * Doc * Fix doc of rate limiting function Co-Authored-By: babolivier <contact@brendanabolivier.com> * Incorporate review * Fix config parsing * Fix linting errors * Set default config for auth rate limiting * Fix tests * Add changelog * Advance reactor instead of mocked clock * Move parameters to registration specific config and give them more sensible default values * Remove unused config options * Don't mock the rate limiter un MAU tests * Rename _register_with_store into register_with_store * Make CI happy * Remove unused import * Update sample config * Fix ratelimiting test for py2 * Add non-guest test | ||||
* | Update test_typing to use HomeserverTestCase. (#4771) | Richard van der Hoff | 2019-03-04 | 1 | -14/+21 |
| | |||||
* | Move from TravisCI to BuildKite (#4752) | Amber Brown | 2019-02-27 | 1 | -10/+34 |
| | |||||
* | Fix unit tests | Erik Johnston | 2019-02-27 | 1 | -0/+6 |
| | |||||
* | Fix tests | Erik Johnston | 2019-01-25 | 1 | -1/+2 |
| | |||||
* | Revert "Require event format version to parse or create events" | Erik Johnston | 2019-01-25 | 1 | -2/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-01-24 | 1 | -1/+3 |
|\ | | | | | | | erikj/require_format_version | ||||
| * | Fix None guard in config.server.is_threepid_reserved | Neil Johnson | 2019-01-22 | 1 | -1/+3 |
| | | |||||
* | | Fix tests | Erik Johnston | 2019-01-24 | 1 | -1/+2 |
|/ | |||||
* | Return well_known in /login response (#4319) | Richard van der Hoff | 2018-12-24 | 1 | -0/+3 |
| | | | | ... as per MSC1730. | ||||
* | create support user (#4141) | Neil Johnson | 2018-12-14 | 1 | -1/+0 |
| | | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits. | ||||
* | Implement SAML2 authentication (#4267) | Richard van der Hoff | 2018-12-07 | 1 | -0/+1 |
| | | | | | | | | | | | This implements both a SAML2 metadata endpoint (at `/_matrix/saml2/metadata.xml`), and a SAML2 response receiver (at `/_matrix/saml2/authn_response`). If the SAML2 response matches what's been configured, we complete the SSO login flow by redirecting to the client url (aka `RelayState` in SAML2 jargon) with a login token. What we don't yet have is anything to build a SAML2 request and redirect the user to the identity provider. That is left as an exercise for the reader. | ||||
* | Add option to track MAU stats (but not limit people) (#3830) | Travis Ralston | 2018-11-15 | 1 | -0/+1 |
| | |||||
* | Add config variables for enabling terms auth and the policy name (#4142) | Travis Ralston | 2018-11-06 | 1 | -0/+2 |
| | | | | So people can still collect consent the old way if they want to. | ||||
* | Merge branch 'develop' into matthew/autocreate_autojoin | Neil Johnson | 2018-10-04 | 1 | -51/+61 |
|\ | |||||
| * | Disable frozen dicts by default (#3987) | Amber Brown | 2018-10-02 | 1 | -1/+2 |
| | | |||||
| * | Fix userconsent on Python 3 (#3938) | Amber Brown | 2018-10-02 | 1 | -48/+57 |
| | | |||||
* | | move logic into register, fix room alias localpart bug, tests | Neil Johnson | 2018-10-04 | 1 | -0/+1 |
|/ | |||||
* | Fix client IPs being broken on Python 3 (#3908) | Amber Brown | 2018-09-20 | 1 | -2/+25 |
| | |||||
* | Port tests/ to Python 3 (#3808) | Amber Brown | 2018-09-07 | 1 | -15/+19 |
| | |||||
* | Merge pull request #3800 from matrix-org/neilj/remove-guests-from-mau-count hhs-6 | Neil Johnson | 2018-09-06 | 1 | -0/+1 |
|\ | | | | | guest users should not be part of mau total | ||||
| * | ensure guests never enter mau list | Neil Johnson | 2018-09-06 | 1 | -0/+1 |
| | | |||||
* | | Merge branch 'master' into develop | Richard van der Hoff | 2018-09-06 | 1 | -3/+9 |
|\ \ | |/ |/| | |||||
| * | Fix origin handling for pushed transactions | Richard van der Hoff | 2018-09-05 | 1 | -3/+9 |
| | | | | | | | | | | Use the actual origin for push transactions, rather than whatever the remote server claimed. | ||||
* | | Fix tests on postgresql (#3740) | Amber Brown | 2018-09-04 | 1 | -4/+6 |
| | | |||||
* | | move threepid checker to config, add missing yields | Neil Johnson | 2018-08-31 | 1 | -0/+6 |
| | | |||||
* | | Port storage/ to Python 3 (#3725) | Amber Brown | 2018-08-31 | 1 | -0/+2 |
| | | |||||
* | | Fix up tests | Richard van der Hoff | 2018-08-28 | 1 | -2/+6 |
| | | |||||
* | | Change admin_uri to admin_contact in config and errors | Erik Johnston | 2018-08-24 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2018-08-20 | 1 | -61/+155 |
|\| | | | | | | | erikj/refactor_state_handler | ||||
| * | Integrate presence from hotfixes (#3694) | Amber Brown | 2018-08-18 | 1 | -3/+4 |
| | | |||||
| * | add new error type ResourceLimit | Neil Johnson | 2018-08-16 | 1 | -0/+1 |
| | | |||||
| * | replace admin_email with admin_uri for greater flexibility | Neil Johnson | 2018-08-15 | 1 | -1/+1 |
| | | |||||
| * | support admin_email config and pass through into blocking errors, return ↵ | Neil Johnson | 2018-08-13 | 1 | -0/+1 |
| | | | | | | | | AuthError in all cases | ||||
| * | Revert "support admin_email config and pass through into blocking errors, ↵ | Neil Johnson | 2018-08-13 | 1 | -1/+0 |
| | | | | | | | | | | | | return AuthError in all cases" This reverts commit 0d43f991a19840a224d3dac78d79f13d78212ee6. | ||||
| * | support admin_email config and pass through into blocking errors, return ↵ | Neil Johnson | 2018-08-13 | 1 | -0/+1 |
| | | | | | | | | AuthError in all cases | ||||
| * | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -18/+115 |
| | | |||||
| * | Run black. | black | 2018-08-10 | 1 | -43/+35 |
| | | |||||
| * | Merge pull request #3439 from vojeroen/send_sni_for_federation_requests | Richard van der Hoff | 2018-08-10 | 1 | -0/+2 |
| |\ | | | | | | | send SNI for federation requests | ||||
| | * | Merge branch 'develop' into send_sni_for_federation_requests | Richard van der Hoff | 2018-07-27 | 1 | -0/+3 |
| | |\ | |||||
| | * \ | Merge remote-tracking branch 'upstream/develop' into ↵ | Jeroen | 2018-07-14 | 1 | -1/+3 |
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | send_sni_for_federation_requests # Conflicts: # synapse/crypto/context_factory.py | ||||
| | * | | | send SNI for federation requests | Jeroen | 2018-06-24 | 1 | -0/+2 |
| | | | | | |||||
* | | | | | Fix tests | Erik Johnston | 2018-08-09 | 1 | -0/+30 |
|/ / / / | |||||
* | | | | Merge pull request #3655 from matrix-org/neilj/disable_hs | Neil Johnson | 2018-08-09 | 1 | -0/+2 |
|\ \ \ \ | | | | | | | | | | | Flag to disable HS without disabling federation | ||||
| * \ \ \ | Merge branch 'develop' into neilj/disable_hs | Neil Johnson | 2018-08-08 | 1 | -0/+4 |
| |\ \ \ \ | |||||
| * \ \ \ \ | Merge branch 'develop' into neilj/disable_hs | Neil Johnson | 2018-08-08 | 1 | -0/+2 |
| |\ \ \ \ \ | |||||
| * | | | | | | disable HS from config | Neil Johnson | 2018-08-04 | 1 | -0/+2 |
| | | | | | | | |||||
* | | | | | | | Test fixes for Python 3 (#3647) | Amber Brown | 2018-08-09 | 1 | -4/+5 |
| |_|/ / / / |/| | | | | | |||||
* | | | | | | Merge pull request #3654 from matrix-org/rav/room_versions | Richard van der Hoff | 2018-08-08 | 1 | -0/+4 |
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | Support for room versioning | ||||
| * | | | | | Basic support for room versioning | Richard van der Hoff | 2018-08-03 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first tranche of support for room versioning. It includes: * setting the default room version in the config file * new room_version param on the createRoom API * storing the version of newly-created rooms in the m.room.create event * fishing the version of existing rooms out of the m.room.create event | ||||
* | | | | | | mock config.max_mau_value | Neil Johnson | 2018-08-08 | 1 | -0/+1 |
| | | | | | | |||||
* | | | | | | add default mau_limits_reserved_threepids | Neil Johnson | 2018-08-06 | 1 | -0/+1 |
| |/ / / / |/| | | | | |||||
* | | | | | fix (lots of) py3 test failures | Neil Johnson | 2018-08-03 | 1 | -0/+1 |
|/ / / / | |||||
* | | / | Python 3: Convert some unicode/bytes uses (#3569) | Amber Brown | 2018-08-02 | 1 | -3/+6 |
| |_|/ |/| | | |||||
* | | | Admin API for creating new users (#3415) | Amber Brown | 2018-07-20 | 1 | -0/+3 |
| |/ |/| | |||||
* | | Fix unit tests | Richard van der Hoff | 2018-07-13 | 1 | -0/+1 |
| | | |||||
* | | run isort | Amber Brown | 2018-07-09 | 1 | -1/+2 |
|/ | |||||
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 1 | -1/+6 |
| | |||||
* | Reject attempts to send event before privacy consent is given | Richard van der Hoff | 2018-05-22 | 1 | -0/+1 |
| | | | | | | Returns an M_CONSENT_NOT_GIVEN error (cf https://github.com/matrix-org/matrix-doc/issues/1252) if consent is not yet given. | ||||
* | Move consent config parsing into ConsentConfig | Richard van der Hoff | 2018-05-22 | 1 | -1/+1 |
| | | | | turns out we need to reuse this, so it's better in the config class. | ||||
* | Send users a server notice about consent | Richard van der Hoff | 2018-05-22 | 1 | -0/+1 |
| | | | | | When a user first syncs, we will send them a server notice asking them to consent to the privacy policy if they have not already done so. | ||||
* | Merge pull request #3108 from NotAFile/py3-six-urlparse | Richard van der Hoff | 2018-04-30 | 1 | -3/+2 |
|\ | | | | | Use six.moves.urlparse | ||||
| * | Use six.moves.urlparse | Adrian Tschira | 2018-04-15 | 1 | -3/+2 |
| | | | | | | | | | | | | The imports were shuffled around a bunch in py3 Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | | Add some more variables to the unittest config | Adrian Tschira | 2018-04-15 | 1 | -0/+4 |
|/ | | | | | | | These worked accidentally before (python2 doesn't complain if you compare incompatible types) but under py3 this blows up spectacularly Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Add b prefixes to some strings that are bytes in py3 | Adrian Tschira | 2018-04-04 | 1 | -1/+1 |
| | | | | | | This has no effect on python2 Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Add tests for user directory search | Richard van der Hoff | 2018-01-27 | 1 | -0/+1 |
| | |||||
* | Make it possible to run tests against postgres | Richard van der Hoff | 2018-01-27 | 1 | -9/+34 |
| | |||||
* | Create dbpool as normal in tests | Richard van der Hoff | 2018-01-27 | 1 | -43/+17 |
| | | | | | | | | ... instead of creating our own special SQLiteMemoryDbPool, whose purpose was a bit of a mystery. For some reason this makes one of the tests run slightly slower, so bump the sleep(). Sorry. | ||||
* | Run on_new_connection for unit tests | Richard van der Hoff | 2018-01-27 | 1 | -7/+17 |
| | | | | | Configure the connectionpool used for unit tests to run the `on_new_connection` function. | ||||
* | Remove unused/bitrotted MemoryDataStore | Richard van der Hoff | 2018-01-26 | 1 | -151/+13 |
| | | | | This isn't used, and looks thoroughly bitrotted. | ||||
* | Add federation_domain_whitelist option (#2820) | Matthew Hodgson | 2018-01-22 | 1 | -0/+1 |
| | | | | | | Add federation_domain_whitelist gives a way to restrict which domains your HS is allowed to federate with. useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network | ||||
* | Disable user_directory updates for UTs | Richard van der Hoff | 2018-01-09 | 1 | -0/+4 |
| | | | | | Fix flakiness in the UTs caused by the user_directory being updated in the background | ||||
* | fix tests | Richard van der Hoff | 2017-10-31 | 1 | -0/+1 |
| | |||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -4/+4 |
| | | | | what could possibly go wrong | ||||
* | Add a config option to block all room invites (#2457) | Richard van der Hoff | 2017-09-19 | 1 | -0/+1 |
| | | | | | - allows sysadmins the ability to lock down their servers so that people can't send their users room invites. | ||||
* | Only load jinja2 templates once | Erik Johnston | 2017-05-22 | 1 | -0/+1 |
| | | | | | Instead of every time a new email pusher is created, as loading jinja2 templates is slow. | ||||
* | Fix unit tests | Erik Johnston | 2016-12-09 | 1 | -0/+4 |
| | |||||
* | Fix tests | Erik Johnston | 2016-11-23 | 1 | -0/+1 |
| | |||||
* | Fix tests and flake8 | Erik Johnston | 2016-11-22 | 1 | -0/+1 |
| | |||||
* | Fix tests | Erik Johnston | 2016-11-21 | 1 | -0/+2 |
| | |||||
* | Merge pull request #1098 from matrix-org/markjh/bearer_token | Mark Haines | 2016-10-25 | 1 | -4/+14 |
|\ | | | | | Allow clients to supply access_tokens as headers | ||||
| * | Fix unit tests | Mark Haines | 2016-09-12 | 1 | -4/+14 |
| | | |||||
* | | Merge pull request #1164 from pik/error-codes | Erik Johnston | 2016-10-19 | 1 | -1/+1 |
|\ \ | | | | | | | Clarify Error codes for GET /filter/ | ||||
| * | | Fix MockHttpRequest always returning M_UNKNOWN errcode in testing | pik | 2016-10-14 | 1 | -1/+1 |
| | | | |||||
* | | | Implement pluggable password auth | Erik Johnston | 2016-10-03 | 1 | -0/+1 |
|/ / | | | | | | | | | | | Allows delegating the password auth to an external module. This also moves the LDAP auth to using this system, allowing it to be removed from the synapse tree entirely in the future. | ||||
* / | Time out typing over federation | Erik Johnston | 2016-09-23 | 1 | -1/+8 |
|/ | |||||
* | Add `create_requester` function | Richard van der Hoff | 2016-07-26 | 1 | -5/+0 |
| | | | | | Wrap the `Requester` constructor with a function which provides sensible defaults, and use it throughout | ||||
* | Rework ldap integration with ldap3 | Martin Weinelt | 2016-06-22 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | Use the pure-python ldap3 library, which eliminates the need for a system dependency. Offer both a `search` and `simple_bind` mode, for more sophisticated ldap scenarios. - `search` tries to find a matching DN within the `user_base` while employing the `user_filter`, then tries the bind when a single matching DN was found. - `simple_bind` tries the bind against a specific DN by combining the localpart and `user_base` Offer support for STARTTLS on a plain connection. The configuration was changed to reflect these new possibilities. Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de> | ||||
* | Enable use_frozen_events in tests | Erik Johnston | 2016-06-17 | 1 | -0/+1 |
| | |||||
* | Split out the auth handler | David Baker | 2016-06-02 | 1 | -10/+5 |
| | |||||
* | Inject fake room list handler in tests | David Baker | 2016-06-01 | 1 | -0/+2 |
| | | | | Otherwise it tries to start the remote public room list updating looping call which breaks. | ||||
* | Replaces calls to fetch_room_distributions_into with get_joined_hosts_for_room | Mark Haines | 2016-05-16 | 1 | -1/+1 |
| | |||||
* | Create user with expiry | Negi Fazeli | 2016-05-13 | 1 | -0/+1 |
| | | | | | | - Add unittests for client, api and handler Signed-off-by: Negar Fazeli <negar.fazeli@ericsson.com> | ||||
* | Don't require config to create database | Erik Johnston | 2016-04-06 | 1 | -3/+3 |
| | |||||
* | tests/utils: added room_invite_state_types to test config | Patrik Oldsberg | 2016-03-04 | 1 | -0/+1 |
| | | | | Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | ||||
* | Pass whole requester to ratelimiting | Daniel Wagner-Hall | 2016-03-03 | 1 | -0/+5 |
| | | | | This will enable more detailed decisions | ||||
* | Merge pull request #571 from matrix-org/daniel/asids | Daniel Wagner-Hall | 2016-03-03 | 1 | -6/+14 |
|\ | | | | | Mark AS users with their AS's ID | ||||
| * | Mark AS users with their AS's ID | Daniel Wagner-Hall | 2016-02-11 | 1 | -6/+14 |
| | | |||||
* | | Add a /replication API for extracting the updates that happened on | Mark Haines | 2016-03-01 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | synapse This is necessary for replicating the data in synapse to be visible to a separate service because presence and typing notifications aren't stored in a database so won't be visible to another process. This API can be used to either get the raw data by requesting the tables themselves or to just receive notifications for updates by following the streams meta-stream. Returns updates for each table requested a JSON array of arrays with a row for each row in the table. Each table is prefixed by a header row with the: name of the table, current stream_id position for the table, number of rows, number of columns and the names of the columns. This is followed by the rows that have been added to the server since the requester last asked. The API has a timeout and is hooked up to the notifier so that a slave can long poll for updates. | ||||
* | | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 1 | -17/+13 |
| | | |||||
* | | Initial cut | Erik Johnston | 2016-02-17 | 1 | -2/+2 |
|/ | |||||
* | Rename config field to reflect yaml name | Daniel Wagner-Hall | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | Fix the mock homserver used in the tests | Mark Haines | 2016-01-29 | 1 | -0/+1 |
| | |||||
* | Fix tests | Erik Johnston | 2016-01-27 | 1 | -0/+8 |
| | |||||
* | Remove redundated BaseHomeServer | Erik Johnston | 2016-01-26 | 1 | -0/+18 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Host /unstable and /r0 versions of r0 APIs | Daniel Wagner-Hall | 2015-12-01 | 1 | -2/+3 |
| | |||||
* | Test for background updates | Mark Haines | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | Remove more unused parameters | Daniel Wagner-Hall | 2015-11-02 | 1 | -1/+1 |
| | |||||
* | rename schema_prepare to prepare_database | Erik Johnston | 2015-10-13 | 1 | -1/+1 |
| | |||||
* | Expose error more nicely | Erik Johnston | 2015-10-13 | 1 | -1/+1 |
| | |||||
* | Swap out bcrypt for md5 in tests | Daniel Wagner-Hall | 2015-08-26 | 1 | -0/+13 |
| | | | | This reduces our ~8 second sequential test time down to ~7 seconds | ||||
* | Stop looking up "admin", which we never read | Daniel Wagner-Hall | 2015-08-25 | 1 | -1/+0 |
| | |||||
* | Remove completely unused concepts from codebase | Daniel Wagner-Hall | 2015-08-25 | 1 | -2/+1 |
| | | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly. | ||||
* | s/by_token/by_access_token/g | Daniel Wagner-Hall | 2015-08-20 | 1 | -1/+1 |
| | | | | We're about to have two kinds of token, access and refresh | ||||
* | Issue macaroons as opaque auth tokens | Daniel Wagner-Hall | 2015-08-18 | 1 | -0/+2 |
| | | | | | | | | | | | | | This just replaces random bytes with macaroons. The macaroons are not inspected by the client or server. In particular, they claim to have an expiry time, but nothing verifies that they have not expired. Follow-up commits will actually enforce the expiration, and allow for token refresh. See https://bit.ly/matrix-auth for more information | ||||
* | Fix tests | Erik Johnston | 2015-06-12 | 1 | -0/+2 |
| | |||||
* | Discard unused NotifierUserStreams | Mark Haines | 2015-05-13 | 1 | -0/+3 |
| | |||||
* | Don't bother checking for updates if the stream token hasn't advanced for a user | Mark Haines | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | Make work in both Maria and SQLite. Fix tests | Erik Johnston | 2015-04-01 | 1 | -1/+10 |
| | |||||
* | Update tests | Erik Johnston | 2015-02-19 | 1 | -0/+1 |
| | |||||
* | Use git aware version string in User-Agent and Server headers | Erik Johnston | 2015-02-18 | 1 | -2/+8 |
| | |||||
* | Add a cache for get_event | Mark Haines | 2015-02-11 | 1 | -0/+1 |
| | |||||
* | Factor out some of the common homeserver setup code into a | Mark Haines | 2015-02-11 | 1 | -0/+23 |
| | | | | setup_test_homeserver function in utils. | ||||
* | Have MockClock detect attempts to cancel expired timers, to prevent a repeat ↵ | Paul "LeoNerd" Evans | 2015-01-13 | 1 | -4/+16 |
| | | | | of SYN-230 | ||||
* | Kill off synapse.api.events.* | Erik Johnston | 2014-12-16 | 1 | -6/+2 |
| | |||||
* | Fix tests and remove debug logging | Erik Johnston | 2014-12-12 | 1 | -2/+7 |
| | |||||
* | Implement .cancel_call_later() in MockClock | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -2/+5 |
| | |||||
* | Implement .call_later() in MockClock | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -0/+26 |
| | |||||
* | Sign outgoing PDUs. | Mark Haines | 2014-10-16 | 1 | -1/+2 |
| | |||||
* | Raise a SynapseError if the authorisation header is missing or malformed | Mark Haines | 2014-10-13 | 1 | -0/+4 |
| | |||||
* | Verify signatures for server2server requests | Mark Haines | 2014-10-13 | 1 | -0/+3 |
| | |||||
* | Merge branch 'develop' into server2server_signing | Mark Haines | 2014-09-30 | 1 | -2/+9 |
|\ | | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py | ||||
| * | Unbreak tests after changing storage API | Erik Johnston | 2014-09-29 | 1 | -2/+6 |
| | | |||||
| * | Track the IP users connect with. Add an admin column to users table. | Erik Johnston | 2014-09-26 | 1 | -0/+3 |
| | | |||||
| * | Fix test. | Erik Johnston | 2014-09-24 | 1 | -1/+1 |
| | | |||||
* | | Sign federation transactions | Mark Haines | 2014-09-24 | 1 | -0/+15 |
|/ | |||||
* | Move SQLiteMemoryDbPool implementation into tests.utils | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -0/+14 |
| | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | Fix room permissions test | Erik Johnston | 2014-09-02 | 1 | -0/+3 |
| | |||||
* | Fix the tests to include new db calls | Erik Johnston | 2014-09-01 | 1 | -0/+14 |
| | |||||
* | Have MemoryDataStore's get_rooms_for_user_where_membership_is() return room ↵ | Paul "LeoNerd" Evans | 2014-09-01 | 1 | -2/+3 |
| | | | | membership event objects, as per interface contract | ||||
* | Fix a couple of bugs in presence handler related to pushing updatesto the ↵ | Erik Johnston | 2014-08-29 | 1 | -6/+31 |
| | | | | correct user. Fix presence tests. | ||||
* | Ability to assert a DeferredMockCallable has received no calls | Paul "LeoNerd" Evans | 2014-08-28 | 1 | -0/+15 |
| | |||||
* | Remove get_state_for_room function from federation handler | Mark Haines | 2014-08-28 | 1 | -0/+10 |
| | |||||
* | Fill out prev_events before calling persist_event | Mark Haines | 2014-08-27 | 1 | -1/+3 |
| | |||||
* | Merge branch 'develop' into storage_transactions | Mark Haines | 2014-08-26 | 1 | -3/+5 |
|\ | | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py | ||||
| * | Fix ALL THE UNIT TESTS | Kegan Dougal | 2014-08-26 | 1 | -3/+5 |
| | | |||||
* | | Take a snapshot of the state of the room before performing updates | Mark Haines | 2014-08-22 | 1 | -0/+7 |
|/ | |||||
* | Merge branch 'master' of github.com:matrix-org/synapse into sql_refactor | Erik Johnston | 2014-08-19 | 1 | -1/+42 |
|\ | | | | | | | | | | | | | Conflicts: tests/rest/test_presence.py tests/rest/test_rooms.py tests/utils.py | ||||
| * | Add a DeferredMockCallable; like mock's MockCallable but allows awaiting | Paul "LeoNerd" Evans | 2014-08-19 | 1 | -0/+41 |
| | | | | | | | | on method calls to be made later | ||||
| * | Rename MockHttpServer to MockHttpResource as it stands for one server ↵ | Paul "LeoNerd" Evans | 2014-08-19 | 1 | -1/+2 |
| | | | | | | | | resource rather than an entire server | ||||
* | | Change the MemoryDataStore to implement new storage api | Erik Johnston | 2014-08-18 | 1 | -99/+50 |
| | | |||||
* | | Fix some of the tests to reflect changes in the storage layer. | Erik Johnston | 2014-08-15 | 1 | -22/+2 |
|/ | |||||
* | Allow advancing the MockClock's time | Paul "LeoNerd" Evans | 2014-08-13 | 1 | -0/+4 |
| | |||||
* | Move MockClock into tests.utils so we can reüse it | Paul "LeoNerd" Evans | 2014-08-13 | 1 | -0/+10 |
| | |||||
* | add in copyrights to everything, not just the synapse subdir, and add a ↵ | Matthew Hodgson | 2014-08-13 | 1 | -0/+15 |
| | | | | copyrighter.pl whilst we're at it | ||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+252 |