File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 39
39
DEFAULT_REKOR_URL = "https://rekor.sigstore.dev"
40
40
STAGING_REKOR_URL = "https://rekor.sigstage.dev"
41
41
42
+ # TODO: Link to merged documenation.
43
+ # See https://github.com/sigstore/rekor-tiles/pull/255/files#diff-eb568acf84d583e4d3734b07773e96912277776bad39c560392aa33ea2cf2210R196
44
+ CREATE_ENTRIES_TIMEOUT_SECONDS = 10
45
+
42
46
DEFAULT_KEY_DETAILS = common_v1 .PublicKeyDetails .PKIX_ECDSA_P384_SHA_256
43
47
44
48
@@ -82,7 +86,11 @@ def create_entry(self, request: v2.CreateEntryRequest) -> LogEntry:
82
86
if "dsseRequestV002" in payload :
83
87
payload ["dsseRequestV0_0_2" ] = payload .pop ("dsseRequestV002" )
84
88
_logger .debug (f"request: { json .dumps (payload )} " )
85
- resp = self .session .post (f"{ self .url } /log/entries" , json = payload )
89
+ resp = self .session .post (
90
+ f"{ self .url } /log/entries" ,
91
+ json = payload ,
92
+ timeout = CREATE_ENTRIES_TIMEOUT_SECONDS ,
93
+ )
86
94
87
95
try :
88
96
resp .raise_for_status ()
You can’t perform that action at this time.
0 commit comments