Skip to content

Verify uploaded package attestations using package:sigstore - #9546

Draft
mosuem wants to merge 3 commits into
accept-and-serve-attestationsfrom
verify-uploaded-attestations
Draft

Verify uploaded package attestations using package:sigstore#9546
mosuem wants to merge 3 commits into
accept-and-serve-attestationsfrom
verify-uploaded-attestations

Conversation

@mosuem

@mosuem mosuem commented Aug 19, 2026

Copy link
Copy Markdown
Member

Second PR in stack for package attestation support (stacked on top of #9545):

  • Adds sigstore dependency in app/pubspec.yaml.
  • In packageBackend.publishUploadedBlob, validates the attestation bundle against the package archive bytes, package name/version, and pubspec repository using AttestationVerifier.
  • Rejects package upload with PackageRejectedException if attestation is invalid or fails verification.
  • Adds test cases in upload_test.dart for valid verification and rejected invalid attestations.

- Adds `sigstore` dependency in `app/pubspec.yaml`.
- In `packageBackend.publishUploadedBlob`, validates the attestation bundle against the package archive bytes, package name/version, and pubspec repository using `AttestationVerifier`.
- Rejects package upload with `PackageRejectedException` if attestation is invalid or fails verification.
- Adds test cases in `upload_test.dart` for valid verification and rejected invalid attestations.
@mosuem
mosuem force-pushed the verify-uploaded-attestations branch from f3f169e to 72390ad Compare September 3, 2026 15:38
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