Skip to content

Phase 11: Add integrity verification, checksums and atomic finalization #12

Description

@ashishsinghbora

Goal

Guarantee that a completed file is exactly what the server delivered.

Scope

  • Add SHA-256 verification support when an expected digest is available.
  • Provide optional post-download hashing when no remote checksum exists.
  • Track per-chunk completion safely.
  • Validate final file size before marking complete.
  • Atomically rename completed .part files.
  • Detect truncated or oversized responses.
  • Add configurable retention/cleanup rules for partial files.

Acceptance criteria

  • Corrupted test data is detected.
  • A crash during finalization cannot produce a false completed state.
  • File size and checksum checks are tested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbackend issuesphasephase issuessecuritysecurity issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions