Skip to content

fix(verify): treat TSA validity_period_end as inclusive upper bound - #2008

Open
shady-ismail-titan wants to merge 1 commit into
sigstore:mainfrom
shady-ismail-titan:fix/tsa-validity-period-end-inclusive
Open

shady-ismail-titan wants to merge 1 commit into
sigstore:mainfrom
shady-ismail-titan:fix/tsa-validity-period-end-inclusive

Conversation

@shady-ismail-titan

Copy link
Copy Markdown

Summary

Fixes #2007.

TimeRange in sigstore/protobuf-specs (protos/sigstore_common.proto) is defined as a closed [start, end] interval, and the signing certificate validity check in sigstore/verify/verifier.py already uses <= on both bounds. This updates _verify_signed_timestamp to use <= for validity_period_end as well, and adds a regression test for a timestamp matching validity_period_end exactly.

Release Note

Added an entry under ## [Unreleased] -> ### Fixed in CHANGELOG.md.

Documentation

None needed.

Signed-off-by: Shady Ismail <audit@titancapitalforensics.com>

This branch has not been deployed

No deployments
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.

TSA validity_period_end check uses < instead of <=

1 participant