Skip to content

Commit

Permalink
feat(RHTAPWATCH-1019): support custom certificate in show-sbom
Browse files Browse the repository at this point in the history
Support mounting a custom ca-bundle to allow the show-sbom task to use
a registry with a self-signed certificate.

Signed-off-by: Yftach Herzog <[email protected]>
  • Loading branch information
yftacherzog committed Jul 30, 2024
1 parent 50de0a7 commit 81a87e5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions task/show-sbom/0.1/show-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ spec:
refers to a multi-arch image and this parameter is empty, the task will default to use "linux/amd64".
type: string
default: "linux/amd64"
- name: caTrustConfigMapName
type: string
description: The name of the ConfigMap to read CA bundle data from.
default: trusted-ca
- name: caTrustConfigMapKey
type: string
description: The name of the key in the ConfigMap that contains the CA bundle data.
default: ca-bundle.crt
steps:
- name: show-sbom
image: quay.io/konflux-ci/appstudio-utils:ab6b0b8e40e440158e7288c73aff1cf83a2cc8a9@sha256:24179f0efd06c65d16868c2d7eb82573cce8e43533de6cea14fec3b7446e0b14
Expand Down Expand Up @@ -68,3 +76,15 @@ spec:
else
download_sbom_with_retry " --platform=$PLATFORM "
fi
volumeMounts:
- name: trusted-ca
mountPath: /etc/ssl/certs
readOnly: true
volumes:
- name: trusted-ca
configMap:
name: $(params.caTrustConfigMapName)
items:
- key: $(params.caTrustConfigMapKey)
path: ca-bundle.crt
optional: true

0 comments on commit 81a87e5

Please sign in to comment.