sigstore / rekor

Software Supply Chain Transparency Log
https://sigstore.dev
Apache License 2.0
857 stars 160 forks source link

Add flags to backfill script #2146

Closed cmurphy closed 3 weeks ago

cmurphy commented 4 weeks ago

Add retry options and make all configurable

Add options to the rekor client to set the minimum and maximum retry time, and make all rekor client options configurable for the backfill script.

Add ability to set custom headers in backfill

Add flags to the backfill script to allow passing custom headers to the Rekor service. The Rekor infrastructure may be configured to respond in certain ways to certain headers.

Summary

Release Note

Documentation

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 22.22222% with 14 lines in your changes missing coverage. Please review.

Project coverage is 68.11%. Comparing base (488eb97) to head (701989e). Report is 136 commits behind head on main.

Files Patch % Lines
pkg/client/options.go 12.50% 13 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2146 +/- ## ========================================== + Coverage 66.46% 68.11% +1.65% ========================================== Files 92 92 Lines 9258 7308 -1950 ========================================== - Hits 6153 4978 -1175 + Misses 2359 1591 -768 + Partials 746 739 -7 ``` | [Flag](https://app.codecov.io/gh/sigstore/rekor/pull/2146/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | Coverage Δ | | |---|---|---| | [e2etests](https://app.codecov.io/gh/sigstore/rekor/pull/2146/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | `50.28% <16.66%> (+2.72%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/sigstore/rekor/pull/2146/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | `48.41% <22.22%> (+0.73%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.