Skip to content
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

[Bug]: S3 PutObject is missing a Content-MD5 header when writing to a bucket with a default object lock configuration #41221

Open
caspereijkens opened this issue Feb 4, 2025 · 2 comments
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service. upstream Addresses functionality related to the cloud provider.

Comments

@caspereijkens
Copy link

caspereijkens commented Feb 4, 2025

Terraform Core Version

1.10.5

AWS Provider Version

5.85.0

Affected Resource(s)

We use the terraform AWS provider to provision infrastructure on a non-AWS S3 service. Since 5.85.0 we get the error in the title when trying to configure aws_s3_bucket_object_lock_configuration. I rolled back to 5.84.0 and there everything works again.

Expected Behavior

Configure aws_s3_bucket_object_lock_configuration on non-AWS bucket.

Actual Behavior

S3 PutObject is missing a Content-MD5 header when writing to a bucket with a default object lock configuration

Relevant Error/Panic Output Snippet

Terraform Configuration Files

resource "aws_s3_bucket_object_lock_configuration" "map" {
  for_each = {
    for key, value in var.bucket_configs : key => value
    if value.object_lock_enabled
  }
  bucket = each.value.bucket_name
  rule {
    default_retention {
      mode = "COMPLIANCE" 
      days = each.value.object_lock_days
    }
  }
}

Steps to Reproduce

Try to create a bucket and configure object locking on a non-AWS provider.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@caspereijkens caspereijkens added the bug Addresses a defect in current functionality. label Feb 4, 2025
Copy link

github-actions bot commented Feb 4, 2025

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/s3 Issues and PRs that pertain to the s3 service. needs-triage Waiting for first response or review from a maintainer. labels Feb 4, 2025
@justinretzolk
Copy link
Member

Hey @caspereijkens 👋 Thank you for taking the time to raise this! While we try not to break functionality with AWS-compatible services, it's not something we currently have the capacity to test against. No further action is needed from you at this point, I just wanted to let you know that it may take longer than normal for this to be looked into by the provider team. If a community member happens to pick this up and try to address it, we'd be happy to review.

@justinretzolk justinretzolk added upstream Addresses functionality related to the cloud provider. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service. upstream Addresses functionality related to the cloud provider.
Projects
None yet
Development

No branches or pull requests

2 participants