Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,43 @@ jobs:

- uses: dtolnay/[email protected]

- name: Build conformance binary
run: cargo build --release --package sigstore-conformance
- name: Build binaries
run: |
cargo build --release --package sigstore-conformance
cargo build --release --example verify_bundle

- uses: sigstore/sigstore-conformance@main
with:
entrypoint: ./target/release/conformance

- name: Upload verify_bundle binary
uses: actions/upload-artifact@v4
with:
name: verify_bundle
path: target/release/examples/verify_bundle

mutation-tests:
name: Mutation Fuzzing
runs-on: ubuntu-latest
needs: conformance
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Download verify_bundle binary
uses: actions/download-artifact@v4
with:
name: verify_bundle
path: target/release/examples

- name: Make binary executable
run: chmod +x target/release/examples/verify_bundle

- name: Clone sigstore-conformance test data
run: git clone --depth 1 https://github.com/sigstore/sigstore-conformance.git

- name: Run mutation fuzzer
run: python3 tests/mutation_fuzzer.py --verifier-type rust
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ members = [
]

[workspace.package]
version = "0.5.0"
version = "0.6.0"
edition = "2021"
license = "BSD-3-Clause"
repository = "https://github.com/wolfv/sigstore-rust"
Expand Down Expand Up @@ -87,15 +87,15 @@ futures = "0.3"
directories = "6.0"

# Internal crates (path + version for publishing)
sigstore-types = { path = "crates/sigstore-types", version = "0.5.0" }
sigstore-crypto = { path = "crates/sigstore-crypto", version = "0.5.0" }
sigstore-merkle = { path = "crates/sigstore-merkle", version = "0.5.0" }
sigstore-tsa = { path = "crates/sigstore-tsa", version = "0.5.0" }
sigstore-trust-root = { path = "crates/sigstore-trust-root", version = "0.5.0" }
sigstore-bundle = { path = "crates/sigstore-bundle", version = "0.5.0" }
sigstore-rekor = { path = "crates/sigstore-rekor", version = "0.5.0" }
sigstore-fulcio = { path = "crates/sigstore-fulcio", version = "0.5.0" }
sigstore-oidc = { path = "crates/sigstore-oidc", version = "0.5.0" }
sigstore-cache = { path = "crates/sigstore-cache", version = "0.5.0" }
sigstore-verify = { path = "crates/sigstore-verify", version = "0.5.0" }
sigstore-sign = { path = "crates/sigstore-sign", version = "0.5.0" }
sigstore-types = { path = "crates/sigstore-types", version = "0.6.0" }
sigstore-crypto = { path = "crates/sigstore-crypto", version = "0.6.0" }
sigstore-merkle = { path = "crates/sigstore-merkle", version = "0.6.0" }
sigstore-tsa = { path = "crates/sigstore-tsa", version = "0.6.0" }
sigstore-trust-root = { path = "crates/sigstore-trust-root", version = "0.6.0" }
sigstore-bundle = { path = "crates/sigstore-bundle", version = "0.6.0" }
sigstore-rekor = { path = "crates/sigstore-rekor", version = "0.6.0" }
sigstore-fulcio = { path = "crates/sigstore-fulcio", version = "0.6.0" }
sigstore-oidc = { path = "crates/sigstore-oidc", version = "0.6.0" }
sigstore-cache = { path = "crates/sigstore-cache", version = "0.6.0" }
sigstore-verify = { path = "crates/sigstore-verify", version = "0.6.0" }
sigstore-sign = { path = "crates/sigstore-sign", version = "0.6.0" }
7 changes: 7 additions & 0 deletions crates/sigstore-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-bundle-v0.5.0...sigstore-bundle-v0.6.0) - 2025-12-07

### Other

- add fuzzing tests
- improve types and add interop test workflow ([#9](https://github.com/wolfv/sigstore-rust/pull/9))

## [0.5.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-bundle-v0.4.0...sigstore-bundle-v0.5.0) - 2025-12-01

### Added
Expand Down
3 changes: 3 additions & 0 deletions crates/sigstore-bundle/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ fn validate_v0_1(bundle: &Bundle, options: &ValidationOptions) -> Result<()> {
));
}

// Validate inclusion proofs if present (v0.1 may have both promise and proof)
validate_inclusion_proofs(bundle)?;

// Common validation
validate_common(bundle, options)
}
Expand Down
6 changes: 6 additions & 0 deletions crates/sigstore-sign/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-sign-v0.5.0...sigstore-sign-v0.6.0) - 2025-12-07

### Other

- improve types and add interop test workflow ([#9](https://github.com/wolfv/sigstore-rust/pull/9))

## [0.5.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-sign-v0.4.0...sigstore-sign-v0.5.0) - 2025-12-01

### Added
Expand Down
6 changes: 6 additions & 0 deletions crates/sigstore-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-types-v0.5.0...sigstore-types-v0.6.0) - 2025-12-07

### Other

- improve types and add interop test workflow ([#9](https://github.com/wolfv/sigstore-rust/pull/9))

## [0.4.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-types-v0.3.0...sigstore-types-v0.4.0) - 2025-11-28

### Other
Expand Down
7 changes: 7 additions & 0 deletions crates/sigstore-verify/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-verify-v0.5.0...sigstore-verify-v0.6.0) - 2025-12-07

### Other

- add fuzzing tests
- improve types and add interop test workflow ([#9](https://github.com/wolfv/sigstore-rust/pull/9))

## [0.5.0](https://github.com/wolfv/sigstore-rust/compare/sigstore-verify-v0.4.0...sigstore-verify-v0.5.0) - 2025-12-01

### Added
Expand Down
14 changes: 14 additions & 0 deletions crates/sigstore-verify/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,20 @@ impl Verifier {
}
}
}

// For MessageSignature bundles, verify the messageDigest matches the artifact
if let SignatureContent::MessageSignature(msg_sig) = &bundle.content {
if let Some(ref digest) = msg_sig.message_digest {
let artifact_hash = compute_artifact_digest(&artifact);

// Compare the digest in the bundle with the computed artifact hash
if digest.digest.as_bytes() != artifact_hash.as_bytes() {
return Err(Error::Verification(
"message digest in bundle does not match artifact hash".to_string(),
));
}
}
}
// Note: For hashedrekord (MessageSignature), the signature verification
// is performed in step (8) by verify_hashedrekord_entries, which properly
// handles prehashed signatures.
Expand Down
Loading