Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AttestationType, check during verify #29

Merged
merged 6 commits into from
Jul 10, 2024
Merged

Add AttestationType, check during verify #29

merged 6 commits into from
Jul 10, 2024

Conversation

woodruffw
Copy link
Member

This ratchets verification down slightly: we reject the payload even if signed if it doesn't match one of our known attestation types, rather than expecting the caller to check the attestation type.

The caller can still further filter verification, e.g. by rejecting attestation types known to pypi-attestations but not supported by the caller.

WIP; needs tests.

Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw added the enhancement ✨ New feature or request label Jul 10, 2024
@woodruffw woodruffw requested a review from DarkaMaul July 10, 2024 16:11
@woodruffw woodruffw self-assigned this Jul 10, 2024
Signed-off-by: William Woodruff <william@trailofbits.com>
Not available before 3.11.

Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw merged commit f3a412c into main Jul 10, 2024
6 checks passed
@woodruffw woodruffw deleted the ww/enum branch July 10, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant