1. 18 Nov, 2020 1 commit
  2. 17 Nov, 2020 2 commits
    • Bob Van Landuyt's avatar
      Add a dry-run mode for RackAttack · f7562c83
      Bob Van Landuyt authored
      This allows tracking rather than throttling certain or all configured
      throttles.
      
      This can be done by setting the GITLAB_THROTTLE_DRY_RUN env variable
      to a comma separated list of throttles. Each of the throttles
      specified in that list will be tracked instead of throttled.
      
      To disable throttling for all configured throttles, we can specify '*'
      in the environment variable.
      
      When a request would be rate-limited but dry-run mode is set, the
      request continues as normal, but we emit a log message.
      f7562c83
    • Bob Van Landuyt's avatar
      Move the Rack::Attack config out of initialiser · a79dfd07
      Bob Van Landuyt authored
      This moves the config of Rack::Attack out of the initialiser and into
      the Gitlab module.
      
      This way, we can avoid monkey-patching `Rack::Attack` but instead call
      the configuration on the class. As a result, we can also use the the
      normal `prepend_if_ee` strategy to extend rack attack configuration
      for EE.
      a79dfd07
  3. 13 Nov, 2020 36 commits
  4. 12 Nov, 2020 1 commit