Skip to content

Conversation

@gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Dec 5, 2025

Lots of changes to get the last part of PEP 740 implemented. This adds the field attestations to the package upload serializer and the twine upload serializer ,that takes a json list of Attestations to create a Provenance object for the package.

The big changes with this PR is around the library we are using for validation/verification, pypi-attestations. This library is designed for PyPI and thus has the assumptions of PyPI. The big ones are 1. Attestations are only uploaded from TrustedPublishers and 2. only select TrustedPublishers are supported (GitHub, Gitlab, Google). We don't have TrustedPublishers and we want to support any type of Publisher, hence the modified Publisher type: ExtendedPublisher, that will act as a fallback.

fixes: #740
https://issues.redhat.com/browse/PULP-975

@gerrod3 gerrod3 force-pushed the twine-attestation branch 3 times, most recently from 632c86e to e9f1531 Compare December 5, 2025 20:31
@gerrod3 gerrod3 force-pushed the twine-attestation branch 2 times, most recently from d3e65db to 6a8bd94 Compare December 9, 2025 06:22
Copy link
Contributor

@jobselko jobselko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will not have enough time today to check the entire attestation.md file, but we can make adjustments later if needed.

@gerrod3 gerrod3 merged commit 39cad48 into pulp:main Dec 9, 2025
13 checks passed
@gerrod3 gerrod3 deleted the twine-attestation branch December 9, 2025 16:21
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.

2 participants