Skip to content

Commit

Permalink
Add cis-1.9 generic version
Browse files Browse the repository at this point in the history
  - Remove old/unused version_mapping
  - Delete the following target_mapping
     - K3s:
  	- k3s-cis-1.6-hardened
  	- k3s-cis-1.6-permissive
  	- k3s-cis-1.20-hardened
  	- k3s-cis-1.20-permissive
     - RKE1:
    	- rke-cis-1.4
  	- rke-cis-1.5-hardened
  	- rke-cis-1.5-permissive
  	- rke-cis-1.6-hardened
  	- rke-cis-1.6-permissive
  	- rke-cis-1.20-hardened
  	- rke-cis-1.20-permissive
     - RKE2:
	- rke2-cis-1.5-hardened
    	- rke2-cis-1.5-permissive
  	- rke2-cis-1.6-hardened
  	- rke2-cis-1.6-permissive
  	- rke2-cis-1.20-hardened
  	- rke2-cis-1.20-permissive

   - Add version_mappings for:
     - Generic:
	- cis-1.20
	- cis-1.23
	- cis-1.24
	- cis-1.7
	- cis-1.8
   - Remove generic profiles dir inside package/cfg (already provided by kube-bench)
  • Loading branch information
andypitcher committed Nov 29, 2024
1 parent 4761d63 commit 6547866
Show file tree
Hide file tree
Showing 26 changed files with 13 additions and 7,506 deletions.
2 changes: 1 addition & 1 deletion hack/e2e
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function check_binaries(){

function check_config_files(){
echo "> Check for upstream test files:"
dirs="ack-1.0 aks-1.0 cis-1.23 cis-1.24 cis-1.7 cis-1.8 config.yaml eks-1.0.1 eks-1.1.0 eks-1.2.0 eks-stig-kubernetes-v1r6 gke-1.0 gke-1.2.0 gke-1.6.0 rh-0.7 rh-1.0"
dirs="ack-1.0 aks-1.0 cis-1.23 cis-1.24 cis-1.7 cis-1.8 cis-1.9 config.yaml eks-1.0.1 eks-1.1.0 eks-1.2.0 eks-stig-kubernetes-v1r6 gke-1.0 gke-1.2.0 gke-1.6.0 rh-0.7 rh-1.0"

for d in ${dirs}; do
if ! kubectl exec -n cis-operator-system security-scan-runner-scan-test -c rancher-cis-benchmark -- stat "/etc/kube-bench/cfg/$d"; then
Expand Down
2 changes: 0 additions & 2 deletions package/cfg/cis-1.23/config.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions package/cfg/cis-1.23/controlplane.yaml

This file was deleted.

135 changes: 0 additions & 135 deletions package/cfg/cis-1.23/etcd.yaml

This file was deleted.

Loading

0 comments on commit 6547866

Please sign in to comment.