Skip to content
Snippets Groups Projects
  1. May 27, 2019
    • ThibG's avatar
      Improve rate limiting (#10860) · 0e9b8be1
      ThibG authored
      * Rate limit based on remote address IP, not on potential reverse proxy
      
      * Limit rate of unauthenticated API requests further
      
      * Rate-limit paging requests to one every 3 seconds
      0e9b8be1
  2. Apr 07, 2019
  3. Feb 14, 2019
  4. Dec 24, 2018
    • Eugen Rochko's avatar
      Add REST API for creating an account (#9572) · 5d2fc6de
      Eugen Rochko authored
      * Add REST API for creating an account
      
      The method is available to apps with a token obtained via the client
      credentials grant. It creates a user and account records, as well as
      an access token for the app that initiated the request. The user is
      unconfirmed, and an e-mail is sent as usual.
      
      The method returns the access token, which the app should save for
      later. The REST API is not available to users with unconfirmed
      accounts, so the app must be smart to wait for the user to click a
      link in their e-mail inbox.
      
      The method is rate-limited by IP to 5 requests per 30 minutes.
      
      * Redirect users back to app from confirmation if they were created with an app
      
      * Add tests
      
      * Return 403 on the method if registrations are not open
      
      * Require agreement param to be true in the API when creating an account
      5d2fc6de
  5. Oct 04, 2018
    • aus-social's avatar
      lint pass 2 (#8878) · 0a4739c7
      aus-social authored
      * Code quality pass
      
      * Typofix
      
      * Update applications_controller_spec.rb
      
      * Update applications_controller_spec.rb
      0a4739c7
  6. May 03, 2018
    • Akihiko Odaki's avatar
    • Akihiko Odaki's avatar
      Throttle media post (#7337) · b1d4471e
      Akihiko Odaki authored
      The previous rate limit allowed to post media so fast that it is possible
      to fill up the disk space even before an administrator notices. The new
      rate limit is configured so that it takes 24 hours to eat 10 gigabytes:
      10 * 1024 / 8 / (24 * 60 / 30) = 27 (which rounded to 30)
      
      The period is set long so that it does not prevent from attaching several
      media to one post, which would happen in a short period. For example,
      if the period is 5 minutes, the rate limit would be:
      10 * 1024 / 8 / (24 * 60 / 5) = 4
      
      This long period allows to lift the limit up.
      b1d4471e
  7. Jan 09, 2018
    • Eugen Rochko's avatar
      Increase rate limit on protected paths (#6229) · 921b7819
      Eugen Rochko authored
      Previously each protected path had a separate rate limit. Now they're all in the same bucket, so people are more likely to hit one with register->login. Increasing to 25 per 5 minutes should be fine.
      921b7819
  8. Dec 11, 2017
  9. Dec 09, 2017
  10. Aug 08, 2017
  11. May 03, 2017
  12. Apr 29, 2017
  13. Apr 18, 2017
  14. Mar 14, 2017
  15. Nov 28, 2016
  16. Nov 25, 2016
  17. Oct 22, 2016
  18. Sep 24, 2016
  19. Mar 25, 2016
  20. Mar 19, 2016
Loading