Skip to content

Add a verify command to rederive a lock - #4

Draft
timkpaine wants to merge 1 commit into
mainfrom
tkp/verify
Draft

Add a verify command to rederive a lock#4
timkpaine wants to merge 1 commit into
mainfrom
tkp/verify

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Two modes, mirroring manifest/sbom:

  • Local (--lock <file>): compute the lock's sha256-<hex> content address. With --expect <sha256-…>, exit non-zero on mismatch. Reports whether the lock carries an embedded manifest band.
  • Registry (--env --registry): resolve the release, then re-derive and check the content address of its lock and manifest sidecar against the index — reusing the verification that pull/pull_manifest already enforce, surfaced as explicit per-object OK reporting.
$ nepenthe verify --env research --registry file:///srv/reg --python 3.11
release research 1.0.0 on linux-64
  lock sha256-68f4…fed34: OK
  manifest sha256-d06c…c9ec: OK
verified

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Test Results

178 tests  ±0   178 ✅ ±0   3s ⏱️ -1s
  5 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit fbec9a4. ± Comparison against base commit e431b65.

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.

1 participant