Skip to content
Merged
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
8 changes: 8 additions & 0 deletions runtime/drivers/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,14 @@ func getAWSConfig(ctx context.Context, confProp *ConfigProperties) (aws.Config,
opts = append(opts, config.WithRegion(confProp.Region))
}

// For GCS, we need to set the checksum validation and request calculation to required
if confProp.Endpoint != "" && strings.Contains(confProp.Endpoint, "storage.googleapis.com") {
opts = append(opts,
config.WithResponseChecksumValidation(aws.ResponseChecksumValidationWhenRequired),
config.WithRequestChecksumCalculation(aws.RequestChecksumCalculationWhenRequired),
)
}

cfg, err := config.LoadDefaultConfig(ctx, opts...)
if err != nil {
return aws.Config{}, fmt.Errorf("failed to load AWS config: %w", err)
Expand Down
Loading