Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !31246

Moves Protected paths throttling from Omnibus to GitLab Rails

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mayra Cabrera requested to merge mc-moves-protected-path-throttle-to-gitlab-rails into master Jul 29, 2019
  • Overview 19
  • Commits 1
  • Pipelines 32
  • Changes 17

What does this MR do?

Moves protected paths to GitLab-Rails:

  • Adds 4 columns to application_settings
    • 3 to mimic the configuration of existing throttles
    • 1 to store the protected paths on database
  • Set default protected paths (taken from Omnibus)
  • Add new section on admin panel to personalize protected paths configuration
  • This new throttle is active by default.
  • Includes additional protected paths throttles
  • Rack Attack file was renamed to 'rack_attack_gitlab_rails'.rb, otherwise the Omnibus file will overwrite this file.
  • If the settings are enabled, they will take precedence over the Omnibus settings

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64278

Documentation MR - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32773

Screenshots

Protected paths configuration
Screen_Shot_2019-09-10_at_12.52.55_PM

Does this MR meet the acceptance criteria?

Conformity

  • Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios.
  • Documentation created/updated or follow-up review issue created - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32773
  • Code review guidelines
  • Merge request performance guidelines
  • Style guides
  • Database guides
  • Separation of EE specific content - https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/16463

Performance and testing

  • Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
  • [-] Tested in all supported browsers

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64278

To do - backend

  • Move Protected Paths to config/gitlab.yml
  • Handle the throttle on RackAttackGlobal
  • Add specs
  • Log error on auth.log
  • Add new application_settings to UI
  • Refactor
  • Configure protected paths on UI
  • EE port - https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/16463
Edited Sep 11, 2019 by Mayra Cabrera
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: mc-moves-protected-path-throttle-to-gitlab-rails