HOWTO: gitlab remove ip ban after rack attack

Prerequisites: you are running gitlab in a docker container.
First step, attach shell to docker container:

sudo docker exec -it gitlab /bin/bash

Next step, start redis:

/opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis/redis.socket

Check for rack keys:

/var/opt/gitlab/redis/redis.socket> KEYS *rack*

The result should be similar to:

1) "cache:gitlab:rack::attack:allow2ban:ban:"

Finally, delete the rack key:

DEL "cache:gitlab:rack::attack:allow2ban:ban:"

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.