Skip to content
Snippets Groups Projects
  1. Jun 24, 2021
  2. May 12, 2021
  3. Apr 14, 2021
  4. Apr 09, 2021
  5. Mar 30, 2021
    • Erik Johnston's avatar
      Make RateLimiter class check for ratelimit overrides (#9711) · 963f4309
      Erik Johnston authored
      This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.
      
      We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.
      
      Fixes #9663
      Unverified
      963f4309
  6. Feb 16, 2021
  7. Dec 02, 2020
  8. Nov 17, 2020
  9. Oct 29, 2020
    • Erik Johnston's avatar
      Add ability for access tokens to belong to one user but grant access to another user. (#8616) · f21e24ff
      Erik Johnston authored
      We do it this way round so that only the "owner" can delete the access token (i.e. `/logout/all` by the "owner" also deletes that token, but `/logout/all` by the "target user" doesn't).
      
      A future PR will add an API for creating such a token.
      
      When the target user and authenticated entity are different the `Processed request` log line will be logged with a: `{@admin:server as @bob:server} ...`. I'm not convinced by that format (especially since it adds spaces in there, making it harder to use `cut -d ' '` to chop off the start of log lines). Suggestions welcome.
      Unverified
      f21e24ff
  10. Oct 09, 2020
  11. Sep 04, 2020
  12. Aug 27, 2020
  13. Aug 24, 2020
  14. Aug 21, 2020
  15. Aug 06, 2020
  16. Jun 05, 2020
  17. May 06, 2020
  18. Apr 15, 2020
  19. Feb 07, 2020
  20. Nov 05, 2019
  21. Nov 01, 2019
  22. Oct 30, 2019
  23. Sep 11, 2019
  24. Jul 12, 2019
  25. Jul 11, 2019
    • Richard van der Hoff's avatar
      Clean up exception handling for access_tokens (#5656) · 0a4001eb
      Richard van der Hoff authored
      First of all, let's get rid of `TOKEN_NOT_FOUND_HTTP_STATUS`. It was a hack we
      did at one point when it was possible to return either a 403 or a 401 if the
      creds were missing. We always return a 401 in these cases now (thankfully), so
      it's not needed.
      
      Let's also stop abusing `AuthError` for these cases. Honestly they have nothing
      that relates them to the other places that `AuthError` is used, other than the
      fact that they are loosely under the 'Auth' banner. It makes no sense for them
      to share exception classes.
      
      Instead, let's add a couple of new exception classes: `InvalidClientTokenError`
      and `MissingClientTokenError`, for the `M_UNKNOWN_TOKEN` and `M_MISSING_TOKEN`
      cases respectively - and an `InvalidClientCredentialsError` base class for the
      two of them.
      Unverified
      0a4001eb
  26. Jul 10, 2019
  27. Jun 20, 2019
  28. May 10, 2019
  29. Mar 19, 2019
  30. Mar 05, 2019
    • Brendan Abolivier's avatar
      Add rate-limiting on registration (#4735) · a4c3a361
      Brendan Abolivier authored
      
      * 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: default avatarbabolivier <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
      Unverified
      a4c3a361
  31. Jan 10, 2019
  32. Dec 14, 2018
    • Neil Johnson's avatar
      create support user (#4141) · d2f7c4e6
      Neil Johnson authored
      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.
      Unverified
      d2f7c4e6
  33. Oct 24, 2018
  34. Sep 06, 2018
Loading