File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ cp "${INPUT_ROOT}/scripts/entrypoint.sh" "${OUTPUT_DIR}/scripts"
4141cp " ${INPUT_ROOT} /scripts/import-additional-cas" " ${OUTPUT_DIR} /scripts"
4242cp " ${INPUT_ROOT} /scripts/restore-all-dir-contents" " ${OUTPUT_DIR} /scripts"
4343cp " ${INPUT_ROOT} /scripts/save-dir-contents" " ${OUTPUT_DIR} /scripts"
44- cp " ${INPUT_ROOT} /scripts/trust-root-ca" " ${OUTPUT_DIR} /scripts"
4544
4645# =============================================================================
4746# Add binaries and data files to be included in the Dockerfile here. This
Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ set -euo pipefail
44
55/restore-all-dir-contents
66/import-additional-cas
7- /trust-root-ca
87
98exec /scanner
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ copy_existing /usr/local/share/ca-certificates
2222# Copy the custom trusted CA bundles injected by the Openshift Network Operator.
2323copy_existing /etc/pki/injected-ca-trust
2424
25+ # Copy the StackRox root CA if available (mounted by the operator).
26+ # Only copy ca.pem — the mount also contains server cert and key which
27+ # should not be added as trusted CA anchors.
28+ CA_PATH=" /run/secrets/stackrox.io/certs/ca.pem"
29+ echo " Copying StackRox root CA from '${CA_PATH} '"
30+ # For RHEL
31+ cp " ${CA_PATH} " /etc/pki/ca-trust/source/anchors/root-ca.pem
32+
2533echo " Updating CA trust"
2634# Though /etc/pki/ca-trust/extracted is the default output, update-ca-trust
2735# will create the necessary directories with the required permissions if the `--output` flag is used.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments