Add SUIT manifest verify + process support (off by default)#796
Draft
aidangarske wants to merge 4 commits into
Draft
Add SUIT manifest verify + process support (off by default)#796aidangarske wants to merge 4 commits into
aidangarske wants to merge 4 commits into
Conversation
a0c04bd to
13e7021
Compare
…oncatenated envelope+image layout)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional SUIT manifest (
draft-ietf-suit-manifest-34) verification and processing, gated behindWOLFBOOT_SUITand off by default. The native TLV image path is unchanged when it is not enabled. SUIT is the richer, standards-based path for networked secure update (wolfUpdate); the lean TLV path stays the default for plain secure boot. Seedocs/SUIT.md.What it does
suit_open— parse the SUIT_Envelope + manifest (zero-copy).suit_verify_auth— COSE_Sign1 (via thelib/wolfCOSEsubmodule) over the detached SUIT_Digest, then a distinct binding of that digest tohash(manifest).suit_process— command-sequence interpreter: identity conditions (vendor/class), image-match, and install directives (write/copy), with default-deny on any command it does not implement.wolfBoot_suit_verify()— entry point; storage access is via pluggablesuit_component_ops(flash on target), which also keeps the processor reusable outside wolfBoot.Testing (A → B → C, in CI via
.github/workflows/suit.yml)cbor2+cryptography, RFC 9052 Sig_structure) — interop, not self-agreement.tests/vectors/suit_envelope.cbor) validated by the cross-check.WOLFBOOT_SUIT=1sim against a verify-only wolfCrypt.Compliance
Format-compliant minimal "trusted invocation" profile; all integer codes verified against the IANA SUIT registry, default-deny on unsupported commands, interop cross-checked. Not a full draft-34 implementation (no fetch, severable members, try-each/swap/run-sequence, dependencies, reports).
Dependency / sequencing
Depends on the wolfCOSE verify-only fixes (wolfSSL/wolfCOSE #53). The
lib/wolfCOSEsubmodule is pinned to that work; repin to the wolfCOSE v1.0 tag before merge.Follow-ups
A/B-swap auto-dispatch from
wolfBoot_verify_authenticity, and payload encryption (COSE_Encrypt0) for confidentiality.