Skip to content

fix: aggregate per-artifact signing failures so signed annotation is not set#1666

Open
SAY-5 wants to merge 1 commit into
tektoncd:mainfrom
SAY-5:fix/aggregate-per-artifact-sign-errors-1663
Open

fix: aggregate per-artifact signing failures so signed annotation is not set#1666
SAY-5 wants to merge 1 commit into
tektoncd:mainfrom
SAY-5:fix/aggregate-per-artifact-sign-errors-1663

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

Changes

Per-artifact CreatePayload, payload marshalling and SignMessage failures in ObjectSigner.Sign() were only logged and continued without contributing to merr. When every per-artifact operation failed this way, merr stayed nil, so MarkSigned set chains.tekton.dev/signed=true even though nothing was signed, permanently suppressing retries. These three paths now append to merr exactly like the storage-failure path a few lines below already does.

No new unit test is included: the change is the same multierror.Append(merr, ...) pattern already used for storage failures in the same loop, and exercising the payload/marshal/sign failure branches in isolation would require stubbing out the real formatter and x509 signer used by TestSigner_Sign.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

Fix Chains marking a TaskRun/PipelineRun as signed when all per-artifact payload creation, marshalling or signing operations failed.

Closes #1663

…not set

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

@tekton-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign wlynch after the PR has been reviewed.
You can assign the PR to them by writing /assign @wlynch in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 12, 2026
Copy link
Copy Markdown
Member

@infernus01 infernus01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SAY-5 for the PR. You'd need to sign CLA please check the link in the CI checks below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: MarkSigned called despite per-artifact signing failures

3 participants