Skip to content

Geo: Fix syncing direct download remote stored Blobs

Michael Kozono requested to merge mk/fix-geo-sync-blob-direct-download into master

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

Availability and Testing

Edited by Michael Kozono

Merge request reports