Skip to content

blob/s3blob: fix third-party S3 compatible buckets when checksum calculation is when_required - #3765

Open
tgummerer wants to merge 1 commit into
google:masterfrom
tgummerer:s3blob-when-required-checksum
Open

blob/s3blob: fix third-party S3 compatible buckets when checksum calculation is when_required#3765
tgummerer wants to merge 1 commit into
google:masterfrom
tgummerer:s3blob-when-required-checksum

Conversation

@tgummerer

Copy link
Copy Markdown

In #3736, the ChecksumSHA256 was unconditionally set to UNSIGNED-PAYLOAD, when the checksum calculation is set to when_required. This works for S3, but doesn't work for all third party S3 compatible bucket implementations, e.g. Cloudflare R2 (see pulumi/pulumi#24219).

Instead, make sure we thread the RequestChecksumCalculation from the buckets settings through, which to the best of my understanding should fix this issue.

…en_required

In google#3736, the ChecksumSHA256 was unconditionally set to
`UNSIGNED-PAYLOAD`, when the checksum calculation is set to
`when_required`.  This works for S3, but doesn't work for all third
party S3 compatible bucket implementations, e.g. Cloudflare R2 (see
pulumi/pulumi#24219).

Instead, make sure we thread the RequestChecksumCalculation from the
buckets settings through, which to the best of my understanding should
fix this issue.
@google-cla

google-cla Bot commented Aug 7, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.43%. Comparing base (35f55f2) to head (9488662).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3765      +/-   ##
==========================================
+ Coverage   75.40%   75.43%   +0.02%     
==========================================
  Files         104      104              
  Lines       14263    14262       -1     
==========================================
+ Hits        10755    10758       +3     
+ Misses       2770     2767       -3     
+ Partials      738      737       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vangent

vangent commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

TBH I don't fully understand what's going on here so I'm a bit concerned to regress again.

I copied your change over to #3766 and added a test, can you review the ".replay" files and make sure they look right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants