Commit 4af2517d authored by Michael Kozono's avatar Michael Kozono

Add Geo file transfer validation flipper

So the feature can be quickly disabled in case of bug.
parent 02dcc3c3
......@@ -147,6 +147,8 @@ module Gitlab
# types of artifacts are not checksummed at all at the moment.
return false if expected_checksum.blank?
return false unless Feature.enabled?(:geo_file_transfer_validation, default_enabled: true)
expected_checksum != actual_checksum(file_path)
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