Skip to content
Snippets Groups Projects
  1. Oct 18, 2021
    • 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.
      Unverified
      a5d2ea3d
  2. Oct 01, 2021
  3. Sep 30, 2021
  4. Sep 29, 2021
    • Richard van der Hoff's avatar
      Split `event_auth.check` into two parts (#10940) · 428174f9
      Richard van der Hoff authored
      Broadly, the existing `event_auth.check` function has two parts:
       * a validation section: checks that the event isn't too big, that it has the rught signatures, etc. 
         This bit is independent of the rest of the state in the room, and so need only be done once 
         for each event.
       * an auth section: ensures that the event is allowed, given the rest of the state in the room.
         This gets done multiple times, against various sets of room state, because it forms part of
         the state res algorithm.
      
      Currently, this is implemented with `do_sig_check` and `do_size_check` parameters, but I think
      that makes everything hard to follow. Instead, we split the function in two and call each part
      separately where it is needed.
      Unverified
      428174f9
  5. Aug 09, 2021
  6. Jul 26, 2021
  7. Jul 14, 2021
  8. Apr 14, 2021
  9. Mar 31, 2021
  10. Feb 16, 2021
  11. May 15, 2020
  12. May 14, 2020
  13. Mar 09, 2020
  14. Feb 07, 2020
  15. Jan 28, 2020
  16. May 10, 2019
  17. Apr 01, 2019
  18. Jan 25, 2019
  19. Aug 10, 2018
  20. Jul 09, 2018
  21. Jun 14, 2018
Loading