# 由于AWS SDK gem版本升级和新的AWS数据完整性保护，无法重建

**URL:** <https://meta.discourse.org/t/cant-rebuild-due-to-aws-sdk-gem-bump-and-new-aws-data-integrity-protections/354217>\
**Category:** Self-hosting\
**Created:** [2025年二月24日 17:39 UTC](https://meta.discourse.org/t/cant-rebuild-due-to-aws-sdk-gem-bump-and-new-aws-data-integrity-protections/354217 "2025-02-24T17:39:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年二月24日 18:34 UTC](https://meta.discourse.org/t/cant-rebuild-due-to-aws-sdk-gem-bump-and-new-aws-data-integrity-protections/354217/6 "2025-02-24T18:34:47Z")

</div>

我发现了这条推文，不确定是否直接相关：[https://x.com/jkostolansky/status/1880623631145030054](https://x.com/jkostolansky/status/1880623631145030054)

 ![The image contains a warning tweet by Juraj Kostolansky about compatibility issues when upgrading aws gems while using the aws-sdk-s3 gem with Backblaze B2 or other S3 incompatible storage services, highlighting that the S3 client adopts new integrity protections not supported by B2, resulting in an API call error for... (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/7/3/0737b6b562fddafe4f62c39024d1a2db7199f119.png)

> <https://github.com/aws/aws-sdk-ruby/issues/3166>
>
> In aws-sdk-s3 v1.178.0, we released changes to the S3 client that adopts new def…ault integrity protections. For more information on default integrity behavior, please refer to the official \[SDK documentation\](https://docs.aws.amazon.com/sdkref/latest/guide/feature-dataintegrity.html). In SDK releases from this version on, clients default to enabling an additional checksum on all Put calls and enabling validation on Get calls.
> 
> 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.
> 
> \*\*Disclaimer\*\*: the AWS SDKs and CLI are designed for usage with official AWS services. We may introduce and enable new features by default, such as these new \[default integrity protections\](https://aws.amazon.com/blogs/aws/introducing-default-data-integrity-protections-for-new-objects-in-amazon-s3/), prior to them being supported or otherwise handled by third-party service implementations. You can disable the new behavior with the \`WHEN\_REQUIRED\` value for the \`request\_checksum\_calculation\` and \`response\_checksum\_validation\` configuration options covered in \[Data Integrity Protections for Amazon S3\](https://docs.aws.amazon.com/sdkref/latest/guide/feature-dataintegrity.html).

---

_[View the full topic](https://meta.discourse.org/t/cant-rebuild-due-to-aws-sdk-gem-bump-and-new-aws-data-integrity-protections/354217)._
