You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest version of aws/aws-sdk-php 3.337.0, there is a change in S3 default integrity change described here aws/aws-sdk-php#3062
After updating to the latest aws-sdk-php Cloudflare R2 doesn't work anymore and generating this error: error: NotImplemented: Header ‘x-amz-checksum-crc32’ with value ‘Cu/HOQ==’ not implemented
resulting in files not being uploaded. I know this is a Cloudflare issue, but would it be possible to disable the new config option somewhere within the flysystem-aws-s3-v3 adapter settings?
You can disable default integrity protections for S3. We do not recommend this because checksums are important to S3 integrity posture. Integrity protections can be disabled by setting the config flag to WHEN_REQUIRED, or by using the related AWS shared config file settings or environment variables.
Compatibility
Client version 3.337.0 introduced a modification to the default checksum behavior from the client that is currently incompatible with R2 APIs.
To mitigate, users can use 3.336.15 or add the following to their $options:
'request_checksum_calculation' => 'when_required',
'response_checksum_validation' => 'when_required'
Feature Request
Scenario / Use-case
Latest version of aws/aws-sdk-php 3.337.0, there is a change in S3 default integrity change described here aws/aws-sdk-php#3062
After updating to the latest aws-sdk-php Cloudflare R2 doesn't work anymore and generating this error:
error: NotImplemented: Header ‘x-amz-checksum-crc32’ with value ‘Cu/HOQ==’ not implemented
resulting in files not being uploaded. I know this is a Cloudflare issue, but would it be possible to disable the new config option somewhere within the flysystem-aws-s3-v3 adapter settings?
there is also an issue reported on the cloudflare community here: https://community.cloudflare.com/t/aws-sdk-client-s3-v3-729-0-breaks-uploadpart-and-putobject-r2-s3-api-compatibility/758637
I don't know when or if Cloudflare is going to fix this issue.
The current workaround now is downgrading aws-sdk-php in composer.json
The text was updated successfully, but these errors were encountered: