Skip to content

Commit bb0126a

Browse files
committed
trust: TSA are not required in signing config
They will be if there are any rekor 2 instances, but currently TSA is not strictly needed. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent cc608e3 commit bb0126a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sigstore/_internal/trust.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,7 @@ def get_tsa_urls(self) -> list[str]:
387387
but may return more in future.
388388
"""
389389
url = self._get_valid_service_url(self._inner.tsa_urls)
390-
if not url:
391-
raise Error("No valid Timestamp Authority found in signing config")
392-
return [url]
390+
return [] if url is None else [url]
393391

394392

395393
class TrustedRoot:

0 commit comments

Comments
 (0)