Skip to content

Verifier: Use correct Timestamp hash algorithm#1385

Merged
jku merged 5 commits into
sigstore:mainfrom
jku:use-correct-hash-algo
May 27, 2025
Merged

Verifier: Use correct Timestamp hash algorithm#1385
jku merged 5 commits into
sigstore:mainfrom
jku:use-correct-hash-algo

Conversation

@jku

@jku jku commented May 15, 2025

Copy link
Copy Markdown
Member

Don't assume sha256. Use verify_message() instead: it looks up the correct hash from the the timestamp response.

@jku jku force-pushed the use-correct-hash-algo branch from 52f38a3 to 6305fb1 Compare May 15, 2025 08:26
@jku jku changed the title Verifier: Use correct Timestamp hash algorithm [DRAFT] Verifier: Use correct Timestamp hash algorithm May 16, 2025
Don't assume sha256. Use verify_message() from new rfc3161-client
instead: it looks up the correct hash from the timestamp response.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
@jku jku force-pushed the use-correct-hash-algo branch from 6305fb1 to 0da31a1 Compare May 20, 2025 07:44
@jku jku changed the title [DRAFT] Verifier: Use correct Timestamp hash algorithm Verifier: Use correct Timestamp hash algorithm May 20, 2025
@jku

jku commented May 20, 2025

Copy link
Copy Markdown
Member Author

lol, I made another seemingly unrelated fix in the new rfc3161-client and now lint fails because of the combination of these two fixes... trailofbits/rfc3161-client#152

This is just a lint issue so I silenced it for now but we can also wait for next rfc3161-client release.

@jku jku linked an issue May 21, 2025 that may be closed by this pull request
jku added 2 commits May 21, 2025 10:26
@jku jku marked this pull request as ready for review May 21, 2025 07:28
woodruffw
woodruffw previously approved these changes May 23, 2025

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks @jku!

(Needs deconflict but otherwise good to go.)

@jku jku enabled auto-merge (squash) May 26, 2025 07:04
@jku jku requested a review from woodruffw May 26, 2025 07:04

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@jku jku merged commit 0fcbdc7 into sigstore:main May 27, 2025
23 checks passed
@woodruffw woodruffw added enhancement New feature or request component:verification Core verification functionality labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:verification Core verification functionality enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TSA verification only works for sha256

2 participants