Skip to content
Snippets Groups Projects
  1. Oct 27, 2021
  2. Oct 26, 2021
  3. Oct 25, 2021
  4. Oct 22, 2021
  5. Oct 21, 2021
  6. Oct 20, 2021
  7. Oct 19, 2021
  8. Oct 18, 2021
    • Patrick Cloke's avatar
      Add missing type hints to synapse.api. (#11109) · 3ab55d43
      Patrick Cloke authored
      * Convert UserPresenceState to attrs.
      * Remove args/kwargs from error classes and explicitly pass msg/errorcode.
      3ab55d43
    • Richard van der Hoff's avatar
      Check auth on received events' auth_events (#11001) · cc33d9ee
      Richard van der Hoff authored
      Currently, when we receive an event whose auth_events differ from those we expect, we state-resolve between the two state sets, and check that the event passes auth based on the resolved state.
      
      This means that it's possible for us to accept events which don't pass auth at their declared auth_events (or where the auth events themselves were rejected), leading to problems down the line like #10083.
      
      This change means we will:
      
       * ignore any events where we cannot find the auth events
       * reject any events whose auth events were rejected
       * reject any events which do not pass auth at their declared auth_events.
      
      Together with a whole raft of previous work, this is a partial fix to #9595.
      
      Fixes #6643.
      
      Based on #11009.
      cc33d9ee
    • Richard van der Hoff's avatar
      Check *all* auth events for room id and rejection (#11009) · a5d2ea3d
      Richard van der Hoff authored
      This fixes a bug where we would accept an event whose `auth_events` include
      rejected events, if the rejected event was shadowed by another `auth_event`
      with same `(type, state_key)`.
      
      The approach is to pass a list of auth events into
      `check_auth_rules_for_event` instead of a dict, which of course means updating
      the call sites.
      
      This is an extension of #10956.
      a5d2ea3d
Loading