Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/shared/pkg/storage/storage_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ func newAWSStorage(ctx context.Context, spec Spec, limiter *limit.Limiter) (*aws
// default virtual-host style https://bucket.host/key) is required by
// most S3-compatible backends (MinIO, Ceph, …).
o.UsePathStyle = spec.UsePathStyle

// S3-compatible backends (MinIO, Ceph, etc.) do not return x-amz-checksum-*
// response headers. Without this setting the SDK logs a WARN for every
// GetObject response because it cannot validate the payload checksum.
// WhenRequired tells the SDK to only validate when the caller explicitly
// requested a checksum — matching the actual contract with these backends.
// Standard AWS S3 returns checksums and benefits from WhenSupported (the
// SDK default), so this opt-out is gated on UsePathStyle which already
// identifies S3-compatible deployments.
if spec.UsePathStyle {
o.ResponseChecksumValidation = aws.ResponseChecksumValidationWhenRequired
}
})
presignClient := s3.NewPresignClient(client)

Expand Down