File tree 4 files changed +14
-9
lines changed
4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ All versions prior to 0.9.0 are untracked.
14
14
have been renamed to removed implementation detail references
15
15
([ #402 ] ( https://github.com/sigstore/sigstore-python/pull/402 ) )
16
16
17
+ * ` sigstore.transparency.RekorEntryMissing ` is now ` LogEntryMissing `
18
+ ([ #414 ] ( https://github.com/sigstore/sigstore-python/pull/414 ) )
19
+
17
20
## [ 0.10.0]
18
21
19
22
### Added
Original file line number Diff line number Diff line change 45
45
from sigstore .transparency import LogEntry
46
46
from sigstore .verify import (
47
47
CertificateVerificationFailure ,
48
- RekorEntryMissing ,
48
+ LogEntryMissing ,
49
49
VerificationFailure ,
50
50
VerificationMaterials ,
51
51
Verifier ,
@@ -852,7 +852,7 @@ def _verify_identity(args: argparse.Namespace) -> None:
852
852
),
853
853
file = sys .stderr ,
854
854
)
855
- elif isinstance (result , RekorEntryMissing ):
855
+ elif isinstance (result , LogEntryMissing ):
856
856
# If Rekor lookup failed, it's because the certificate either
857
857
# wasn't logged after creation or because the user requested the
858
858
# wrong Rekor instance (e.g., staging instead of production).
@@ -943,7 +943,7 @@ def _verify_github(args: argparse.Namespace) -> None:
943
943
),
944
944
file = sys .stderr ,
945
945
)
946
- elif isinstance (result , RekorEntryMissing ):
946
+ elif isinstance (result , LogEntryMissing ):
947
947
# If Rekor lookup failed, it's because the certificate either
948
948
# wasn't logged after creation or because the user requested the
949
949
# wrong Rekor instance (e.g., staging instead of production).
Original file line number Diff line number Diff line change 59
59
)
60
60
from sigstore .verify .verifier import (
61
61
CertificateVerificationFailure ,
62
- RekorEntryMissing ,
62
+ LogEntryMissing ,
63
63
Verifier ,
64
64
)
65
65
66
66
__all__ = [
67
67
"CertificateVerificationFailure" ,
68
- "RekorEntryMissing " ,
68
+ "LogEntryMissing " ,
69
69
"Verifier" ,
70
70
"VerificationResult" ,
71
71
"VerificationSuccess" ,
Original file line number Diff line number Diff line change 56
56
logger = logging .getLogger (__name__ )
57
57
58
58
59
- class RekorEntryMissing (VerificationFailure ):
59
+ class LogEntryMissing (VerificationFailure ):
60
60
"""
61
- A specialization of `VerificationFailure` for Rekor lookup failures,
61
+ A specialization of `VerificationFailure` for transparency log lookup failures,
62
62
with additional lookup context.
63
63
"""
64
64
65
- reason : str = "Rekor has no entry for the given verification materials"
65
+ reason : str = (
66
+ "The transparency log has no entry for the given verification materials"
67
+ )
66
68
67
69
signature : str
68
70
"""
@@ -232,7 +234,7 @@ def verify(
232
234
try :
233
235
entry = materials .rekor_entry (self ._rekor )
234
236
except RekorEntryMissingError :
235
- return RekorEntryMissing (
237
+ return LogEntryMissing (
236
238
signature = base64 .b64encode (materials .signature ).decode (),
237
239
artifact_hash = materials .input_digest .hex (),
238
240
)
You can’t perform that action at this time.
0 commit comments