From 5245ea8ce12adec50da46b33d8cf49d788209be1 Mon Sep 17 00:00:00 2001 From: Rayan Das Date: Tue, 12 Sep 2023 20:43:20 +0530 Subject: [PATCH] make charts --- .../rancher-cis-benchmark-crd-4.2.0-rc8.tgz | Bin 0 -> 1467 bytes .../rancher-cis-benchmark-4.2.0-rc8.tgz | Bin 0 -> 8295 bytes .../4.2.0-rc8/Chart.yaml | 10 + .../4.2.0-rc8/README.md | 2 + .../4.2.0-rc8/templates/clusterscan.yaml | 148 ++++++++++++ .../templates/clusterscanbenchmark.yaml | 54 +++++ .../templates/clusterscanprofile.yaml | 36 +++ .../templates/clusterscanreport.yaml | 39 ++++ .../4.2.0-rc8/Chart.yaml | 22 ++ .../rancher-cis-benchmark/4.2.0-rc8/README.md | 9 + .../4.2.0-rc8/app-readme.md | 33 +++ .../4.2.0-rc8/templates/_helpers.tpl | 27 +++ .../4.2.0-rc8/templates/alertingrule.yaml | 14 ++ .../templates/benchmark-aks-1.0.yaml | 8 + .../templates/benchmark-cis-1.20.yaml | 9 + .../templates/benchmark-cis-1.23.yaml | 9 + .../templates/benchmark-cis-1.24.yaml | 9 + .../templates/benchmark-cis-1.5.yaml | 9 + .../templates/benchmark-cis-1.6.yaml | 9 + .../templates/benchmark-cis-1.7.yaml | 8 + .../templates/benchmark-eks-1.0.1.yaml | 8 + .../templates/benchmark-gke-1.2.0.yaml | 8 + .../benchmark-k3s-cis-1.20-hardened.yaml | 9 + .../benchmark-k3s-cis-1.20-permissive.yaml | 9 + .../benchmark-k3s-cis-1.23-hardened.yaml | 9 + .../benchmark-k3s-cis-1.23-permissive.yaml | 9 + .../benchmark-k3s-cis-1.24-hardened.yaml | 9 + .../benchmark-k3s-cis-1.24-permissive.yaml | 9 + .../benchmark-k3s-cis-1.6-hardened.yaml | 9 + .../benchmark-k3s-cis-1.6-permissive.yaml | 9 + .../benchmark-k3s-cis-1.7-hardened.yaml | 8 + .../benchmark-k3s-cis-1.7-permissive.yaml | 8 + .../benchmark-rke-cis-1.20-hardened.yaml | 9 + .../benchmark-rke-cis-1.20-permissive.yaml | 9 + .../benchmark-rke-cis-1.23-hardened.yaml | 9 + .../benchmark-rke-cis-1.23-permissive.yaml | 9 + .../benchmark-rke-cis-1.24-hardened.yaml | 9 + .../benchmark-rke-cis-1.24-permissive.yaml | 9 + .../benchmark-rke-cis-1.5-hardened.yaml | 9 + .../benchmark-rke-cis-1.5-permissive.yaml | 9 + .../benchmark-rke-cis-1.6-hardened.yaml | 9 + .../benchmark-rke-cis-1.6-permissive.yaml | 9 + .../benchmark-rke-cis-1.7-hardened.yaml | 8 + .../benchmark-rke-cis-1.7-permissive.yaml | 8 + .../benchmark-rke2-cis-1.20-hardened.yaml | 9 + .../benchmark-rke2-cis-1.20-permissive.yaml | 9 + .../benchmark-rke2-cis-1.23-hardened.yaml | 9 + .../benchmark-rke2-cis-1.23-permissive.yaml | 9 + .../benchmark-rke2-cis-1.24-hardened.yaml | 9 + .../benchmark-rke2-cis-1.24-permissive.yaml | 9 + .../benchmark-rke2-cis-1.5-hardened.yaml | 9 + .../benchmark-rke2-cis-1.5-permissive.yaml | 9 + .../benchmark-rke2-cis-1.6-hardened.yaml | 9 + .../benchmark-rke2-cis-1.6-permissive.yaml | 9 + .../benchmark-rke2-cis-1.7-hardened.yaml | 8 + .../benchmark-rke2-cis-1.7-permissive.yaml | 8 + .../4.2.0-rc8/templates/cis-roles.yaml | 49 ++++ .../4.2.0-rc8/templates/configmap.yaml | 18 ++ .../4.2.0-rc8/templates/deployment.yaml | 61 +++++ .../templates/network_policy_allow_all.yaml | 15 ++ .../patch_default_serviceaccount.yaml | 29 +++ .../4.2.0-rc8/templates/psp.yaml | 59 +++++ .../4.2.0-rc8/templates/rbac.yaml | 213 ++++++++++++++++++ .../templates/scanprofile-cis-1.20.yaml | 9 + .../templates/scanprofile-cis-1.23.yaml | 9 + .../templates/scanprofile-cis-1.24.yaml | 9 + .../templates/scanprofile-cis-1.6.yaml | 9 + .../templates/scanprofile-cis-1.7.yaml | 9 + .../scanprofile-k3s-cis-1.20-hardened.yml | 9 + .../scanprofile-k3s-cis-1.20-permissive.yml | 9 + .../scanprofile-k3s-cis-1.23-hardened.yml | 9 + .../scanprofile-k3s-cis-1.23-permissive.yml | 9 + .../scanprofile-k3s-cis-1.24-hardened.yml | 9 + .../scanprofile-k3s-cis-1.24-permissive.yml | 9 + .../scanprofile-k3s-cis-1.6-hardened.yml | 9 + .../scanprofile-k3s-cis-1.6-permissive.yml | 9 + .../scanprofile-k3s-cis-1.7-hardened.yml | 9 + .../scanprofile-k3s-cis-1.7-permissive.yml | 9 + .../scanprofile-rke-1.20-hardened.yaml | 9 + .../scanprofile-rke-1.20-permissive.yaml | 9 + .../scanprofile-rke-1.23-hardened.yaml | 9 + .../scanprofile-rke-1.23-permissive.yaml | 9 + .../scanprofile-rke-1.24-hardened.yaml | 9 + .../scanprofile-rke-1.24-permissive.yaml | 9 + .../scanprofile-rke-1.6-hardened.yaml | 9 + .../scanprofile-rke-1.6-permissive.yaml | 9 + .../scanprofile-rke-1.7-hardened.yaml | 9 + .../scanprofile-rke-1.7-permissive.yaml | 9 + .../scanprofile-rke2-cis-1.20-hardened.yml | 9 + .../scanprofile-rke2-cis-1.20-permissive.yml | 9 + .../scanprofile-rke2-cis-1.23-hardened.yml | 9 + .../scanprofile-rke2-cis-1.23-permissive.yml | 9 + .../scanprofile-rke2-cis-1.24-hardened.yml | 9 + .../scanprofile-rke2-cis-1.24-permissive.yml | 9 + .../scanprofile-rke2-cis-1.6-hardened.yml | 9 + .../scanprofile-rke2-cis-1.6-permissive.yml | 9 + .../scanprofile-rke2-cis-1.7-hardened.yml | 9 + .../scanprofile-rke2-cis-1.7-permissive.yml | 9 + .../4.2.0-rc8/templates/scanprofileaks.yml | 9 + .../4.2.0-rc8/templates/scanprofileeks.yml | 9 + .../4.2.0-rc8/templates/scanprofilegke.yml | 9 + .../4.2.0-rc8/templates/serviceaccount.yaml | 14 ++ .../templates/validate-install-crd.yaml | 17 ++ .../templates/validate-psp-install.yaml | 7 + .../4.2.0-rc8/values.yaml | 55 +++++ index.yaml | 40 ++++ 106 files changed, 1690 insertions(+) create mode 100644 assets/rancher-cis-benchmark-crd/rancher-cis-benchmark-crd-4.2.0-rc8.tgz create mode 100644 assets/rancher-cis-benchmark/rancher-cis-benchmark-4.2.0-rc8.tgz create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/Chart.yaml create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/README.md create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscan.yaml create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanbenchmark.yaml create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanprofile.yaml create mode 100644 charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanreport.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/Chart.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/README.md create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/app-readme.md create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/_helpers.tpl create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/alertingrule.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-aks-1.0.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.20.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.23.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.24.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.5.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.6.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.7.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-eks-1.0.1.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-gke-1.2.0.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/cis-roles.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/configmap.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/deployment.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/network_policy_allow_all.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/patch_default_serviceaccount.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/psp.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/rbac.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.20.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.23.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.24.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.6.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.7.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-hardened.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-permissive.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-hardened.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-permissive.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileaks.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileeks.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofilegke.yml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/serviceaccount.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-install-crd.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-psp-install.yaml create mode 100644 charts/rancher-cis-benchmark/4.2.0-rc8/values.yaml diff --git a/assets/rancher-cis-benchmark-crd/rancher-cis-benchmark-crd-4.2.0-rc8.tgz b/assets/rancher-cis-benchmark-crd/rancher-cis-benchmark-crd-4.2.0-rc8.tgz new file mode 100644 index 0000000000000000000000000000000000000000..ce2fe092c4658a895f738cb481d48a84e15ed9d5 GIT binary patch literal 1467 zcmV;s1w{HEiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI@PbDOvm&a?jtO@Gg(;MhsWZ>ihgP4BL0#>w@b*J5L<0f~{8 zTs=4UzuyQ*3>b{DvE7?`XEGT};#{Z?AgAo&7yp9|BUq2!AY^i!W}|LtS}nw%ws z!Ns2Dx~_XQ947x=*De2dM}y&oHypXH=i0vu*Sm6umlw?4*YP$M8v=dd?(M6*xc`WO zl!}0al4jgvi~~WS<_-s<03D&;a?~Uq1^Q!_aiwzDLij$)F?&Ng#y6EiB!p-p;5cTM zZ7MVKW9J&43t)J7;dX3t*FN5i#7Kg|Ab)_0HJxygV+#i z!$Iz(2b<&Ha|fPRjQ@dmIdISMe+E3a4mP ztT}$bM?IHe^|O^Tt5j(NDGhVXwSey@YlGlU3rVOa zDu_dw&8*M9871$47GvfZ0*Z|jfT3wD?L6sx zCJsZ;ONSIeP{4i2wX}kYz?cHk-KwD#&?AWAl>WbJXa!`RL{tE}Up2G>`U|uy0R6dY zXayt{-K1(i3yP2PRuNn4+6p`4%7X~e5QN1Q|6bkM030EA3}2uh2k2XdO_Y2TbBAjs z@3ZzI8P_}3T$p&KvvALtZ)3$SVa)#iCmq5U7{W`ZicsF%efoNNUub45(l*T#)~LSU7<8Iy4k*awk|;=HXbE)TtS-&(`hPuyDmDOB}0!Z)nInnprtHEW_` zN!4Cb2rFpwL?p{*Z}Lrmnx^|qbo0Hi2G++HIZj@URdb} zHT#B~Y6w)>X}Hp81xCmU=Aewj_0~Sisc*hHr==^~mE1Lx&VqQ$(7VO&WJBYof>pam z-Te#Kgq&Ntbsg1Q$ux&ouuu?&mE>%qu2t>_4bmjYR-^0qwndyYhIH!hkH`nY!}|)+ z7`qEPs1uD~lsv4DDt346BN=c&4;!UutDpd_VOi?)g^2=KcAVW%Yo#|OoO;dO$hrM< zqGiIt!0A;7DrKKFE`P%_u0Bn4DUannXqVV(mL9QwL5Vu4lB}a|+KOa*?~Z9|6YFl< zqQV(qHwc^TcifXbiHe7_&6UYXakoqD@oASUYbjmXQD{7MA>=2umi50?skB8Qu%Z4x zxE@}W>VKC5&pX%uj$wzc|Gg5X!$RQu7tEx)q9V9*dfL)pgxtxdb*I&{@LwgfP!TNk zZBgn8h5Rj^p_WK!vgcPo{#-v`8+iEM0AD{~3wWL|>Gdh5C6~_-tyN677`Ugq+|;?N3lcee@d7R z<$sz0)~SEy?)1mL1HI$lTb$TWl*kTQ<4%e8>;0G8Bkto55dZc1KmB;~;qyl)^!N7B z^!=|l9F)HQ9bI0Z>wibF|84l#^@dH;KE@ZIiO~XxiM7vZV}m}ME$cq1J@pFDcDA#f V?QB){ZvX%Q|Nn$g{sRCs001o1=|TVi literal 0 HcmV?d00001 diff --git a/assets/rancher-cis-benchmark/rancher-cis-benchmark-4.2.0-rc8.tgz b/assets/rancher-cis-benchmark/rancher-cis-benchmark-4.2.0-rc8.tgz new file mode 100644 index 0000000000000000000000000000000000000000..68aa0a5cd0391c283894b228baa422b7467bf863 GIT binary patch literal 8295 zcmZ8{c|26_`~HxnM6#1Ld)DmAGDyfawvaX1Wr<{GkV3X>A!}qWyX=N+MT~tZj3wE! zFJqXQ=Qq7S-@kt6pL1TXb3MCouY|C_OdHXk2VYUAb&;MRWg7Y7tpDjQ$E{ z@+j8mW>8vwiunPfqfzp0wr-8*t{CpKp&UW@7YTCCSA}$MRKqa+4n*mOTDunUKfFn* z#j2LuK7}W2daX!&VHD(Db0>j;bEb`eg~S=p#%0vWzz6)9?`m=DWfmGv%>vf1JoM_` zV=4Yd%OR_LR*766Mer|H=Pvi<2+a)|=gu23?pwCpXFea%XKb0PY1 z0o^>YyR6knGP~jfYp={N9orrAi@p&zX=7c*z1T()X3E>N(56Oh?^YD&Get^7^N~Cw zZ_7RAQe*IGQz2unZv`#Fc7m;|7ijTA8sXzi(nf#IqFJiq>A84Tuk*!ZN(`3tTOHD> z6mnjz*zNM=c}7Ok&~o`T#c(F?j*Efqy0WoQO3{R|ZLrd2aieU%IG<49jl)|RrLDyM z8@j4_R=TWm0scexxik|@ZCqAAR1HVF&y5bO0VjaqvWq`7C$8xM{ue#SyD(a{ppoeL$l8ql`o-q6@jcxA=wM>PM^*b63>sGP-sRC@-;{Dv2I* zg?u~>_wYxEpfTHSfQZVnB1Np)rpygr{SueS=)w5qbK&r=7@dmd=AkPuERHYnCvzL` zXtjTt*_7p4Uv7lWo?6wJi0*Jx%r$gW&1^PC0k6BlBWLn|{D0MF8Q*N~DoE!WhJN}T zD7%06rN+I2-?jUOiAzJFmzJ(z1=K|BX?^wf=I5QqG-MeS6IyOy)Y{ z2FcA7(#Uapwd2gQoCo=b=I=k@SW1=OADBp4Q&NbtsL*O(OT(xMN07iZGV`$vgUu#8 z63L=vOYVuf51NbJ$Zk&AEdI_lTO)D!i}XF%6D<0v5cEu9>>ediwB=V*3!`Qcrw32d z%jct_Zz77_-F&ETO+3)rN1DGsdTtH5$63s~vfJBWyOfhX&2v_JdGE1E%w~418WAkR z8aJsUHASH$nNNfjbBe+6z z{nqBBZ=t^TtJLD3BBbBdq4OD~LGcz7nPdTj0pX&tH_t7IV63n_>EjPipGRG_SGhaX zWFoXgH!7e?Q=zHjZJ;JC;vLjp7-7&aH)-X`)_X3S{s*n0 zK4G66pQ3Y<0sr_B=|Vy$MU%0#Ud@V7t9XZgk*XT~cSwd$db5h%Pj4L(9m?m4+6J~Z zJ|8sp>u`0rZ{wl#?$cmiAwTTB9rK5`d2fWGiQE3bJ3QffAo^wZ=q7?H1mkl~ym*`C zYE+2DM?RY;EARQTcwA)X7e)-Y+T}YCULlzA@j7)DHDjdhp>XzS>&##YU4YqltDfNe z^$SZer(r6(>fcX7%S}~rfyD*9W2Ms3Fzyq!p~?-C_WYD@G6#xty$(eK-^Jrd9NmbA zfha6HU9!vI3BLG|XP-r!zO6J~DvRA|S((mBvd|WrvUROBQt7v$KJZ^wJx7{c~6C#nDbg+4o9{z zLg4Qq(BQe1{YJjG;;5S)k67UJGsVH1l>Rp6f~E)=L{^l#%?)b4PhO3t@7(|7Y+jD5 zD_?&eVHKpDpD%VdfpsvF#_Dj%I;BuT^FDE5Ok&Mo95)TMg{#db#`nSQP)3NKxe*if z?jCE=1o6c8Zv3f+6jfVUP;T#Kg@d$>=ufXOZ-oLHw z4D}of6}t8Zj-mw@i9puiD!53;piq6Fa}^kR3j*X;CZHZXf;WMlYgoZ2438wH!$3bG5rixX$#1A@%aps{a|rs8}WG$fLgl4(#5$W5muMU~0ew$TiIg^(NZZl)-cIg5Z64DDXn8=7GkS=V$Qv zwg0APz*8rE0t@)_3wV&Thd)44Y^{L(%MhO#h|Rp5Ps_+@Jgw*BXifS&;;NRq($ za};>~MZ&#bo}L1#b1{5VHt}uRv`eSFw-k$AgGp zz@GHQzeqtFBbfgmv~dp*76=CwE=vLfgz6GX!PW~r8_6Ml17I5sg6^R&;C|11@m@8_ z#`j5%-$bTjIYw$--%4pv*j|JRg7?A zBi$^8+|yOQua2qz^Wga#ZFq-Xr<&A9BN ze7yh9Vl-$_@Wdgn8F6}OVAx|#b1n+&yY0y3Z+e$mWG|HK^YE;!UhWKu_z_=Fj`I(z zy23G!lB)~J@7m@?u86Ek4%2bdX9>I(%#{mojjJIFI=vli-iQ)D4x z=3rgY6P}xdeOHsKDHyY|qS8ctJw@WRYjaEMVwz)%smhlSUI}&EeA$eV7tH5h-p=H; zsM>T(=c{c?e@z!bkI-{fmSEzasD>({Lph{QIwxH}OA|eybvRkqr5QA!k32|V&kG;< zPOrJ|TZ~-GHIWBtL0A}Zsfmzx#xXuad@-BE-d#y)DA~l@n;eZUB2N{P ze06bAS}D^K-?N_*J&9oL?)$A|mO;$-C*jiV)H25b#-Fm9d}ZQC#;>ZHf2*<754zn` zqt_1FQe^!kzUXUo<33DJNnUs!l&oK1P)|270+pSH^9_ z*1b?xq0RW?-QnoUIJ232F?jR2!3btkOd;^xU~$GPEU0MUPxp<|Ic=)~js*6p&?7vy zt;x$~FO^49@|r|As?LS#JsqvK`&X}hogWOIB3nC2Gn|W7p+RuGXU{XHHv1cg5?7>P z?_N*-lJdO`%ZQF{>cH<2R-DLk&jyZ9@z3@8h=! zGAugKF7WOd6|*CeBx&xhq(J|r_7M`j>`RVe%;cAc-`1VYyi-OE(!-wnWDV=&4q13H z*6Zk3o4N4ydDZ02XiHsHs&DjsCEZq8YD(T{)izZdP~&snCHkqOVK0)M^rE-o9EJaz)(rNn&3gST^CRTqek`f)tc2H63oD5jZ?Ck{&7 zEiAsl^K-Ph+sRE|$0uw6>KtZ=<>$RGBW)+KAKirvO8m)x&{#p=&aOwd3AV*POSZCC zMm$hf_Ope@&Gx~cPY6@fm_}bts zn&uLv{^NK$u^Pu~+1ZV0_48hzMz#=PlDotW6-4h<^n}tsleW(o7v~DI_2!6&-xPD0S

PXE37%46=&hapWXEN=@S z5+6VFn^w@-Wi*hD{F3MG@Z#E`@GG%1&DbY89=x4XTkSjUZ1-=DB;TTCL~o_hiUlwu z<2nrN%%(5>s^wv`J_ZwrOA}n*NyF+Vw)VRtF^PggHWL?ty6M?F)oLPhv2LV`p=f@;b=76U!}C zsh#&{G^3O{+Fi0y)GU+qQprMW*Y()mcO&-oQrcdQEdDKeQSXK24zeA)T{~T>DB_h3 zMw}+nEh^uCAD9$(vdy?~nYa{W(fLmHZOWgUOY!OGf3!BUy$@3sb8PyoP^d=jzV)8R(;80lG(*`= zlwax+l-FGxjgIqhYG?EjZR6m$J=g%hTGz?xb=drvPGRt)5N)xpOoX9Us8qbNv-bXN z^;*ty&mrFkuT1e@SBxEW)u>0bDSzfwE8BCZ3a(WmNl4an9_W&B-AUWKZpooDV8@qh zqQ1;~t^Vb!b#0C+-A~PV)JC!kRsvFDR>%x)4u|rY=upj@#jG~jaoVZrS;>4_njU@4 zo#Qyg+nPgt;<;syPPA+lc;+{#-h_zNeGqgf9T$60_i*Q$QF?CQM`Xm#-20Tn>N6?Z zPf~W4?X}5Ce6m%}M-R1|T!XL)QT}r|?JFW}g6j%A-(T`C4rDQN!siDMUN+V$9x^+g zG&OVhv`-Zed_=BRJAQVXLM%m2+as3|WNp)M3Z(xUQi;8lqv1I)+r)qof}nLKk46BV zP)V=25&HbNUkyqhv9kqD7Qf|7J`}o>=?yAXIZGIIbqwkr(Ak5t`7Pi%h0CJB%Yjr7VGQmW zqyzGAfa4rxGXrdppTQ&51uUEd!zq7);+#5zezFDZ1P920r{;tKLSoda5AicqfFQCc zw*C-21Q^`}c=;%>LNo2$cu~Tej2Uq!8 z8!P?>aBw`914C#)miV808bY)`9lj)g0)-G3roNEiVe=VgM?s#_X$< z46|eKN{+5gKvdQRIvH^Od!UY(^&HhS5Y~j=Q!!aVP~rTsO~eZ4UQ?IkaZpI~5&T&h zcCQr=7l2-&rX=| zhLcwuA#8A*@_0*C92QQG^KXNo)&GaqKHtkDDE|Ks?DQ|+$aBm;i{MAJ8~X+e-5?ED zz#v?~Ue`aatRPO9Af63+1K8ZMAK*O-Y=?oNYyT+p4e^V#Sx)E>6fi+d$KeC;e{7q! zg*1=JvZMVACBgO-sQ+R~P@+FEfcd}a6E2;>Jbx>DU5MHV+h3gx^lt4kd|aanD+ z?ksJmrWVUkg%zt`-Foyh_9SdNos&9!-qx*(I>lsYtAoW$6FR>Ii zNc4Xch@?lDM%LX5Ku-9Ar=PWjANXE>_>KBe&55N^B@}))0=imlB2+#gI{ds?1G%4} z80-2|TaN@!YaBr&U0nyOuCmeLBJLI$s4FMW=yz4yf~gE&4-q37jHy>K!%a;+-FH?O zWL}MmQ!H05bu!@>P_p+^$TmAWoHe=NuWbTJ4r#7k$vAlMs0|7%>|C425_X1t;QDS6 z#v5-KH1Rg+L1y5fmIlXv+FI>NKZD}0EyfPOMf;wHx*YD`x)E=fJhI70T{V_O`p`e) zkM2=m-fGn7_4k}km*2$Ps&GHNLZsW8HX=Y(!jKX5L%2dE#QQf|E()p78r+i;LzoWuM*fMzLlqvZl>x=&I? zdo|pQY38k_{=T-QU(p8^lblXfHR~(fPCsH!`c8a8$sDwK-zwYD%3mTLnlsi{`%0Y2 zJ@LrxAYb$5l$6kQewUO2C-n#zb36@k*bt!uO4+Wldc}&D)`88a=m2xH-cQ*R$f4&h z?Yyu5Vd{|7jeSTUX7tHZsR@PhXP$>4e+_G+hp_^NleAiqcQ|^;|1NnC`sOW zOKAH~brj%kIDboHler;!W_~O)R99*;yi$AXu5e@K{+)(`-!Gk`NQ30nXrnL%yShhlU%7P zKDKTOsTr+G7m23pr&i4+NTvRFPF5a26a)X{l}>ZbeT(^t2kosk!D*!!bBMI*J&D}EGwM4Qhc~6 zQzGkwvcs~G5(VmZ0i^?q(>(&`#;)SiJx^-r0>H{aRL5_rZ#@spa}%%khC#vis1UUZ~mPD_16 zTX_uWjiBWYG1_i-vrSWSDEkZaAObiRGVd6H{-}?6&DX8X2S0I7Db+hIMqXXzT6%Z8 z_(FUv>90^9RjtIwtMtsgEuR>2#3)OZgYpY1@*A8UYBhV!ytJi{M^IfNC}?Y_K2JTWMR{rG;z&Y{9y z_W5qhBb%XdKAZzt?10eDp}YCW%kZrbE#}3~exKAy^HY0y>Ytt6@xFZdJ1<9=G8}Cx zC2RF4ag}(*MM$gWi|mYxVjwY847p!uB68OT{TE2zn0dp?sPky^_)19oZ&eQQ@T{zf zCmB_XX%e|x&;Qte{OwxhLum8QWtg^x>?>xSC(*E6&N(6_yG;|~X<=D5fLVJr~*Kwg8DkS%JG{@GGa9p z%!*6Dwf1bded4x3d3O zU)WkGUkc5;+xJP0`tW+4$Bu4(#D+%B`BHi`#(nN;AMQN5{QYR;Hm0hp z#`))Iylud@w+ygd=*MnHH=JGO&k?dCirW+zYuY8lV$m>-uisP714*7b+@UI!yg5>l z_AQ_rS&Z*~>yxOPMgLQOT4^@$@oxCDQyH;%hpZfB@;j^E%nk=eo%$^=c=_kzZ>ijO zX_l1E3ZU;-MF-TZD`I?INd3a$k3M_cCiQ SAR+uy08Wq#;*ee<$o~Txw>*ac literal 0 HcmV?d00001 diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/Chart.yaml b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/Chart.yaml new file mode 100644 index 0000000000..50e3de5fa8 --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/Chart.yaml @@ -0,0 +1,10 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: cis-operator-system + catalog.cattle.io/release-name: rancher-cis-benchmark-crd +apiVersion: v1 +description: Installs the CRDs for rancher-cis-benchmark. +name: rancher-cis-benchmark-crd +type: application +version: 4.2.0-rc8 diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/README.md b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/README.md new file mode 100644 index 0000000000..f6d9ef621f --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/README.md @@ -0,0 +1,2 @@ +# rancher-cis-benchmark-crd +A Rancher chart that installs the CRDs used by rancher-cis-benchmark. diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscan.yaml b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscan.yaml new file mode 100644 index 0000000000..3cbb0ffcd3 --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscan.yaml @@ -0,0 +1,148 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: clusterscans.cis.cattle.io +spec: + group: cis.cattle.io + names: + kind: ClusterScan + plural: clusterscans + scope: Cluster + versions: + - name: v1 + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .status.lastRunScanProfileName + name: ClusterScanProfile + type: string + - jsonPath: .status.summary.total + name: Total + type: string + - jsonPath: .status.summary.pass + name: Pass + type: string + - jsonPath: .status.summary.fail + name: Fail + type: string + - jsonPath: .status.summary.skip + name: Skip + type: string + - jsonPath: .status.summary.warn + name: Warn + type: string + - jsonPath: .status.summary.notApplicable + name: Not Applicable + type: string + - jsonPath: .status.lastRunTimestamp + name: LastRunTimestamp + type: string + - jsonPath: .spec.scheduledScanConfig.cronSchedule + name: CronSchedule + type: string + subresources: + status: {} + schema: + openAPIV3Schema: + properties: + spec: + properties: + scanProfileName: + nullable: true + type: string + scheduledScanConfig: + nullable: true + properties: + cronSchedule: + nullable: true + type: string + retentionCount: + type: integer + scanAlertRule: + nullable: true + properties: + alertOnComplete: + type: boolean + alertOnFailure: + type: boolean + type: object + type: object + scoreWarning: + enum: + - pass + - fail + nullable: true + type: string + type: object + status: + properties: + NextScanAt: + nullable: true + type: string + ScanAlertingRuleName: + nullable: true + type: string + conditions: + items: + properties: + lastTransitionTime: + nullable: true + type: string + lastUpdateTime: + nullable: true + type: string + message: + nullable: true + type: string + reason: + nullable: true + type: string + status: + nullable: true + type: string + type: + nullable: true + type: string + type: object + nullable: true + type: array + display: + nullable: true + properties: + error: + type: boolean + message: + nullable: true + type: string + state: + nullable: true + type: string + transitioning: + type: boolean + type: object + lastRunScanProfileName: + nullable: true + type: string + lastRunTimestamp: + nullable: true + type: string + observedGeneration: + type: integer + summary: + nullable: true + properties: + fail: + type: integer + notApplicable: + type: integer + pass: + type: integer + skip: + type: integer + total: + type: integer + warn: + type: integer + type: object + type: object + type: object diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanbenchmark.yaml b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanbenchmark.yaml new file mode 100644 index 0000000000..fd291f8c33 --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanbenchmark.yaml @@ -0,0 +1,54 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: clusterscanbenchmarks.cis.cattle.io +spec: + group: cis.cattle.io + names: + kind: ClusterScanBenchmark + plural: clusterscanbenchmarks + scope: Cluster + versions: + - name: v1 + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.clusterProvider + name: ClusterProvider + type: string + - jsonPath: .spec.minKubernetesVersion + name: MinKubernetesVersion + type: string + - jsonPath: .spec.maxKubernetesVersion + name: MaxKubernetesVersion + type: string + - jsonPath: .spec.customBenchmarkConfigMapName + name: customBenchmarkConfigMapName + type: string + - jsonPath: .spec.customBenchmarkConfigMapNamespace + name: customBenchmarkConfigMapNamespace + type: string + subresources: + status: {} + schema: + openAPIV3Schema: + properties: + spec: + properties: + clusterProvider: + nullable: true + type: string + customBenchmarkConfigMapName: + nullable: true + type: string + customBenchmarkConfigMapNamespace: + nullable: true + type: string + maxKubernetesVersion: + nullable: true + type: string + minKubernetesVersion: + nullable: true + type: string + type: object + type: object diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanprofile.yaml b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanprofile.yaml new file mode 100644 index 0000000000..1e75501b7c --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanprofile.yaml @@ -0,0 +1,36 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: clusterscanprofiles.cis.cattle.io +spec: + group: cis.cattle.io + names: + kind: ClusterScanProfile + plural: clusterscanprofiles + scope: Cluster + versions: + - name: v1 + served: true + storage: true + subresources: + status: {} + schema: + openAPIV3Schema: + properties: + spec: + properties: + benchmarkVersion: + nullable: true + type: string + skipTests: + items: + nullable: true + type: string + nullable: true + type: array + type: object + type: object + additionalPrinterColumns: + - jsonPath: .spec.benchmarkVersion + name: BenchmarkVersion + type: string diff --git a/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanreport.yaml b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanreport.yaml new file mode 100644 index 0000000000..6e8c0b7de5 --- /dev/null +++ b/charts/rancher-cis-benchmark-crd/4.2.0-rc8/templates/clusterscanreport.yaml @@ -0,0 +1,39 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: clusterscanreports.cis.cattle.io +spec: + group: cis.cattle.io + names: + kind: ClusterScanReport + plural: clusterscanreports + scope: Cluster + versions: + - name: v1 + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.lastRunTimestamp + name: LastRunTimestamp + type: string + - jsonPath: .spec.benchmarkVersion + name: BenchmarkVersion + type: string + subresources: + status: {} + schema: + openAPIV3Schema: + properties: + spec: + properties: + benchmarkVersion: + nullable: true + type: string + lastRunTimestamp: + nullable: true + type: string + reportJSON: + nullable: true + type: string + type: object + type: object \ No newline at end of file diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/Chart.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/Chart.yaml new file mode 100644 index 0000000000..78cddde89f --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/Chart.yaml @@ -0,0 +1,22 @@ +annotations: + catalog.cattle.io/auto-install: rancher-cis-benchmark-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: CIS Benchmark + catalog.cattle.io/kube-version: '>= 1.21.0-0 < 1.27.0-0' + catalog.cattle.io/namespace: cis-operator-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux,windows + catalog.cattle.io/provides-gvr: cis.cattle.io.clusterscans/v1 + catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0' + catalog.cattle.io/release-name: rancher-cis-benchmark + catalog.cattle.io/type: cluster-tool + catalog.cattle.io/ui-component: rancher-cis-benchmark +apiVersion: v1 +appVersion: v4.2.0-rc8 +description: The cis-operator enables running CIS benchmark security scans on a kubernetes + cluster +icon: https://charts.rancher.io/assets/logos/cis-kube-bench.svg +keywords: +- security +name: rancher-cis-benchmark +version: 4.2.0-rc8 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/README.md b/charts/rancher-cis-benchmark/4.2.0-rc8/README.md new file mode 100644 index 0000000000..50beab58ba --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/README.md @@ -0,0 +1,9 @@ +# Rancher CIS Benchmark Chart + +The cis-operator enables running CIS benchmark security scans on a kubernetes cluster and generate compliance reports that can be downloaded. + +# Installation + +``` +helm install rancher-cis-benchmark ./ --create-namespace -n cis-operator-system +``` diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/app-readme.md b/charts/rancher-cis-benchmark/4.2.0-rc8/app-readme.md new file mode 100644 index 0000000000..147e91ea2e --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/app-readme.md @@ -0,0 +1,33 @@ +# Rancher CIS Benchmarks + +This chart enables security scanning of the cluster using [CIS (Center for Internet Security) benchmarks](https://www.cisecurity.org/benchmark/kubernetes/). + +For more information on how to use the feature, refer to our [docs](https://rancher.com/docs/rancher/v2.x/en/cis-scans/v2.5/). + +This chart installs the following components: + +- [cis-operator](https://github.com/rancher/cis-operator) - The cis-operator handles launching the [kube-bench](https://github.com/aquasecurity/kube-bench) tool that runs a suite of CIS tests on the nodes of your Kubernetes cluster. After scans finish, the cis-operator generates a compliance report that can be downloaded. +- Scans - A scan is a CRD (`ClusterScan`) that defines when to trigger CIS scans on the cluster based on the defined profile. A report is created after the scan is completed. +- Profiles - A profile is a CRD (`ClusterScanProfile`) that defines the configuration for the CIS scan, which is the benchmark versions to use and any specific tests to skip in that benchmark. This chart installs a few default `ClusterScanProfile` custom resources with no skipped tests, which can immediately be used to launch CIS scans. +- Benchmark Versions - A benchmark version is a CRD (`ClusterScanBenchmark`) that defines the CIS benchmark version to run using kube-bench as well as the valid configuration parameters for that benchmark. This chart installs a few default `ClusterScanBenchmark` custom resources. +- Alerting Resources - Rancher's CIS Benchmark application lets you run a cluster scan on a schedule, and send alerts when scans finish. + - If you want to enable alerts to be delivered when a cluster scan completes, you need to ensure that [Rancher's Monitoring and Alerting](https://rancher.com/docs/rancher/v2.x/en/monitoring-alerting/v2.5/) application is pre-installed and the [Receivers and Routes](https://rancher.com/docs/rancher/v2.x/en/monitoring-alerting/v2.5/configuration/#alertmanager-config) are configured to send out alerts. + - Additionally, you need to set `alerts: true` in the Values YAML while installing or upgrading this chart. + +## Upgrading to Kubernetes v1.25+ + +Starting in Kubernetes v1.25, [Pod Security Policies](https://kubernetes.io/docs/concepts/security/pod-security-policy/) have been removed from the Kubernetes API. + +As a result, **before upgrading to Kubernetes v1.25** (or on a fresh install in a Kubernetes v1.25+ cluster), users are expected to perform an in-place upgrade of this chart with `global.cattle.psp.enabled` set to `false` if it has been previously set to `true`. + +> **Note:** +> In this chart release, any previous field that was associated with any PSP resources have been removed in favor of a single global field: `global.cattle.psp.enabled`. + +> **Note:** +> If you upgrade your cluster to Kubernetes v1.25+ before removing PSPs via a `helm upgrade` (even if you manually clean up resources), **it will leave the Helm release in a broken state within the cluster such that further Helm operations will not work (`helm uninstall`, `helm upgrade`, etc.).** +> +> If your charts get stuck in this state, please consult the Rancher docs on how to clean up your Helm release secrets. + +Upon setting `global.cattle.psp.enabled` to false, the chart will remove any PSP resources deployed on its behalf from the cluster. This is the default setting for this chart. + +As a replacement for PSPs, [Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/) should be used. Please consult the Rancher docs for more details on how to configure your chart release namespaces to work with the new Pod Security Admission and apply Pod Security Standards. diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/_helpers.tpl b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/_helpers.tpl new file mode 100644 index 0000000000..b7bb000422 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/_helpers.tpl @@ -0,0 +1,27 @@ +{{/* Ensure namespace is set the same everywhere */}} +{{- define "cis.namespace" -}} + {{- .Release.Namespace | default "cis-operator-system" -}} +{{- end -}} + +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +kubernetes.io/os: linux +{{- end -}} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/alertingrule.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/alertingrule.yaml new file mode 100644 index 0000000000..1787c88a07 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/alertingrule.yaml @@ -0,0 +1,14 @@ +{{- if .Values.alerts.enabled -}} +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: rancher-cis-pod-monitor + namespace: {{ template "cis.namespace" . }} +spec: + selector: + matchLabels: + cis.cattle.io/operator: cis-operator + podMetricsEndpoints: + - port: cismetrics +{{- end }} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-aks-1.0.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-aks-1.0.yaml new file mode 100644 index 0000000000..1ac866253f --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-aks-1.0.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: aks-1.0 +spec: + clusterProvider: aks + minKubernetesVersion: "1.15.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.20.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.20.yaml new file mode 100644 index 0000000000..1203e5bcc5 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.20.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.20 +spec: + clusterProvider: "" + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.23.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.23.yaml new file mode 100644 index 0000000000..83002966d8 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.23.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.23 +spec: + clusterProvider: "" + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.24.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.24.yaml new file mode 100644 index 0000000000..ad73b2c34c --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.24.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.24 +spec: + clusterProvider: "" + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.5.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.5.yaml new file mode 100644 index 0000000000..c9e6075fb4 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.5.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.5 +spec: + clusterProvider: "" + minKubernetesVersion: "1.15.0" + maxKubernetesVersion: "1.15.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.6.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.6.yaml new file mode 100644 index 0000000000..4f5d66e92f --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.6.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.6 +spec: + clusterProvider: "" + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.7.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.7.yaml new file mode 100644 index 0000000000..4f6e41b9da --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-cis-1.7.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: cis-1.7 +spec: + clusterProvider: "" + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-eks-1.0.1.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-eks-1.0.1.yaml new file mode 100644 index 0000000000..d1ba9d2954 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-eks-1.0.1.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: eks-1.0.1 +spec: + clusterProvider: eks + minKubernetesVersion: "1.15.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-gke-1.2.0.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-gke-1.2.0.yaml new file mode 100644 index 0000000000..c609e736fd --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-gke-1.2.0.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: gke-1.2.0 +spec: + clusterProvider: gke + minKubernetesVersion: "1.15.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-hardened.yaml new file mode 100644 index 0000000000..147cac3906 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.20-hardened +spec: + clusterProvider: k3s + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-permissive.yaml new file mode 100644 index 0000000000..d9584f7229 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.20-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.20-permissive +spec: + clusterProvider: k3s + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-hardened.yaml new file mode 100644 index 0000000000..1a928db35c --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.23-hardened +spec: + clusterProvider: k3s + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-permissive.yaml new file mode 100644 index 0000000000..5a46787d51 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.23-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.23-permissive +spec: + clusterProvider: k3s + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-hardened.yaml new file mode 100644 index 0000000000..47b6be197a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.24-hardened +spec: + clusterProvider: k3s + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-permissive.yaml new file mode 100644 index 0000000000..6ded2f02bd --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.24-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.24-permissive +spec: + clusterProvider: k3s + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-hardened.yaml new file mode 100644 index 0000000000..5160cf7950 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.6-hardened +spec: + clusterProvider: k3s + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-permissive.yaml new file mode 100644 index 0000000000..10c0759853 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.6-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.6-permissive +spec: + clusterProvider: k3s + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-hardened.yaml new file mode 100644 index 0000000000..7dd99a0ecf --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-hardened.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.7-hardened +spec: + clusterProvider: k3s + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-permissive.yaml new file mode 100644 index 0000000000..187056d5f6 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-k3s-cis-1.7-permissive.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: k3s-cis-1.7-permissive +spec: + clusterProvider: k3s + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-hardened.yaml new file mode 100644 index 0000000000..4924679cb3 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.20-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-permissive.yaml new file mode 100644 index 0000000000..2db66d7c62 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.20-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.20-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-hardened.yaml new file mode 100644 index 0000000000..12de23173d --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.23-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-permissive.yaml new file mode 100644 index 0000000000..f9d5052541 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.23-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.23-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-hardened.yaml new file mode 100644 index 0000000000..7030c793fc --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.24-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-permissive.yaml new file mode 100644 index 0000000000..b2633eade1 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.24-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.24-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-hardened.yaml new file mode 100644 index 0000000000..b9154f1ada --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.5-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.15.0" + maxKubernetesVersion: "1.15.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-permissive.yaml new file mode 100644 index 0000000000..9da65d55dd --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.5-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.5-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.15.0" + maxKubernetesVersion: "1.15.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-hardened.yaml new file mode 100644 index 0000000000..77f8a31df6 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.6-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-permissive.yaml new file mode 100644 index 0000000000..600b8df35a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.6-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.6-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-hardened.yaml new file mode 100644 index 0000000000..0fe73b6ceb --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-hardened.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.7-hardened +spec: + clusterProvider: rke + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-permissive.yaml new file mode 100644 index 0000000000..bc54955721 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke-cis-1.7-permissive.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke-cis-1.7-permissive +spec: + clusterProvider: rke + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-hardened.yaml new file mode 100644 index 0000000000..b6cc88359c --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.20-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-permissive.yaml new file mode 100644 index 0000000000..fd898bfe86 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.20-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.20-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.19.0" + maxKubernetesVersion: "1.21.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-hardened.yaml new file mode 100644 index 0000000000..55d96da59d --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.23-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-permissive.yaml new file mode 100644 index 0000000000..55fffe3209 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.23-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.23-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.22.0" + maxKubernetesVersion: "1.23.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-hardened.yaml new file mode 100644 index 0000000000..f702a13726 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.24-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-permissive.yaml new file mode 100644 index 0000000000..5bc70099f7 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.24-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.24-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.24.0" + maxKubernetesVersion: "1.24.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-hardened.yaml new file mode 100644 index 0000000000..20091ec2b3 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.5-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.15.0" + maxKubernetesVersion: "1.15.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-permissive.yaml new file mode 100644 index 0000000000..9a86906b02 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.5-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.5-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.15.0" + maxKubernetesVersion: "1.15.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-hardened.yaml new file mode 100644 index 0000000000..ea2549ef39 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.6-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-permissive.yaml new file mode 100644 index 0000000000..0afdaaa19b --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.6-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.6-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.16.0" + maxKubernetesVersion: "1.18.x" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-hardened.yaml new file mode 100644 index 0000000000..b387408f50 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-hardened.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.7-hardened +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-permissive.yaml new file mode 100644 index 0000000000..850a5fdd48 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/benchmark-rke2-cis-1.7-permissive.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanBenchmark +metadata: + name: rke2-cis-1.7-permissive +spec: + clusterProvider: rke2 + minKubernetesVersion: "1.25.0" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/cis-roles.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/cis-roles.yaml new file mode 100644 index 0000000000..23c93dc659 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/cis-roles.yaml @@ -0,0 +1,49 @@ +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: cis-admin +rules: + - apiGroups: + - cis.cattle.io + resources: + - clusterscanbenchmarks + - clusterscanprofiles + - clusterscans + - clusterscanreports + verbs: ["create", "update", "delete", "patch","get", "watch", "list"] + - apiGroups: + - catalog.cattle.io + resources: ["apps"] + resourceNames: ["rancher-cis-benchmark"] + verbs: ["get", "watch", "list"] + - apiGroups: + - "" + resources: + - configmaps + verbs: + - '*' +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: cis-view +rules: + - apiGroups: + - cis.cattle.io + resources: + - clusterscanbenchmarks + - clusterscanprofiles + - clusterscans + - clusterscanreports + verbs: ["get", "watch", "list"] + - apiGroups: + - catalog.cattle.io + resources: ["apps"] + resourceNames: ["rancher-cis-benchmark"] + verbs: ["get", "watch", "list"] + - apiGroups: + - "" + resources: + - configmaps + verbs: ["get", "watch", "list"] diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/configmap.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/configmap.yaml new file mode 100644 index 0000000000..33e54656ea --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/configmap.yaml @@ -0,0 +1,18 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + name: default-clusterscanprofiles + namespace: {{ template "cis.namespace" . }} +data: + # Default ClusterScanProfiles per cluster provider type + rke: |- + <1.21.0: rke-profile-permissive-1.20 + >=1.21.0: rke-profile-permissive-1.7 + rke2: |- + <1.21.0: rke2-cis-1.20-profile-permissive + >=1.21.0: rke2-cis-1.7-profile-permissive + eks: "eks-profile" + gke: "gke-profile" + aks: "aks-profile" + k3s: "k3s-cis-1.7-profile-permissive" + default: "cis-1.7-profile" diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/deployment.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/deployment.yaml new file mode 100644 index 0000000000..8c9f72f5de --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/deployment.yaml @@ -0,0 +1,61 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cis-operator + namespace: {{ template "cis.namespace" . }} + labels: + cis.cattle.io/operator: cis-operator +spec: + selector: + matchLabels: + cis.cattle.io/operator: cis-operator + template: + metadata: + labels: + cis.cattle.io/operator: cis-operator + spec: + serviceAccountName: cis-operator-serviceaccount + containers: + - name: cis-operator + image: '{{ template "system_default_registry" . }}{{ .Values.image.cisoperator.repository }}:{{ .Values.image.cisoperator.tag }}' + imagePullPolicy: IfNotPresent + ports: + - name: cismetrics + containerPort: {{ .Values.alerts.metricsPort }} + env: + - name: SECURITY_SCAN_IMAGE + value: {{ template "system_default_registry" . }}{{ .Values.image.securityScan.repository }} + - name: SECURITY_SCAN_IMAGE_TAG + value: {{ .Values.image.securityScan.tag }} + - name: SONOBUOY_IMAGE + value: {{ template "system_default_registry" . }}{{ .Values.image.sonobuoy.repository }} + - name: SONOBUOY_IMAGE_TAG + value: {{ .Values.image.sonobuoy.tag }} + - name: CIS_ALERTS_METRICS_PORT + value: '{{ .Values.alerts.metricsPort }}' + - name: CIS_ALERTS_SEVERITY + value: {{ .Values.alerts.severity }} + - name: CIS_ALERTS_ENABLED + value: {{ .Values.alerts.enabled | default "false" | quote }} + - name: CLUSTER_NAME + value: '{{ .Values.global.cattle.clusterName }}' + - name: CIS_OPERATOR_DEBUG + value: '{{ .Values.image.cisoperator.debug }}' + {{- if .Values.securityScanJob.overrideTolerations }} + - name: SECURITY_SCAN_JOB_TOLERATIONS + value: '{{ .Values.securityScanJob.tolerations | toJson }}' + {{- end }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} +{{- if .Values.nodeSelector }} +{{ toYaml .Values.nodeSelector | indent 8 }} +{{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} +{{- if .Values.tolerations }} +{{ toYaml .Values.tolerations | indent 8 }} +{{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/network_policy_allow_all.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/network_policy_allow_all.yaml new file mode 100644 index 0000000000..6ed5d645ea --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/network_policy_allow_all.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: default-allow-all + namespace: {{ template "cis.namespace" . }} +spec: + podSelector: {} + ingress: + - {} + egress: + - {} + policyTypes: + - Ingress + - Egress diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/patch_default_serviceaccount.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/patch_default_serviceaccount.yaml new file mode 100644 index 0000000000..e78a6bd08a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/patch_default_serviceaccount.yaml @@ -0,0 +1,29 @@ +--- +apiVersion: batch/v1 +kind: Job +metadata: + name: patch-sa + annotations: + "helm.sh/hook": post-install, post-upgrade + "helm.sh/hook-delete-policy": hook-succeeded, before-hook-creation +spec: + template: + spec: + serviceAccountName: cis-operator-serviceaccount + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} +{{- if .Values.nodeSelector }} +{{ toYaml .Values.nodeSelector | indent 8 }} +{{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} +{{- if .Values.tolerations }} +{{ toYaml .Values.tolerations | indent 8 }} +{{- end }} + restartPolicy: Never + containers: + - name: sa + image: "{{ template "system_default_registry" . }}{{ .Values.global.kubectl.repository }}:{{ .Values.global.kubectl.tag }}" + imagePullPolicy: {{ .Values.global.imagePullPolicy }} + command: ["kubectl", "patch", "serviceaccount", "default", "-p", "{\"automountServiceAccountToken\": false}"] + args: ["-n", {{ template "cis.namespace" . }}] + + backoffLimit: 1 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/psp.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/psp.yaml new file mode 100644 index 0000000000..9b8a5995ee --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/psp.yaml @@ -0,0 +1,59 @@ +{{- if .Values.global.cattle.psp.enabled }} +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: cis-psp +spec: + allowPrivilegeEscalation: true + allowedCapabilities: + - '*' + fsGroup: + rule: RunAsAny + hostIPC: true + hostNetwork: true + hostPID: true + hostPorts: + - max: 65535 + min: 0 + privileged: true + runAsUser: + rule: RunAsAny + seLinux: + rule: RunAsAny + supplementalGroups: + rule: RunAsAny + volumes: + - '*' +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: cis-psp-role + namespace: {{ template "cis.namespace" . }} +rules: +- apiGroups: + - policy + resourceNames: + - cis-psp + resources: + - podsecuritypolicies + verbs: + - use +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: cis-psp-rolebinding + namespace: {{ template "cis.namespace" . }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: cis-psp-role +subjects: +- kind: ServiceAccount + name: cis-serviceaccount + namespace: {{ template "cis.namespace" . }} +- kind: ServiceAccount + name: cis-operator-serviceaccount + namespace: {{ template "cis.namespace" . }} +{{- end }} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/rbac.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/rbac.yaml new file mode 100644 index 0000000000..6352b972af --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/rbac.yaml @@ -0,0 +1,213 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + name: cis-operator-clusterrole +rules: +- apiGroups: + - "cis.cattle.io" + resources: + - "*" + verbs: + - "*" +- apiGroups: + - "" + resources: + - "pods" + - "services" + - "configmaps" + - "nodes" + - "serviceaccounts" + verbs: + - "get" + - "list" + - "create" + - "update" + - "watch" + - "patch" +- apiGroups: + - "rbac.authorization.k8s.io" + resources: + - "rolebindings" + - "clusterrolebindings" + - "clusterroles" + verbs: + - "get" + - "list" +- apiGroups: + - "batch" + resources: + - "jobs" + verbs: + - "list" + - "create" + - "patch" + - "update" + - "watch" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + name: cis-scan-ns +rules: +{{- if .Values.global.cattle.psp.enabled }} +- apiGroups: + - "*" + resources: + - "podsecuritypolicies" + verbs: + - "get" + - "list" + - "watch" +{{- end }} +- apiGroups: + - "" + resources: + - "namespaces" + - "nodes" + - "pods" + - "serviceaccounts" + - "services" + - "replicationcontrollers" + verbs: + - "get" + - "list" + - "watch" +- apiGroups: + - "rbac.authorization.k8s.io" + resources: + - "rolebindings" + - "clusterrolebindings" + - "clusterroles" + verbs: + - "get" + - "list" +- apiGroups: + - "batch" + resources: + - "jobs" + - "cronjobs" + verbs: + - "list" +- apiGroups: + - "apps" + resources: + - "daemonsets" + - "deployments" + - "replicasets" + - "statefulsets" + verbs: + - "list" +- apiGroups: + - "autoscaling" + resources: + - "horizontalpodautoscalers" + verbs: + - "list" +- apiGroups: + - "networking.k8s.io" + resources: + - "networkpolicies" + verbs: + - "get" + - "list" + - "watch" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: cis-operator-role + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + namespace: {{ template "cis.namespace" . }} +rules: +- apiGroups: + - "" + resources: + - "services" + verbs: + - "watch" + - "list" + - "get" + - "patch" +- apiGroups: + - "batch" + resources: + - "jobs" + verbs: + - "watch" + - "list" + - "get" + - "delete" +- apiGroups: + - "" + resources: + - "configmaps" + - "pods" + - "secrets" + verbs: + - "*" +- apiGroups: + - "apps" + resources: + - "daemonsets" + verbs: + - "*" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + name: cis-operator-clusterrolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cis-operator-clusterrole +subjects: +- kind: ServiceAccount + name: cis-operator-serviceaccount + namespace: {{ template "cis.namespace" . }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: cis-scan-ns + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cis-scan-ns +subjects: +- kind: ServiceAccount + name: cis-serviceaccount + namespace: {{ template "cis.namespace" . }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + name: cis-operator-rolebinding + namespace: {{ template "cis.namespace" . }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: cis-operator-role +subjects: +- kind: ServiceAccount + name: cis-serviceaccount + namespace: {{ template "cis.namespace" . }} +- kind: ServiceAccount + name: cis-operator-serviceaccount + namespace: {{ template "cis.namespace" . }} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.20.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.20.yaml new file mode 100644 index 0000000000..05263ce7da --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.20.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: cis-1.20-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: cis-1.20 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.23.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.23.yaml new file mode 100644 index 0000000000..c59d8f51ff --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.23.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: cis-1.23-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: cis-1.23 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.24.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.24.yaml new file mode 100644 index 0000000000..aa3e51c3e2 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.24.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: cis-1.24-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: cis-1.24 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.6.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.6.yaml new file mode 100644 index 0000000000..8a8d8bf881 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.6.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: cis-1.6-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: cis-1.6 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.7.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.7.yaml new file mode 100644 index 0000000000..1a37aad835 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-cis-1.7.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: cis-1.7-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: cis-1.7 diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-hardened.yml new file mode 100644 index 0000000000..a0b6cb6f6a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.20-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.20-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-permissive.yml new file mode 100644 index 0000000000..89885548df --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.20-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.20-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.20-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-hardened.yml new file mode 100644 index 0000000000..724412d3aa --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.23-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.23-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-permissive.yml new file mode 100644 index 0000000000..9f9213de1c --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.23-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.23-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.23-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-hardened.yml new file mode 100644 index 0000000000..252251efcf --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.24-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.24-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-permissive.yml new file mode 100644 index 0000000000..05555c64dc --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.24-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.24-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.24-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-hardened.yml new file mode 100644 index 0000000000..095e977ab2 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.6-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.6-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-permissive.yml new file mode 100644 index 0000000000..3b22a80c83 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.6-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.6-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.6-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-hardened.yml new file mode 100644 index 0000000000..22ae9e0d23 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.7-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.7-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-permissive.yml new file mode 100644 index 0000000000..f79e9ed966 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-k3s-cis-1.7-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: k3s-cis-1.7-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: k3s-cis-1.7-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-hardened.yaml new file mode 100644 index 0000000000..c36cf38c90 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-hardened-1.20 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.20-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-permissive.yaml new file mode 100644 index 0000000000..cfeb4b34c6 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.20-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-permissive-1.20 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.20-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-hardened.yaml new file mode 100644 index 0000000000..0073311496 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-hardened-1.23 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.23-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-permissive.yaml new file mode 100644 index 0000000000..085b60dfa4 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.23-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-permissive-1.23 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.23-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-hardened.yaml new file mode 100644 index 0000000000..faae63e87f --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-hardened-1.24 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.24-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-permissive.yaml new file mode 100644 index 0000000000..7335a1d2d8 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.24-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-permissive-1.24 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.24-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-hardened.yaml new file mode 100644 index 0000000000..d38febd80f --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-hardened-1.6 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.6-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-permissive.yaml new file mode 100644 index 0000000000..d31b5b0d25 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.6-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-permissive-1.6 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.6-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-hardened.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-hardened.yaml new file mode 100644 index 0000000000..7b83f95bcd --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-hardened.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-hardened-1.7 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.7-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-permissive.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-permissive.yaml new file mode 100644 index 0000000000..52327c4af1 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke-1.7-permissive.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke-profile-permissive-1.7 + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke-cis-1.7-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-hardened.yml new file mode 100644 index 0000000000..decc9b6516 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.20-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.20-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-permissive.yml new file mode 100644 index 0000000000..74c96ffc49 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.20-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.20-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.20-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-hardened.yml new file mode 100644 index 0000000000..abc1c2a21b --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.23-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.23-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-permissive.yml new file mode 100644 index 0000000000..51cc519acd --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.23-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.23-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.23-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-hardened.yml new file mode 100644 index 0000000000..f8ddb9851c --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.24-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.24-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-permissive.yml new file mode 100644 index 0000000000..c820f03928 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.24-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.24-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.24-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-hardened.yml new file mode 100644 index 0000000000..c7ac7f949a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.6-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.6-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-permissive.yml new file mode 100644 index 0000000000..96ca1345aa --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.6-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.6-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.6-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-hardened.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-hardened.yml new file mode 100644 index 0000000000..193753a0bc --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-hardened.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.7-profile-hardened + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.7-hardened diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-permissive.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-permissive.yml new file mode 100644 index 0000000000..409645dc76 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofile-rke2-cis-1.7-permissive.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: rke2-cis-1.7-profile-permissive + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: rke2-cis-1.7-permissive diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileaks.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileaks.yml new file mode 100644 index 0000000000..ea7b25b404 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileaks.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: aks-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: aks-1.0 \ No newline at end of file diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileeks.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileeks.yml new file mode 100644 index 0000000000..3b4e34437a --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofileeks.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: eks-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: eks-1.0.1 \ No newline at end of file diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofilegke.yml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofilegke.yml new file mode 100644 index 0000000000..3e5e2439ac --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/scanprofilegke.yml @@ -0,0 +1,9 @@ +--- +apiVersion: cis.cattle.io/v1 +kind: ClusterScanProfile +metadata: + name: gke-profile + annotations: + clusterscanprofile.cis.cattle.io/builtin: "true" +spec: + benchmarkVersion: gke-1.2.0 \ No newline at end of file diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/serviceaccount.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/serviceaccount.yaml new file mode 100644 index 0000000000..ec48ec6224 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/serviceaccount.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + namespace: {{ template "cis.namespace" . }} + name: cis-operator-serviceaccount +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + namespace: {{ template "cis.namespace" . }} + labels: + app.kubernetes.io/name: rancher-cis-benchmark + app.kubernetes.io/instance: release-name + name: cis-serviceaccount diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-install-crd.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-install-crd.yaml new file mode 100644 index 0000000000..562295791b --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-install-crd.yaml @@ -0,0 +1,17 @@ +#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}} +# {{- $found := dict -}} +# {{- set $found "cis.cattle.io/v1/ClusterScan" false -}} +# {{- set $found "cis.cattle.io/v1/ClusterScanBenchmark" false -}} +# {{- set $found "cis.cattle.io/v1/ClusterScanProfile" false -}} +# {{- set $found "cis.cattle.io/v1/ClusterScanReport" false -}} +# {{- range .Capabilities.APIVersions -}} +# {{- if hasKey $found (toString .) -}} +# {{- set $found (toString .) true -}} +# {{- end -}} +# {{- end -}} +# {{- range $_, $exists := $found -}} +# {{- if (eq $exists false) -}} +# {{- required "Required CRDs are missing. Please install the corresponding CRD chart before installing this chart." "" -}} +# {{- end -}} +# {{- end -}} +#{{- end -}} \ No newline at end of file diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-psp-install.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-psp-install.yaml new file mode 100644 index 0000000000..a30c59d3b7 --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/templates/validate-psp-install.yaml @@ -0,0 +1,7 @@ +#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}} +#{{- if .Values.global.cattle.psp.enabled }} +#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }} +#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}} +#{{- end }} +#{{- end }} +#{{- end }} diff --git a/charts/rancher-cis-benchmark/4.2.0-rc8/values.yaml b/charts/rancher-cis-benchmark/4.2.0-rc8/values.yaml new file mode 100644 index 0000000000..8048fe7e0e --- /dev/null +++ b/charts/rancher-cis-benchmark/4.2.0-rc8/values.yaml @@ -0,0 +1,55 @@ +# Default values for rancher-cis-benchmark. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +image: + cisoperator: + repository: rancher/cis-operator + tag: v1.0.12 + securityScan: + repository: rancher/security-scan + tag: v0.2.13-rc9 + sonobuoy: + repository: rancher/mirrored-sonobuoy-sonobuoy + tag: v0.56.16 + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +## Node labels for pod assignment +## Ref: https://kubernetes.io/docs/user-guide/node-selection/ +## +nodeSelector: {} + +## List of node taints to tolerate (requires Kubernetes >= 1.6) +tolerations: [] + +securityScanJob: + overrideTolerations: false + tolerations: [] + +affinity: {} + +global: + cattle: + systemDefaultRegistry: "" + clusterName: "" + psp: + enabled: false + kubectl: + repository: rancher/kubectl + tag: v1.28.1 + +alerts: + enabled: false + severity: warning + metricsPort: 8080 diff --git a/index.yaml b/index.yaml index a2426d562d..f192210d42 100755 --- a/index.yaml +++ b/index.yaml @@ -6280,6 +6280,32 @@ entries: - assets/rancher-backup-crd/rancher-backup-crd-1.0.200.tgz version: 1.0.200 rancher-cis-benchmark: + - annotations: + catalog.cattle.io/auto-install: rancher-cis-benchmark-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: CIS Benchmark + catalog.cattle.io/kube-version: '>= 1.21.0-0 < 1.27.0-0' + catalog.cattle.io/namespace: cis-operator-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux,windows + catalog.cattle.io/provides-gvr: cis.cattle.io.clusterscans/v1 + catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0' + catalog.cattle.io/release-name: rancher-cis-benchmark + catalog.cattle.io/type: cluster-tool + catalog.cattle.io/ui-component: rancher-cis-benchmark + apiVersion: v1 + appVersion: v4.2.0-rc8 + created: "2023-09-12T20:43:12.193207458+05:30" + description: The cis-operator enables running CIS benchmark security scans on + a kubernetes cluster + digest: 4ab548e35036e8551e4fd78fa08908ec1a0d4742b5d0d559bf4f1e0edaca82be + icon: https://charts.rancher.io/assets/logos/cis-kube-bench.svg + keywords: + - security + name: rancher-cis-benchmark + urls: + - assets/rancher-cis-benchmark/rancher-cis-benchmark-4.2.0-rc8.tgz + version: 4.2.0-rc8 - annotations: catalog.cattle.io/auto-install: rancher-cis-benchmark-crd=match catalog.cattle.io/certified: rancher @@ -6906,6 +6932,20 @@ entries: - assets/rancher-cis-benchmark/rancher-cis-benchmark-1.0.100.tgz version: 1.0.100 rancher-cis-benchmark-crd: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: cis-operator-system + catalog.cattle.io/release-name: rancher-cis-benchmark-crd + apiVersion: v1 + created: "2023-09-12T20:43:12.199692073+05:30" + description: Installs the CRDs for rancher-cis-benchmark. + digest: a0ba39996b408be8c189386b945fe976a1c2fc196f663c219de24afc66d62360 + name: rancher-cis-benchmark-crd + type: application + urls: + - assets/rancher-cis-benchmark-crd/rancher-cis-benchmark-crd-4.2.0-rc8.tgz + version: 4.2.0-rc8 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/hidden: "true"