-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply skip_s3_checksum
option to GetObject
calls
#36704
Comments
* Add permissions to publish action Closes https://github.com/b0bcarlson/bobcodes.net/security/code-scanning/1 * Pin terraform to 1.11.1; Pin digitalocean provider Ref hashicorp/terraform#36704
+, I've encountered the same issue on the same version but a little bit differently:
I'm also using S3-compatible storage, so seems like it does not support these headers. I haven't seen a breaking changes in new releases also. An error is reproducing on Terraform 1.11.2 (in 1.11.0 everything is ok). |
same problem.. InvalidArgument: x-amz-content-sha256 must be UNSIGNED-PAYLOAD or a valid SHA256 As the person above said, we had to use the previous release 1.11.1 |
Same with hcloud provider:
|
Thanks for this report. I'll send it across to the AWS Provider team at HashiCorp that maintains the s3 backend. |
Probably the result of updating the AWS SDK: #36625 |
Confirmed that this was a result of the upgrade in #36625, which bumped the S3 module version to From what I've gathered, there seems to be two paths towards a resolution:
I'll leave it to the team to decide what's the correct approach. For whatever it's worth, I tested using the AWS CLI with and without the arguments set in my AWS config and verified that setting the arguments removed the A few helpful documents from AWS on the matter: |
I've seen the same issue using an OCI Bucket with v1.11.2 but it works with v1.11.1
|
Got the same issue when using OCI buckets: I was able to mitigate this by setting the following environment variables:
|
This worked for me. Thanks, @GreenVine! |
Having the same issue with Linode Object Storage. |
This comment has been minimized.
This comment has been minimized.
Hi, any standart solution? |
hi, is there a way to get this fix through flags in the s3 resource? i would think that the flag: |
Terraform Version
Use Cases
Using "S3 compatible" apis (specifically Backblaze in my case), where the api doesn't support the
x-amz-checksum-mode
header.Attempted Solutions
Using version 1.11.1 (which works as expected). Something changed in 1.11.2 which "broke" this, however I was not able to find any changes between the versions that look like they would cause this changed behavior.
Proposal
The documentation https://developer.hashicorp.com/terraform/language/backend/s3#skip_s3_checksum indicates that
skip_s3_checksum
only applies to uploading. My proposal is that it also applies to theGetObject
action. As mentioned before, I have no issue with 1.11.1, but in 1.11.2 runningterraform init
returns an error:For reference, my backend block is:
References
No response
The text was updated successfully, but these errors were encountered: