Handle signing OCI artifacts in *ARTIFACT_OUTPUTS#1578
Handle signing OCI artifacts in *ARTIFACT_OUTPUTS#1578bradbeck wants to merge 1 commit intotektoncd:mainfrom
Conversation
Handle signing OCI artifacts that are hinted using *ARTIFACT_OUTPUTS Fixes tektoncd#1575 Signed-off-by: Brad Beck <bradley.beck@gmail.com>
|
I previously opened an issue that Chains should stop signing type-hinted artifacts: #1346 If that is implemented, would we just have to back this out as well? |
@arewm - If the user intends to use Chains for image signing as well, this PR is needed. If the user intends not to sign the image artifact through the Chains controller, this will not take effect based on the configmap value as done with #1419 This PR handles the issue that you have created. Hope this helps |
| } | ||
| } | ||
|
|
||
| // Also check structured ARTIFACT_OUTPUTS for OCI artifacts that are marked as build artifacts |
There was a problem hiding this comment.
what happens if artifact is declared via both IMAGE_URL/IMAGE_DIGEST and ARTIFACT_OUTPUTS ?
are falling in double signing ?
There was a problem hiding this comment.
What is the current behavior when both IMAGE_URL/IMAGE_DIGEST & IMAGES define the same artifact?
|
@bradbeck Thank you for this PR. I have verified the double signing behavior for both combinations: The root cause on initial analysis with Claude is no deduplication in [ExtractOCIImagesFromResults] which is pre-existing and this PR has surfaced it by adding a third loop. I'd suggest merging this PR as-is and tracking the deduplication fix as a separate follow-up. @jkhelil , would you prefer a follow-up PR for the deduplication? The test cases would need to cover each type-hint combination independently and in combination, so it is cleaner to handle separately rather than expanding the scope of this PR. Thank you. |
|
The duplicate signing concern from overlapping result formats is addressed in #1601 |
|
/lgtm |
|
@ab-ghosh: changing LGTM is restricted to collaborators DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Changes
Handle signing OCI artifacts that are hinted using *ARTIFACT_OUTPUTS
Fixes #1575
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes