Skip to content

Commit c72bcd6

Browse files
committed
Rename cis_ocp_1_4_0 to cis_ocp_1_7_0
Since we're removing the old profile, let's also change the control organization so that it doesn't reference an old profile.
1 parent 285dc62 commit c72bcd6

10 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
policy: CIS Red Hat OpenShift Container Platform 4 Benchmark
33
title: CIS Red Hat OpenShift Container Platform 4 Benchmark
4-
id: cis_ocp_1_4_0
4+
id: cis_ocp_1_7_0
55
source: https://www.cisecurity.org/benchmark/kubernetes
66

77
levels:

controls/pcidss_4_ocp4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ controls:
391391
rules:
392392
- scansettingbinding_exists
393393
controls:
394-
- cis_ocp_1_4_0:all:level_2
394+
- cis_ocp_1_7_0:all:level_2
395395

396396
- id: 2.2.2
397397
title: Vendor default accounts are managed

products/ocp4/profiles/cis-1-7.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ filter_rules: '"ocp4-node" not in platform and "ocp4-master-node" not in platfor
2828
not in platform and "ocp4-node-on-ovn" not in platform'
2929

3030
selections:
31-
- cis_ocp_1_4_0:all
31+
- cis_ocp_1_7_0:all
3232
### Variables
3333
- var_openshift_audit_profile=WriteRequestBodies
3434
### Helper Rules

products/ocp4/profiles/cis-node-1-7.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ filter_rules: '"ocp4-node" in platform or "ocp4-master-node" in platform or "ocp
2828
or "ocp4-node-on-ovn" in platform'
2929

3030
selections:
31-
- cis_ocp_1_4_0:all
31+
- cis_ocp_1_7_0:all

utils/handle_detected_updates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def handle_controls(controls: str) -> str:
5858
# Handle some special cases
5959
for i, item in enumerate(controls):
6060
if "section-" in item:
61-
controls[i] = "cis_ocp_1_4_0"
61+
controls[i] = "cis_ocp_1_7_0"
6262
if "SRG-" in item:
6363
controls.remove(item)
6464
return list(dict.fromkeys(controls))

0 commit comments

Comments
 (0)