Commit Graph

7 Commits

Author SHA1 Message Date
Stan Hu e632ae8084 Standardize remote_ip and path keys for auth.log and api_json.log
Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses
`remote_ip` and `path` for the same fields. Let's standardize these
namings to make it easier for people working with the data.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167
2019-08-20 18:12:28 +00:00
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