Skip to content

pre_seed: no way to require integrity verification; documented sha256s field is not implemented #1630

Backlog

Description

@fisherivco

Summary

pre_seed integrity verification is optional, and the documented sha256s config field does not appear in the source.

Observed (release openab-0.10.1)

  • docs/hooks.md says: when an object has an S3-native SHA-256 checksum, OpenAB verifies it; sha256s in config adds an explicit check; "If neither is available, download proceeds without integrity verification".
  • A code search of the repository finds sha256s only in docs/hooks.md, not in the pre_seed config type. A config that sets sha256s is accepted and the field is dropped silently (serde ignores unknown fields), so the operator believes a check runs that does not.

Impact

An operator cannot make a missing checksum fail the seed. If an object is re-uploaded without --checksum-algorithm SHA256, the bot extracts it unverified and boots.

Request

  1. Implement sha256s as documented, or remove it from docs/hooks.md.
  2. Add an opt-in strict mode (for example require_checksum = true) that aborts pre_seed when neither an S3-native checksum nor a configured digest is present.
  3. Optionally reject unknown keys in the hooks config (deny_unknown_fields) so that a typo or an unsupported field fails at load.

Our workaround

The publisher always uploads with --checksum-algorithm SHA256 (create-only), and a readback checks that each object carries the expected stored checksum.

Activity

  1. github-actions commented on Nov 25, 2026

    @github-actions

    Thanks for the report! A maintainer will triage this shortly and apply the appropriate label. Once a type label is added, the issue will be re-validated automatically.

  2. thepagent commented on Nov 25, 2026

    @thepagent
    Collaborator

    Welcome PR!

  3. added
    p2
    and removed on Nov 25, 2026
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

    incompletep2pending-contributor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions