Skip to content

Conversation

@DarkaMaul
Copy link
Contributor

@DarkaMaul DarkaMaul commented Nov 21, 2024

Expose Certificate Claims in UI

This PR implements the UI display of Sigstore certificate claims, providing a more comprehensive view of package attestations.

Capture d’écran 2024-11-26 à 17 14 29

Implementation Details

  • Displays certificate claims extracted from Sigstore certificates using pypi-attestation
  • pypi-attestation returns a dict[str, str] mapping OIDs (dotted strings) to their decoded values
  • Only active OIDs from the Fulcio Claims list are included (OIDs .8 to .22)

Dependencies

Closes #17122
/cc @di @woodruffw @facutuesca

case "GitLab":
reference = reference.removeprefix("refs/heads/")
return f"{base_url}/-/tree/{reference}"
case _:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FLAG: I'm unsure if we want to do this - or simply return an error?

@DarkaMaul DarkaMaul marked this pull request as ready for review December 2, 2024 16:35
@DarkaMaul DarkaMaul requested a review from a team as a code owner December 2, 2024 16:35
@DarkaMaul
Copy link
Contributor Author

Part of #17001

@di di enabled auto-merge (squash) December 6, 2024 15:19
@di di merged commit fa0757c into pypi:main Dec 6, 2024
20 checks passed
@woodruffw woodruffw deleted the dm/expose-claims branch December 6, 2024 15:27
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.

View source for a package, powered by attestations

3 participants