• Heinrich Lee Yu's avatar
    Only check for blacklisted IPs on Git requests · 34635146
    Heinrich Lee Yu authored
    We block IP addresses when failed Git auths reach a certain
    threshold.
    
    This block applied to all requests so for every request, we
    had to check Redis to see if the IP is blocked. This caused
    unnecessary Redis load.
    
    This MR changes the block to only apply to Git requests as
    it is described in the documentation
    34635146
ip_rate_limiter_spec.rb 2.11 KB