Skip to content
Snippets Groups Projects

Moves Protected paths throttling from Omnibus to GitLab Rails

Closed Mayra Cabrera requested to merge mc-moves-protected-path-throttle-to-gitlab-rails into master
10 files
+ 271
1
Compare changes
  • Side-by-side
  • Inline
Files
10
  • 8983a679
    - Adds 3 columns to mimic the configuration of other throttles
    - If user does not configure protected paths on gitlab/config.yml,
    then a default array of protected paths is used
    - Add new personalized throttles for the protected paths
    - Include specs for protected paths on RackAttack global specs
    
    WIP
require_relative '../settings'
require_relative '../object_store_settings'
require_relative 'protected_paths_parser'
# Default settings
Settings['ldap'] ||= Settingslogic.new({})
@@ -633,6 +634,11 @@
Settings.rack_attack.git_basic_auth['findtime'] ||= 1.minute
Settings.rack_attack.git_basic_auth['bantime'] ||= 1.hour
#protected_paths = Settings.rack_attack['protected_paths']
#relative_url = Settings.gitlab['relative_url_root']
#
#Settings.rack_attack['protected_paths'] = ProtectedPathsParser.new(protected_paths, relative_url).execute
#
# Gitaly
#
Loading