Skip to content

MIGRATION ISSUE: Equivalent way of disabling MD5 (S3DisableContentMD5Validation) #2769

Closed
@stanhu

Description

@stanhu

Pre-Migration Checklist

Go Version Used

Go 1.21

Describe the Migration Issue

In AWS SDK Go v1, we previously used S3DisableContentMD5Validation to avoid computing MD5 checksums in the PutObject API call in FIPS systems:

From https://docs.aws.amazon.com/sdk-for-go/api/aws/:

    // S3DisableContentMD5Validation config option is temporarily disabled,
    // For S3 GetObject API calls, #1837.
    //
    // Set this to `true` to disable the S3 service client from automatically
    // adding the ContentMD5 to S3 Object Put and Upload API calls. This option
    // will also disable the SDK from performing object ContentMD5 validation
    // on GetObject API calls.
    S3DisableContentMD5Validation *bool

I saw the comment in #1040 (comment), but I'm not sure if this meant it was possible to disable MD5 outright.

Could someone clarify what needs to be done here?

Code Comparison

V1:

	cfg := &aws.Config{
		S3DisableContentMD5Validation: aws.Bool(True),
	}

Observed Differences/Errors

There's no obvious way to set S3DisableContentMD5Validation.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

guidanceQuestion that needs advice or information.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.v1-v2-inconsistencyv1-v2-inconsistency Behavior has changed from v1 to v2, or feature is missing altogether

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions