Open patflynn opened 2 years ago
For anyone picking this up (especially "good first issue" folk) loop in fulcio and rekor people for a review to make sure cosign only retries for retriable errors. Retrying errors that are not retriable (e.g. 403s are not retriable, 429s are retriable if you respect the "Retry-After" header.)
Reopening for the Fulcio one
Description
@vaikas mentioned to me that cosign commands occasionally fail due to an unexpected error either from the network or Sigstore backends. These errors typically will come at the very end of a CI job. To avoid failing expensive long running jobs with a transient cosign error we should retry failed Sigstore calls.
We should do this in all Sigstore clients.
Ideally this would be implemented with configurable exponential backoff and timeout.
Version all versions