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

✨ Accept tlog index for POST endpoint. #412

Merged
merged 13 commits into from
Jul 7, 2023

Conversation

spencerschrock
Copy link
Member

This is the first step to migrate off of a deprecated rekor endpoint (see #135 (comment)).

I've included a tlogIndex field in the openapi.yaml spec. Newer versions of scorecard-action will send this when publishing results. Older versions will not, but the webapp will continue to support the existing behavior as a fallback.

In order to verify that the Rekor tlog entry referred by the tlog index actually correspond to the scorecard scores being sent, the SHA256 hashes are compared.

@netlify
Copy link

netlify bot commented Jun 9, 2023

Deploy Preview for ossf-scorecard ready!

Name Link
🔨 Latest commit 086d383
🔍 Latest deploy log https://app.netlify.com/sites/ossf-scorecard/deploys/64a866680dbf350007f20f47
😎 Deploy Preview https://deploy-preview-412--ossf-scorecard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

app/server/internal/hashedrekord/hashedrekord.go Outdated Show resolved Hide resolved
app/server/internal/hashedrekord/hashedrekord.go Outdated Show resolved Hide resolved
app/server/post_results.go Show resolved Hide resolved
app/server/post_results.go Outdated Show resolved Hide resolved
Signed-off-by: Spencer Schrock <[email protected]>
@spencerschrock spencerschrock merged commit b01a5e8 into ossf:main Jul 7, 2023
@spencerschrock spencerschrock deleted the fix/optional-tlog-index branch July 7, 2023 19:34
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