← Back to Pull requests

Ensure that when we read local manifests, they match their claimed digest #5249

Closed
unknown closed this pull request without merging on Nov 25, 2026 19:20 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 12:55 UTC
Author

<!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.

Please remember to:

  • This PR requires an issue. If it is a new feature, the issue should precede the PR and will have allowed sufficient time for discussions to take place. Please use

  • issue tags such as "Closes #XYZ" or "Resolves sigstore/repo-name#XYZ".
  • ensure your commits are signed-off, as sigstore uses the DCO using git commit -s, or git commit -s --amend if you want to amend already existing commits

  • lastly, ensure there are no merge commits!
  • Thank you :)
    -->

    Summary


    <!--
    Explain the motivation for making this change. What existing problem does the pull request solve? How can reviewers test this PR?
    -->
    Cosign provides a "local" OCI-like experience that is really just a directory of files on disk. The digest of the files are encoded in the path, but previously nothing stopped you from modifying those files on disk and not updating the path to reflect the new hash.

    Local registries are a convenience for testing, and should not be used with the expectation of them behaving as a production OCI registry.

    Release Note


    <!--
    Add a release note for each of the following conditions:

    Config changes (additions, deletions, updates)
    API additions—new endpoint, new response fields, or newly accepted request parameters
    Database changes (any)
    Websocket additions or changes
    Anything noteworthy to an administrator running private sigstore instances (err on the side of over-communicating)
    New features and improvements, including behavioural changes, UI changes and CLI changes
    Bug fixes and fixes of previous known issues
    Deprecation warnings, breaking changes, or compatibility notes

    If no release notes are required write NONE. Use past-tense.

    -->

  • cosign verify and cosign verify-attestation check that local image manifests' digest match their path on disk
  • Documentation


    <!--

    Does this change require an update to documentation? How will users implement your new feature?

    Please reference a PR within https://docs.sigstore.dev

    -->
    N/A

    Diff: 292 lines (+219 / -73) across 3 files Reviewer: cmurphy Review duration: 385m
    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 · 292 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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5249"
    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: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    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.8% · Safe to merge
    15.8%