Skip to content

CLI: sigstore verify pypi? #1271

@woodruffw

Description

@woodruffw

Right now, there's a bit of confusion from users about how to manually verify attestations that come from PyPI. Users also (very understandably!) find the distinction between Sigstore bundles and PEP 740 provenance/attestations confusing, and are (reasonably!) frustrated when the provenance JSON that comes from PyPI can't be immediately shoved into sigstore verify.

To ameliorate these sources of confusion, we could add a sigstore verify pypi or similar subcommand. Some rough sketches:

# fetch the latest version of foopkg from PyPI along with its provenance
sigstore verify pypi foopkg --repository https://github.com/foo/foopkg

# fetch a specific version
sigstore verify pypi foopkg==1.2.3 --repository https://github.com/foo/foopkg

Per sigstore/gh-action-sigstore-python#158 (comment).

Pros:

  • Significantly simplifies the user story/reduces the amount of different moving parts users need to think about as part of consuming PEP 740 attestations
  • Potentially allows us to get rid of pypi-attestations as a separate repo/project and fold everything into sigstore-python

Cons:

  • sigstore-python needs to learn how to parse/handle the PEP 740 attestation and provenance models
  • Technically outside of the scope of a Sigstore client, since these aren't Sigstore bundles?

CC @sethmlarson @di @jku for thoughts 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions