Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add an experimental room version to support restricted join rules. (#9717) | Patrick Cloke | 2021-03-31 | 1 | -6/+22 |
| | | | Per MSC3083. | ||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -3/+7 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Ensure that event.redacts is the proper type before handling it (#8457) | Patrick Cloke | 2020-10-05 | 1 | -0/+2 |
| | | | This fixes a bug when backfilling invalid events. | ||||
* | Convert events worker database to async/await. (#8071) | Patrick Cloke | 2020-08-18 | 1 | -1/+1 |
| | |||||
* | Fix recursion error when fetching auth chain over federation (#7817) | Erik Johnston | 2020-07-10 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | When fetching the state of a room over federation we receive the event IDs of the state and auth chain. We then fetch those events that we don't already have. However, we used a function that recursively fetched any missing auth events for the fetched events, which can lead to a lot of recursion if the server is missing most of the auth chain. This work is entirely pointless because would have queued up the missing events in the auth chain to be fetched already. Let's just diable the recursion, since it only gets called from one place anyway. | ||||
* | Add type hints to event_auth code. (#7505) | Patrick Cloke | 2020-05-15 | 1 | -32/+46 |
| | |||||
* | Enforce MSC2209: auth rules for notifications in power level event (#7502) | Patrick Cloke | 2020-05-14 | 1 | -2/+10 |
| | | | | In a new room version, the "notifications" key of power level events are subject to restricted auth rules. | ||||
* | Remove special auth and redaction rules for aliases events in experimental ↵ | Patrick Cloke | 2020-03-09 | 1 | -5/+3 |
| | | | | room ver. (#7037) | ||||
* | fix bad variable ref | Richard van der Hoff | 2020-01-28 | 1 | -1/+1 |
| | |||||
* | Implement updated auth rules from MSC2260 | Richard van der Hoff | 2020-01-28 | 1 | -5/+19 |
| | |||||
* | Pass room version object into event_auth.check and check_redaction (#6788) | Richard van der Hoff | 2020-01-28 | 1 | -13/+21 |
| | | | | | | | These are easier to work with than the strings and we normally have one around. This fixes `FederationHander._persist_auth_tree` which was passing a RoomVersion object into event_auth.check instead of a string. | ||||
* | Fixup synapse.api to pass mypy (#6733) | Erik Johnston | 2020-01-20 | 1 | -1/+1 |
| | |||||
* | Merge release-v1.7.1 into develop | Richard van der Hoff | 2019-12-18 | 1 | -7/+8 |
|\ | |||||
| * | Fix bug where we added duplicate event IDs as auth_events (#6560) | Erik Johnston | 2019-12-17 | 1 | -7/+8 |
| | | |||||
| * | Sanity-check room ids in event auth (#6530) | Richard van der Hoff | 2019-12-16 | 1 | -0/+12 |
| | | | | | | | | When we do an event auth operation, check that all of the events involved are in the right room. | ||||
* | | Sanity-check room ids in event auth (#6530) | Richard van der Hoff | 2019-12-13 | 1 | -0/+12 |
| | | | | | | | | When we do an event auth operation, check that all of the events involved are in the right room. | ||||
* | | Remove redundant code from event authorisation implementation. (#6502) | Richard van der Hoff | 2019-12-10 | 1 | -6/+2 |
|/ | |||||
* | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 1 | -1/+1 |
| | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. | ||||
* | Cleanup extra quotes from IDEs (#6236) | Andrew Morgan | 2019-10-23 | 1 | -2/+1 |
| | |||||
* | Cleanup event auth type initialisation (#5975) | Andrew Morgan | 2019-09-04 | 1 | -5/+5 |
| | | | Very small code cleanup. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -120/+57 |
| | |||||
* | Collect room-version variations into one place (#4969) | Richard van der Hoff | 2019-04-01 | 1 | -12/+8 |
| | | | | 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. | ||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-01-29 | 1 | -4/+8 |
|\ | | | | | | | erikj/redactions_eiah | ||||
| * | check event format version not room version | Erik Johnston | 2019-01-29 | 1 | -2/+2 |
| | | |||||
| * | Only check event IDs domain signed event for V1 and V2 | Erik Johnston | 2019-01-29 | 1 | -5/+14 |
| | | | | | | | | Since newer versions of events don't have the same format for event ID. | ||||
* | | Drop vdh support | Erik Johnston | 2019-01-29 | 1 | -1/+1 |
| | | |||||
* | | Implement rechecking of redactions | Erik Johnston | 2019-01-29 | 1 | -6/+18 |
|/ | |||||
* | Pass through room version to event auth | Erik Johnston | 2019-01-25 | 1 | -1/+2 |
| | |||||
* | Add helpers for getting prev and auth events (#4139) | Erik Johnston | 2018-11-06 | 1 | -2/+2 |
| | | | | | | | * Add helpers for getting prev and auth events This is in preparation for allowing the event format to change between room versions. | ||||
* | User event.sender rather than alias event.user_id | Erik Johnston | 2018-10-16 | 1 | -1/+1 |
| | |||||
* | Sanitise error messages when user doesn't have permission to invite | Erik Johnston | 2018-10-03 | 1 | -5/+2 |
| | |||||
* | Fix handling of rejected threepid invites | Erik Johnston | 2018-10-03 | 1 | -1/+1 |
| | |||||
* | Fix error handling for missing auth_event | Richard van der Hoff | 2018-09-26 | 1 | -2/+2 |
| | | | | | | | | | | When we were authorizing an event, if there was no `m.room.create` in its auth_events, we would raise a SynapseError with a cryptic message, which then meant that we would bail out of processing any incoming events, rather than storing a rejection for the faulty event and moving on. We should treat the absent event the same as any other auth failure, by raising an AuthError, so that the event is marked as rejected. | ||||
* | Check m.room.create for sane room_versions | Richard van der Hoff | 2018-08-06 | 1 | -1/+9 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -3/+3 |
| | |||||
* | Avoid relying on int vs None comparison | Erik Johnston | 2018-07-02 | 1 | -1/+5 |
| | | | | Python 3 doesn't support comparing None to ints | ||||
* | Ensure that we define sender_domain | Erik Johnston | 2018-07-02 | 1 | -0/+1 |
| | |||||
* | Make default state_default 50 | Richard van der Hoff | 2018-06-14 | 1 | -20/+14 |
| | | | | | | | Make it so that, before there is a power-levels event in the room, you need a power level of at least 50 to send state. Partially addresses https://github.com/matrix-org/matrix-doc/issues/1192 | ||||
* | Clarify interface for event_auth | Richard van der Hoff | 2018-06-14 | 1 | -18/+16 |
| | | | | | stop pretending that it returns a boolean, which just almost gave me a heart attack. | ||||
* | Refactor get_send_level to take a power_levels event | Richard van der Hoff | 2018-06-14 | 1 | -7/+38 |
| | | | | it makes it easier for me to reason about | ||||
* | Consistently use six's iteritems and wrap lazy keys/values in list() if ↵ | Amber Brown | 2018-05-31 | 1 | -2/+2 |
| | | | | they're not meant to be lazy (#3307) | ||||
* | Fix templating error with unban permission message | Travis Ralston | 2018-01-07 | 1 | -1/+1 |
| | | | | | Fixes https://github.com/matrix-org/synapse/issues/2759 Signed-off-by: Travis Ralston <travpc@gmail.com> | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -2/+2 |
| | | | | what could possibly go wrong | ||||
* | Fix 500 error when fields missing from power_levels event | Richard van der Hoff | 2017-10-17 | 1 | -3/+3 |
| | | | | | If the users or events keys were missing from a power_levels event, then we would throw 500s when trying to auth them. | ||||
* | Use better variable name | Erik Johnston | 2017-01-17 | 1 | -3/+3 |
| | |||||
* | Optimise state resolution | Erik Johnston | 2017-01-17 | 1 | -6/+43 |
| | |||||
* | Split event auth code into seperate module | Erik Johnston | 2017-01-13 | 1 | -0/+641 |