Skip to content

Check all fields of *zbstore.ObjectInfo in VerifyObject - #352

Merged
zombiezen merged 4 commits into
256lights:mainfrom
zombiezen:push-lzvqzosknlnn
Aug 25, 2026
Merged

Check all fields of *zbstore.ObjectInfo in VerifyObject#352
zombiezen merged 4 commits into
256lights:mainfrom
zombiezen:push-lzvqzosknlnn

Conversation

@zombiezen

@zombiezen zombiezen commented Aug 20, 2026

Copy link
Copy Markdown
Member

Verification frequently occurs during ingest, so added an optional argument to tee the NAR to a destination writer.

This unconvered a defect in internal/backend.TestDelete: one of the objects imported during setup did not contain a valid self-reference. The verification step (correctly) ignored the object. Yay for more robust input validation!

Object content is also verified to be a valid NAR file.

Updates #345
Fixes #66

Related Pull Requests

This pull request is part of a stack managed by jj-domino:

  1. → this pull request ←
  2. Remove internal/backend.verifyContentAddress #359
  3. Allow callback function to *zbstore.Derivation.SHA256RealizationHash to return errors #360
  4. Streamline storetest to use txtar objects #361

Verification frequently occurs during ingest,
so added an optional argument to tee the NAR to a destination writer.

This unconvered a defect in `internal/backend.TestDelete`:
one of the objects imported during setup did not contain a valid self-reference.
The verification step (correctly) ignored the object.
Yay for more robust input validation!

Object content is also verified to be a valid NAR file.

Updates 256lights#345
Fixes 256lights#66
@zombiezen
zombiezen marked this pull request as ready for review August 21, 2026 03:52
@zombiezen
zombiezen merged commit 6672c16 into 256lights:main Aug 25, 2026
3 checks passed
@zombiezen
zombiezen deleted the push-lzvqzosknlnn branch August 25, 2026 18:34
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.

Verify that object references appear in imported store objects

1 participant