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

[BREAKING] [FIX] replace sha256 library used by the client for objectstore entries and migration tool #745

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

aricart
Copy link
Member

@aricart aricart commented Feb 7, 2025

ObjectStore implementations prior to this one used a sha256 library that sporadically generated incorrect digests for larger objects. These digests prevent other tools from accessing objects put by the JavaScript ObjectStore implementation. Included in the fix is a migration tool that walks a specified objectstore and calculates hashes, if found to be a match for the bad-hashes, it updates the hash in the metadata entry for the object.

Fixes #746

… sha256 library that generated incorrect digests for files 512MB and larger. These digests prevent other tools from accessing objects `put` by the JavaScript ObjectStore implementation. Included in the fix is a migration tool that walks the specified objectstore and calculates hashes, if found to be a match for the bad-hashes, it updates the hash in the metadata entry for the object.

Signed-off-by: Alberto Ricart <[email protected]>
Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

… sha256 library that generated incorrect digests for files 512MB and larger. These digests prevent other tools from accessing objects `put` by the JavaScript ObjectStore implementation. Included in the fix is a migration tool that walks the specified objectstore and calculates hashes, if found to be a match for the bad-hashes, it updates the hash in the metadata entry for the object.

Signed-off-by: Alberto Ricart <[email protected]>
@aricart aricart merged commit 7624f0e into main Feb 7, 2025
5 checks passed
@aricart aricart deleted the fix-sha256 branch February 7, 2025 23:14
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.

[OS] can register objects with a digest that is incorrect
2 participants