Skip to content

fix(container-release): retry cosign sign on transient ghcr 5xx#6

Merged
sebhoss merged 2 commits into
mainfrom
fix/cosign-sign-retry
Jun 22, 2026
Merged

fix(container-release): retry cosign sign on transient ghcr 5xx#6
sebhoss merged 2 commits into
mainfrom
fix/cosign-sign-retry

Conversation

@sebhoss

@sebhoss sebhoss commented Jun 22, 2026

Copy link
Copy Markdown
Member

cosign writes the image signature to ghcr.io's referrers API, which intermittently returns 502/503 under load. A single failure aborted the whole release after the image was already pushed, forcing a manual re-run (against the zero-manual policy). Wrap the sign in a 5-attempt loop with exponential backoff (10s..160s). Re-signing is safe: a transient upload failure leaves no signature, and an extra keyless signature on a digest verifies fine.

sebhoss and others added 2 commits June 22, 2026 20:28
cosign writes the image signature to ghcr.io's referrers API, which
intermittently returns 502/503 under load. A single failure aborted the
whole release after the image was already pushed, forcing a manual re-run
(against the zero-manual policy). Wrap the sign in a 5-attempt loop with
exponential backoff (10s..160s). Re-signing is safe: a transient upload
failure leaves no signature, and an extra keyless signature on a digest
verifies fine.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
Mirror the container-release retry: the keyless sign-blob occasionally
fails on a transient Fulcio/Rekor 5xx, aborting the release after the
image is published and forcing a manual re-run. Wrap it in the same
5-attempt exponential-backoff loop; each attempt writes a fresh bundle.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
@sebhoss sebhoss merged commit d8c23a8 into main Jun 22, 2026
5 checks passed
@sebhoss sebhoss deleted the fix/cosign-sign-retry branch June 22, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant