An error occurred while fetching the assigned iteration of the selected issue.
Document and clarify user blocking (Rack::Attack)
Overview
We receive support requests for a number of users that see a forbidden 401 message when attempting to access gitlab.com. This is likley due to a rack::attack ban. This has been discussed a number of times https://gitlab.slack.com/archives/support/p1468300023003378
We have initializers/rack_attack.rb
Rack::Attack.throttle('protected paths', limit: 10, period: 60.seconds)
Finding active bans
-
Login to a production redis box (
redis1
) -
Start a redis console - see https://gitlab.com/gitlab-com/runbooks/blob/master/howto/staging-environment.md#run-a-redis-console-in-staging-environment
-
List the
rack::attack
keyskeys *rack::attack*
- "cache:gitlab:rack::attack:24471669:allow2ban:count:0.0.0.0"
- "cache:gitlab:rack::attack:24471669:allow2ban:count:0.0.0.0"
- "cache:gitlab:rack::attack:24471669:allow2ban:count:0.0.0.0"
- "cache:gitlab:rack::attack:24471669:allow2ban:count:0.0.0.0"
### Actions
+ [ ] Clarify what user actions can result in a ban
+ Number of incorrect `git clone` auths
+ Visiting a number of protected paths
+ [ ] - Document ban times and user actions
+ [ ] - Improve ban logging https://gitlab.com/gitlab-org/gitlab-ce/issues/15612
cc// @markglenfletcher @balameb @stanhu @cabargas @abuango @Arihantar