Skip to content

Add signed trust-root bundle verification#6

Merged
mdheller merged 2 commits intomainfrom
work/signed-trust-bundles
Apr 26, 2026
Merged

Add signed trust-root bundle verification#6
mdheller merged 2 commits intomainfrom
work/signed-trust-bundles

Conversation

@mdheller
Copy link
Copy Markdown
Member

Summary

Adds signed trust-root bundle verification for nlboot trusted-key documents.

This PR adds:

  • canonical trust-bundle payload construction
  • trust-bundle metadata checks
  • root-key lookup and lifecycle validation before accepting a trust bundle
  • RSA-PSS/SHA-256 verification of trust-bundle signatures
  • load_verified_trust_bundle(...) for consumers that require bundle authenticity
  • tests for positive verification, missing root signer, non-FIPS algorithm, and revoked bundle keys

Software review

Correctness: moves trust-root documents from unsigned lifecycle metadata to bundle-level authenticity checks.

Risk: moderate. This introduces stricter verification semantics but remains side-effect-free.

Weakness: tests monkeypatch the low-level RSA verifier for positive-path bundle verification rather than embedding a private signing key fixture. A later tranche should add generated deterministic signing fixtures or test vectors.

@mdheller mdheller merged commit 7d4a535 into main Apr 26, 2026
3 of 4 checks passed
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