Skip to content

Prepare wasip2 certificate envelope verification - #1226

Merged
jasisz merged 1 commit into
mainfrom
fix/1146-wasip2-verifier-envelope-binding
Aug 30, 2026
Merged

Prepare wasip2 certificate envelope verification#1226
jasisz merged 1 commit into
mainfrom
fix/1146-wasip2-verifier-envelope-binding

Conversation

@jasisz

@jasisz jasisz commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • add verifier-side parsing for the reserved wasip2ComponentEnvelope declaration
  • add a wasip2 artifact-prep helper that hashes the delivered component but slices the embedded core only by manifest-declared lengths
  • validate the delivered component and declared core slice for well-formedness without using component parsing to locate the core
  • keep schema 5 behavior unchanged: target = "wasip2" still rejects before envelope parsing or WebAssembly validation

Refs #1146

Tests

  • cargo fmt --all -- --check
  • cargo clippy -p aver-cert --all-targets -- -D warnings
  • cargo test -p aver-cert
  • cargo test -p aver-cert wasip2 -- --nocapture
  • git diff --check

@jasisz
jasisz merged commit 03fb124 into main Aug 30, 2026
17 checks passed
@jasisz
jasisz deleted the fix/1146-wasip2-verifier-envelope-binding branch August 30, 2026 20:58
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