From efd6cdc6afa1d13dec3ad733b5dcb9e9a3bfe080 Mon Sep 17 00:00:00 2001 From: Saurabh Misra Date: Tue, 5 Nov 2024 09:29:23 +0530 Subject: [PATCH] FIX| RKE-CIS-1.24- CHECK 1.1.19 We have added the missing script required for check 1.1.19 in rke-cis-1.24 and made it available to the kube-bench file system(https://github.com/rancher/security-scan/blob/master/package/helper_scripts/check_files_owner_in_dir.sh). --- Dockerfile | 4 ++ cfg/rke-cis-1.24/master.yaml | 2 +- helper_scripts/check_files_owner_in_dir.sh | 44 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 helper_scripts/check_files_owner_in_dir.sh diff --git a/Dockerfile b/Dockerfile index 30e33e572..a36e1c922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,10 @@ RUN make build && cp kube-bench /go/bin/kube-bench ARG KUBECTL_VERSION TARGETARCH RUN wget -O /usr/local/bin/kubectl "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl" RUN wget -O kubectl.sha256 "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl.sha256" + # Verify kubectl sha256sum RUN /bin/bash -c 'echo "$(