Skip to content

Add SHA256 checksum storage for ActiveStorage blobs#663

Draft
dmitrytrager wants to merge 1 commit intomainfrom
feat/file-checksum-management-574
Draft

Add SHA256 checksum storage for ActiveStorage blobs#663
dmitrytrager wants to merge 1 commit intomainfrom
feat/file-checksum-management-574

Conversation

@dmitrytrager
Copy link
Copy Markdown
Collaborator

What Issue Does This PR Cover, If Any?

Resolves #574

What Changed? And Why Did It Change?

Device sync protocol requires SHA256-prefixed per-file checksums so Clinical Edge can verify downloaded files against the manifest. Adds a sha256_checksum column to active_storage_blobs, async calculation via Blobs::ComputeSha256ChecksumJob on blob creation, a lazy fallback for legacy blobs, and a backfill rake task. ManifestBuilder now emits sha256: per the data-exchange spec.

How Has This Been Tested?

Please Provide Screenshots

Additional Comments

Device sync protocol requires SHA256-prefixed per-file checksums so
Clinical Edge can verify downloaded files against the manifest. Adds a
sha256_checksum column to active_storage_blobs, async calculation via
Blobs::ComputeSha256ChecksumJob on blob creation, a lazy fallback for
legacy blobs, and a backfill rake task. ManifestBuilder now emits
sha256:<digest> per the data-exchange spec.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
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.

File Checksum Management

1 participant