Geo: Fix syncing direct download remote stored Blobs
What does this MR do?
When:
- The primary is configured to store Package Files in object storage
- The primary is configured to serve Package Files with direct download (redirect to presigned remote store URL)
- The remote store rejects requests when they contain unexpected headers
Then currently: Geo secondaries will fail to sync Package Files.
This MR fixes this bug.
The root cause is that HTTP.rb
's follow
method forwards headers from the original request to the redirected location (in this case Authorization: Gl-Geo ...
).
Fixes #323495 (closed)
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
-
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Michael Kozono