data integrity checks for uploads/downloads #547
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Description
For uploads/downloads, check in order of priority:
- md5 computed for local file against md5 contained in Object’s metadata (more expensive, more reliable)
- crc32c computed for local file against crc32c contained in Object’s metadata (less expensive, less reliable)
eaxmple gslib code for the checks chain
For copies of objects already in the storage, compare the checksums in the Object’s metadata with the same priority (md5 could not be available in some cases)
example gslib_code
If the checksum check fails, the created file should be deleted by the client, and an exception raised.
example gslib_code
We should allow to override the configuration for the checks (e.g. use only crc32c, do not perform checks), but it should be strongly discouraged.
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Activity
Moving MD5 hash method from regression to storage helpers.
Moving MD5 hash method from regression to storage helpers.
lukesneeringer commentedon Mar 17, 2017
This seems to have been done.
dhermes commentedon Mar 17, 2017
@lukesneeringer Nope, that was the CRC-32 PR that you closed. We also need the option of an MD5 integrity check.
chemelnucfin commentedon Jan 22, 2018
Feature Requests will now be tracked in our Project Feature Request. Please feel free to continue the discussions here.
9 remaining items
build(deps): [autoapprove] bump certifi from 2022.12.7 to 2023.7.22 (#…
chore: Update gapic-generator-python to v1.11.9 (#547)
feat: Add support for python 3.11 (#547)
feat: Add support for python 3.11 (#547)
docs: Update `cpu_utilization_percent` limit (#547)
chore: release 0.29.0 (#547)
chore: Remove py.typed file (#547)
Add new "quickstart" samples [(#547)](GoogleCloudPlatform/python-docs…
samples: add samples from pubsub/cloud-client (#134)
Add new "quickstart" samples [(#547)](GoogleCloudPlatform/python-docs…
chore: update python-docs-samples link to main branch (#547)
chore: release 2.12.0 (#547)
samples: add cloud client samples from python-docs-samples (#626)
chore: migrate to main branch (#549)
docs: migrate code from googleapis/python-bigquery (#18303)