Skip to content

Enforce lockfile provenance continuity and anti-downgrade policies - #4903

Draft
mosuem wants to merge 1 commit into
refresh-sigstore-trusted-rootfrom
enforce-lockfile-provenance
Draft

mosuem wants to merge 1 commit into
refresh-sigstore-trusted-rootfrom
enforce-lockfile-provenance

Conversation

@mosuem

@mosuem mosuem commented Sep 2, 2026

Copy link
Copy Markdown
Member

Replaces PR #4881 which GitHub automatically closed as merged when the branch temporarily aligned with base during rebasing.

  • Store verified Sigstore provenance repository in ResolvedHostedDescription and pubspec.lock.
  • Cache provenance in $PUB_CACHE/hosted-provenance/.
  • Enforce ProvenancePolicy.enforcePolicy during SolveResult.downloadCachedPackages against _previousLockFile to prohibit downgrading from signed to unsigned packages and detect repository switches.
  • Add unit tests for provenance parsing, serialization, and policy enforcement.

@mosuem
mosuem marked this pull request as draft September 4, 2026 11:24
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch 3 times, most recently from 8eded96 to ec1a6d3 Compare October 12, 2026 10:07
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch from ec1a6d3 to 143b4f3 Compare October 12, 2026 11:49
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch from 143b4f3 to 4e8c2b8 Compare October 12, 2026 12:06
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch from 4e8c2b8 to 90168f1 Compare October 12, 2026 12:18
@sigurdm
sigurdm force-pushed the enforce-lockfile-provenance branch from 90168f1 to cc45796 Compare October 12, 2026 14:02
@sigurdm
sigurdm removed this pull request from stack #4904 October 12, 2026 14:16
@sigurdm
sigurdm added this pull request to stack #4944 October 12, 2026 14:16
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch from cc45796 to 9c792cf Compare October 12, 2026 14:37
- Store verified Sigstore provenance repository in ResolvedHostedDescription and pubspec.lock.
- Cache provenance in $PUB_CACHE/hosted-provenance/.
- Enforce ProvenancePolicy.enforcePolicy during SolveResult.downloadCachedPackages against _previousLockFile to prohibit downgrading from signed to unsigned packages and detect repository switches.
- Add unit tests for provenance parsing, serialization, and policy enforcement.
@mosuem
mosuem force-pushed the enforce-lockfile-provenance branch from 9c792cf to ac06507 Compare October 12, 2026 14:49
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