DEV-10449: Delete Objects MD5 Python3.9 Fix #2521
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
High level description:
After upgrading to Python3.9, the Delete Submission feature was not functional with an error message of
Technical details:
In Python3.9, the hash library for generating MD5s on FIPS systems was updated to not generate hashs for FIPS systems. This MD5 is crucial for interacting with AWS, specifically requiring an MD5 header when deleting objects from S3 buckets. The hash library does include an additional keyword argument (
usedforsecurity
, defaulted toTrue
) to bypass the security check that hasn't been updated in the botocore library. The solution involves making a forked version of botocore that uses the new flag (setting it toFalse
) to bypass it and running off that.See boto/botocore#2769 (comment)
Link to JIRA Ticket:
DEV-10449
The following are ALL required for the PR to be merged: