Skip to content

Add SHA-256 integrity verification for downloaded bundles #160

@sven1103-agent

Description

@sven1103-agent

Summary

Verify bundle content hashes after download to ensure integrity and prevent tampering.

Motivation

Users need confidence that downloaded bundle content matches the intended source. Without verification, there's no protection against:

  • Man-in-the-middle attacks during download
  • Corrupted downloads
  • Tampered releases

Proposed Solution

  1. Add hash field to bundle manifest:

    {
      "files": {
        "presets/full.json": "sha256:abc123..."
      }
    }
  2. After downloading a bundle, compute SHA-256 of each file and verify against manifest

  3. Fail with clear error if hash mismatch detected

Acceptance Criteria

  • Bundle manifest supports hash entries
  • Downloaded content is verified against hashes
  • Clear error message on hash mismatch
  • Graceful degradation if no hashes present (for backwards compatibility)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions