fix(verify): always bind checkpoints to entry logs #385
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 313 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #385"
general
weight: 0.35
wolfv
Summary
Closes #384.
A checkpoint was accepted when any Rekor key in the trusted root signed it.
Nothing tied it to the log the entry names, so an entry that claimed one log
verified with an inclusion proof and checkpoint from another trusted log.
Checkpoint verification now always uses the entry's own log:
entry's;
must equal the host of that log's base URL, which is what sigstore-go uses.
A v2 log with no valid base URL in the trusted root fails closed.
Rekor v1 origins include a tree ID the trusted root does not record, so v1
binds the key only. Witness and other signature lines are still ignored; they
cannot stand in for the entry log's own signature.
Updated per review: the first commit added this as an opt-in policy option.
The second removes the option and merges the two checkpoint paths into one
verify_checkpoint, so there is no way to skip the binding short of skippinglog verification altogether. No opt-out was added.
To test:
cargo test -p sigstore-verify.test_checkpoint_from_another_trusted_log_is_rejectedbuilds an entry thatnames one trusted log and carries a valid checkpoint from another.
test_checkpoint_rejects_rekor_v2_log_without_base_urlcovers the fail-closedcase. No existing test or fixture needed to change, and the verification
conformance suite passes.
No new crates:
sigstore-verifynow usesurl, already a workspacedependency, to read the base URL host.
verify_checkpoint's signature changed, which overlaps with #367. Happy torebase onto it if it lands first.
AI disclosure: I used AI tools to help write the patch and tests. I've reviewed
it and will answer questions myself.
Release Note
Changed checkpoint verification to always require a signature from the entry's
own log. For Rekor v2, the checkpoint origin must also match the host of that
log's base URL in the trusted root. Verification now fails for a checkpoint
signed only by another trusted log, for an entry whose log ID is not in the
trusted root, and for a Rekor v2 log whose trusted-root base URL is missing or
invalid. Rekor v1 binds the key only.
Documentation
Rustdoc on
Verifier::verifydescribes the binding, the Rekor v2 base URL requirementand the Rekor v1 limitation. No change needed on docs.sigstore.dev.