Add RateLimiter to RawController

* Limits raw request 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 #48717
101 jobs for 48717-rate-limit-raw-controller-show in 71 minutes and 26 seconds (queued for 12 seconds)
Status Job ID Name Coverage
  Build
manual #252101426
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #252101428
gitlab-org
compile-assets pull-cache

00:06:11

passed #252101430
gitlab-org
retrieve-tests-metadata

00:00:28

passed #252101429
gitlab-org
setup-test-env

00:05:07

 
  Test
passed #252101545
docker gitlab-org
build-qa-image

00:06:00

passed #252101452
allowed to fail
code_quality

00:07:31

passed #252101547
gitlab-org
danger-review

00:02:19

passed #252101540
gitlab-org
db:check-schema-pg

00:02:22

passed #252101539
gitlab-org
db:migrate:reset-pg

00:02:32

passed #252101542
gitlab-org
db:rollback-pg

00:02:53

passed #252101454
allowed to fail
dependency_scanning

00:08:56

passed #252101432
gitlab-org
docs lint

00:02:42

passed #252101537
gitlab-org
downtime_check

00:01:55

passed #252101538
gitlab-org
ee_compat_check

00:02:57

passed #252101435
gitlab-org docker
gitlab:assets:compile pull-cache

00:15:42

passed #252101544
gitlab-org
gitlab:setup-pg

00:02:49

passed #252101548
gitlab-org
gitlab_git_test

00:00:40

passed #252101440
gitlab-org
jest

00:15:25

passed #252101438
gitlab-org
karma

00:09:57

54.06%
passed #252101550
gitlab-org
lint-ci-gitlab

00:00:31

passed #252101451
gitlab-org
memory-on-boot

00:03:18

passed #252101450
gitlab-org
memory-static

00:03:06

passed #252101541
gitlab-org
migration:path-pg

00:04:05

passed #252101549
gitlab-org
no_ee_check

00:00:28

passed #252101448
gitlab-org
qa-frontend-node:10

00:13:23

passed #252101447
gitlab-org
qa-frontend-node:8

00:15:25

passed #252101449
gitlab-org allowed to fail
qa-frontend-node:latest

00:11:26

passed #252101442
gitlab-org
qa:internal

00:03:16

passed #252101444
gitlab-org
qa:selectors

00:02:37

passed #252101546
allowed to fail manual
review-build-cng

00:21:44

passed #252101482
gitlab-org
rspec integration pg 1/6

00:16:57

passed #252101485
gitlab-org
rspec integration pg 2/6

00:16:21

passed #252101487
gitlab-org
rspec integration pg 3/6

00:14:54

passed #252101488
gitlab-org
rspec integration pg 4/6

00:18:51

passed #252101489
gitlab-org
rspec integration pg 5/6

00:16:36

passed #252101490
gitlab-org
rspec integration pg 6/6

00:15:21

passed #252101491
gitlab-org
rspec system pg 1/24

00:11:01

passed #252101513
gitlab-org
rspec system pg 10/24

00:12:32

passed #252101515
gitlab-org
rspec system pg 11/24

00:10:04

passed #252101516
gitlab-org
rspec system pg 12/24

00:09:32

passed #252101517
gitlab-org
rspec system pg 13/24

00:12:35

passed #252101519
gitlab-org
rspec system pg 14/24

00:13:23

passed #252101520
gitlab-org
rspec system pg 15/24

00:13:27

passed #252101523
gitlab-org
rspec system pg 16/24

00:11:48

passed #252101524
gitlab-org
rspec system pg 17/24

00:11:26

passed #252101525
gitlab-org
rspec system pg 18/24

00:12:51

passed #252101527
gitlab-org
rspec system pg 19/24

00:13:01

passed #252101492
gitlab-org
rspec system pg 2/24

00:12:51

passed #252101528
gitlab-org
rspec system pg 20/24

00:10:23

passed #252101530
gitlab-org
rspec system pg 21/24

00:13:01

passed #252101531
gitlab-org
rspec system pg 22/24

00:11:02

passed #252101532
gitlab-org
rspec system pg 23/24

00:14:13

passed #252101533
gitlab-org
rspec system pg 24/24

00:12:09

passed #252101493
gitlab-org
rspec system pg 3/24

00:13:37

passed #252101494
gitlab-org
rspec system pg 4/24

00:11:11

passed #252101503
gitlab-org
rspec system pg 5/24

00:13:12

passed #252101505
gitlab-org
rspec system pg 6/24

00:12:29

passed #252101508
gitlab-org
rspec system pg 7/24

00:14:02

passed #252101509
gitlab-org
rspec system pg 8/24

00:11:21

passed #252101512
gitlab-org
rspec system pg 9/24

00:13:18

passed #252101455
gitlab-org
rspec unit pg 1/20

00:13:13

passed #252101465
gitlab-org
rspec unit pg 10/20

00:16:19

passed #252101466
gitlab-org
rspec unit pg 11/20

00:16:51

passed #252101467
gitlab-org
rspec unit pg 12/20

00:17:45

passed #252101468
gitlab-org
rspec unit pg 13/20

00:15:51

passed #252101469
gitlab-org
rspec unit pg 14/20

00:15:52

passed #252101471
gitlab-org
rspec unit pg 15/20

00:15:52

passed #252101473
gitlab-org
rspec unit pg 16/20

00:13:54

passed #252101474
gitlab-org
rspec unit pg 17/20

00:14:07

passed #252101475
gitlab-org
rspec unit pg 18/20

00:16:00

passed #252101476
gitlab-org
rspec unit pg 19/20

00:16:09

passed #252101457
gitlab-org
rspec unit pg 2/20

00:14:00

passed #252101479
gitlab-org
rspec unit pg 20/20

00:14:47

passed #252101458
gitlab-org
rspec unit pg 3/20

00:13:17

passed #252101459
gitlab-org
rspec unit pg 4/20

00:13:15

passed #252101460
gitlab-org
rspec unit pg 5/20

00:15:10

passed #252101461
gitlab-org
rspec unit pg 6/20

00:15:33

passed #252101462
gitlab-org
rspec unit pg 7/20

00:14:27

passed #252101463
gitlab-org
rspec unit pg 8/20

00:15:49

passed #252101464
gitlab-org
rspec unit pg 9/20

00:16:14

passed #252101534
gitlab-org
rspec-fast-spec-helper

00:02:43

passed #252101453
allowed to fail
sast

00:06:43

passed #252101535
gitlab-org
static-analysis

00:13:35

 
  Review
manual #252101552
allowed to fail manual
package-and-qa
failed #252124096
gitlab-org allowed to fail
review-deploy

00:13:23

manual #252101556
gitlab-org allowed to fail manual
review-stop
failed #252101554
gitlab-org allowed to fail
review-deploy

00:14:11

 
  Qa
passed #252101567
docker gitlab-org allowed to fail
review-performance

00:04:30

manual #252101559
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #252101560
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #252101561
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #252101563
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #252101565
docker gitlab-org allowed to fail manual
review-qa-all 5/5
failed #252132495
docker gitlab-org allowed to fail
review-qa-smoke

00:04:55

failed #252130758
gitlab-org docker allowed to fail
review-qa-smoke

00:05:10

failed #252101557
docker gitlab-org allowed to fail
review-qa-smoke

00:05:34

 
  Post Test
passed #252101570
gitlab-org
coverage

00:04:40

96.27%
passed #252101571
gitlab-org allowed to fail
flaky-examples-check

00:01:59

passed #252101569
gitlab-org
jsdoc

00:01:24

passed #252101568
gitlab-org
lint:javascript:report

00:00:51

 
  Post Cleanup
manual #252101572
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
review-qa-smoke Qa
Randomized with seed 822

Running after script...
$ date
Mon Jul 15 22:52:58 UTC 2019
Uploading artifacts...
./qa/gitlab-qa-run-*: found 16 matching files
Uploading artifacts to coordinator... ok
id=252132495 responseStatus=201 Created token=EV9sxeeZ
ERROR: Job failed: exit code 1
failed
review-deploy Review
review-48717-rate-or2gyw-unicorn-6f5756468b-v9wm6 pod...
Error from server (NotFound): pods "review-48717-rate-or2gyw-unicorn-6f5756468b-99xjc\nreview-48717-rate-or2gyw-unicorn-6f5756468b-v9wm6" not found
Running after script...
$ date
Mon Jul 15 22:36:16 UTC 2019
Uploading artifacts...
review_app_url.txt: found 1 matching files
Uploading artifacts to coordinator... ok
id=252124096 responseStatus=201 Created token=S5CL4nhS
ERROR: Job failed: exit code 1