Whitelist LFS route to download files in bulk on Geo readonly middleware

parent 89ca2d0e
...@@ -65,7 +65,7 @@ module Gitlab ...@@ -65,7 +65,7 @@ module Gitlab
end end
def whitelisted_routes def whitelisted_routes
logout_route || grack_route || @whitelisted.any? { |path| request.path.include?(path) } || sidekiq_route logout_route || grack_route || @whitelisted.any? { |path| request.path.include?(path) } || lfs_route ||sidekiq_route
end end
def logout_route def logout_route
...@@ -79,6 +79,10 @@ module Gitlab ...@@ -79,6 +79,10 @@ module Gitlab
def grack_route def grack_route
request.path.end_with?('.git/git-upload-pack') request.path.end_with?('.git/git-upload-pack')
end end
def lfs_route
request.path.end_with?('/info/lfs/objects/batch')
end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment