Skip to content

feat(lib-storage): verify uploaded parts when resuming #2

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

Merged
merged 2 commits into from
Apr 1, 2022

Conversation

jfoo1984
Copy link

@jfoo1984 jfoo1984 commented Mar 30, 2022

Issue

Shortcut Ticket

Description

  • Remove attributes checksum algorithms that we don't currently verify.
  • When resuming uploads, verify checksum of uploaded parts against local file parts

Notes

  • x-amz-checksum-sha256 header needs to be exposed in CORS config for bucket to be able to receive SHA-256 checksum from AWS. This was configured in our terraform repo: chanzuckerberg/idseq-infra#587.

Testing

Manually tested in CZ ID web app


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jfoo1984 jfoo1984 requested review from valenzuelaomar and a team March 30, 2022 19:33
Comment on lines -32 to -34
ChecksumCRC32?: string;
ChecksumCRC32C?: string;
ChecksumSHA1?: string;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're not currently supporting or using these checksum options, I thought it'd be better just to remove them here and below, to minimize changes to this forked lib and potential confusion or errors.

@jfoo1984 jfoo1984 merged commit 70c13fe into main Apr 1, 2022
@jfoo1984 jfoo1984 deleted the jfu/sc-189546-verify-upload-parts-with-checksum branch April 1, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants