← Back to Pull requests

fix(verify): always bind checkpoints to entry logs #385

Closed
unknown closed this pull request without merging on Dec 02, 2026 09:24 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 21:08 UTC
Author

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:

  • the checkpoint must carry a valid signature from the key whose log ID is the

  • entry's;
  • an entry naming a log outside the trusted root is rejected;

  • for Rekor v2, the checkpoint origin and the name on the log's signature line

  • 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 skipping
    log verification altogether. No opt-out was added.

    To test: cargo test -p sigstore-verify.
    test_checkpoint_from_another_trusted_log_is_rejected builds an entry that
    names one trusted log and carries a valid checkpoint from another.
    test_checkpoint_rejects_rekor_v2_log_without_base_url covers the fail-closed
    case. No existing test or fixture needed to change, and the verification
    conformance suite passes.

    No new crates: sigstore-verify now uses url, already a workspace
    dependency, to read the base URL host.

    verify_checkpoint's signature changed, which overlaps with #367. Happy to
    rebase 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::verify describes the binding, the Rekor v2 base URL requirement
    and the Rekor v1 limitation. No change needed on docs.sigstore.dev.

    Diff: 313 lines (+234 / -79) across 3 files Reviewer: wolfv Review duration: 3616m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.9% · Safe to merge
    15.9%