Skip to content

Commit 2583420

Browse files
committed
fix(RELEASE-2158): use trusted-ca mounts to support self hosted Quay
Add trusted-ca volume mounts to system certificate paths to be consistent with other tasks in the push-to-external-registry pipeline. Go-based tools (cosign, mobster) require the CA bundle at /etc/ssl/certs/ to include it in the system cert pool. This is needed for push-to-external-registry to work with self-hosted Quay instances that use custom CA certificates. Assisted-by: Cursor Signed-off-by: Lubomir Gallovic <lgallovi@redhat.com>
1 parent c795005 commit 2583420

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tasks/augment-component-sboms-ta/0.3/augment-component-sboms-ta.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ spec:
157157
A regular expression to extract build identity from the OIDC token claims, if applicable.
158158
default: ""
159159

160+
- name: caTrustConfigMapName
161+
type: string
162+
description: The name of the ConfigMap to read CA bundle data from
163+
default: trusted-ca
164+
- name: caTrustConfigMapKey
165+
type: string
166+
description: The name of the key in the ConfigMap that contains the CA bundle data
167+
default: ca-bundle.crt
160168

161169
results:
162170
- description: Produced trusted data artifact
@@ -174,11 +182,26 @@ spec:
174182
# 30 minutes should be enough to finish this task
175183
expirationSeconds: 1800
176184
path: oidc-token
185+
- name: trusted-ca
186+
configMap:
187+
name: $(params.caTrustConfigMapName)
188+
items:
189+
- key: $(params.caTrustConfigMapKey)
190+
path: ca-bundle.crt
191+
optional: true
177192

178193
stepTemplate:
179194
volumeMounts:
180195
- mountPath: /var/workdir
181196
name: workdir
197+
- name: trusted-ca
198+
mountPath: /etc/pki/tls/certs/ca-bundle.crt
199+
subPath: ca-bundle.crt
200+
readOnly: true
201+
- name: trusted-ca
202+
mountPath: /etc/ssl/certs/ca-custom-bundle.crt
203+
subPath: ca-bundle.crt
204+
readOnly: true
182205
env:
183206
- name: IMAGE_EXPIRES_AFTER
184207
value: $(params.ociArtifactExpiresAfter)

0 commit comments

Comments
 (0)