Skip to content

Commit c88aa7c

Browse files
ronnllralphbean
authored andcommitted
fix(CALUNGA-214): use public key for Chains provenance verification
The fetch-chains-provenance step was referencing the private signing key in k8s://tekton-chains/signing-secrets, which the release service account does not have access to. Since cosign verify-attestation only needs the public key, we switch to k8s://openshift-pipelines/public-key which is the same key used by EC verification. Signed-off-by: Ronny Lim <rlim@redhat.com>
1 parent cc631e0 commit c88aa7c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

tasks/managed/extract-py-artifacts/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# extract-py-artifacts
22

33
Extract Python packages from OCI artifacts for signing and upload.
4+
The fetch-chains-provenance step verifies and retrieves Tekton Chains SLSA provenance
5+
using cosign with the public key from k8s://openshift-pipelines/public-key.
6+
The pipeline service account must have get access to this secret
47

58
## Parameters
69

tasks/managed/extract-py-artifacts/extract-py-artifacts.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
spec:
77
description: |
88
Extract Python packages from OCI artifacts for signing and upload.
9+
The fetch-chains-provenance step verifies and retrieves Tekton Chains SLSA provenance
10+
using cosign with the public key from k8s://openshift-pipelines/public-key.
11+
The pipeline service account must have get access to this secret
912
params:
1013
- name: SNAPSHOT_PATH
1114
type: string
@@ -176,7 +179,7 @@ spec:
176179
--type=slsaprovenance \
177180
--insecure-ignore-tlog=true \
178181
--insecure-ignore-sct=true \
179-
--key k8s://tekton-chains/signing-secrets \
182+
--key k8s://openshift-pipelines/public-key \
180183
"${IMAGE}" 2>"${COSIGN_STDERR}" | head -1 | jq . > "${PROVENANCE_FILE}"; then
181184
echo " Saved Chains provenance to ${PROVENANCE_FILE}"
182185
else

0 commit comments

Comments
 (0)