Commit graph

6 commits

Author SHA1 Message Date
Mayra Cabrera
3cefc5d7df Add RateLimiter to RawController
* Limits raw requests to 300 per minute and per raw path.
* Add a new attribute to ApplicationSettings so user can change this
value on their instance.
* Uses Gitlab::ActionRateLimiter to limit the raw requests.
* Add a new method into ActionRateLimiter to log the event into auth.log

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/48717
2019-07-24 19:49:31 +00:00
gfyoung
c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Stan Hu
4b0465f20d Address review comments with playing pipeline scheduler 2017-12-12 17:12:45 -08:00
Stan Hu
02e7e499d4 Fix Rubocop offense and use a symbol instead of a string 2017-12-12 15:07:25 -08:00
Stan Hu
8b939bfab7 Add spec for ActionRateLimiter 2017-12-12 15:07:25 -08:00
Stan Hu
54f13b1ec8 Add rate limiting to guard against excessive scheduling of pipelines 2017-12-12 15:07:25 -08:00