Skip to content
Snippets Groups Projects
Commit f6ac384a authored by Dmitry Ivanov's avatar Dmitry Ivanov
Browse files

Allow to configure rack-attack. Improve docs

parent a080a07c
No related branches found
No related tags found
1 merge request!950Configure Rack attack
Loading
Loading
@@ -27,6 +27,7 @@ omnibus-gitlab repository.
- Update postgresql to 9.2.18 (Takuya Noguchi)
- Update expat to 2.2.0 (Takuya Noguchi)
- Ignore and don't write `gitlab_ci:gitlab_server` key in gitlab-secrets file 10bcb
- Configure Rake attack (Dmitry Ivanov)
 
8.10.7
 
Loading
Loading
Loading
Loading
@@ -52,6 +52,10 @@ See [doc/settings/configuration.md](doc/settings/configuration.md#storing-git-da
 
See [doc/settings/configuration.md](doc/settings/configuration.md#changing-the-name-of-the-git-user-group).
 
##### Configuring Rake attack
See [doc/settings/configuration.md](doc/settings/configuration.md#enablingdisabling-rake-attack-and-setting-up-basic-auth-throttling).
##### Setting up LDAP sign-in
 
See [doc/settings/ldap.md](doc/settings/ldap.md).
Loading
Loading
Loading
Loading
@@ -362,7 +362,7 @@ Next configuration settings control rake attack:
 
```ruby
gitlab_rails['rack_attack_git_basic_auth'] = {
'enabled' => true, # Enable/Disable rake
'enabled' => true, # Enable/Disable rake attack
'ip_whitelist' => ["127.0.0.1"], # Whitelisted urls
'maxretry' => 10, # Limit the number of Git HTTP authentication attempts per IP
'findtime' => 60, # Reset the auth attempt counter per IP after 60 seconds
Loading
Loading
@@ -390,13 +390,14 @@ gitlab_rails['rack_attack_paths_to_be_protected'] = [
]
```
 
_**Note:** All paths are relative to the gitlab `external_url`._
_**Note:** All paths are relative to the gitlab url._
 
**Warning** If path contains variable/s which need to be
interpolated by rails(ex "#{API::API.version}")
then you need to escape curly brackets or use single quated string.
 
Use next options to control throttling 'limit' and 'period' for protected paths:
### Setting up throttling for 'paths to be protected'
Use next options to control throttling 'limit' and 'period':
 
```ruby
gitlab_rails['rate_limit_requests_per_period'] = 10
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment