Skip to content

Commit

Permalink
Import OCP4 CIS rather than extending it
Browse files Browse the repository at this point in the history
When a profile extends another one, the rules on the extended profile
are not auto referenced.
This patch importa the CIS into PCI-DSS, allowing the CIS rules to have
PCI-DSS added automatically.
  • Loading branch information
yuumasato committed Aug 26, 2024
1 parent 5231666 commit 2438f12
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions controls/cis_ocp_1_4_0/section-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ controls:
status: automated
rules:
- kubelet_configure_event_creation
- var_event_record_qps=50
levels: [ level_2, ]
- id: 4.2.9
title: Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate
Expand Down
2 changes: 2 additions & 0 deletions controls/pcidss_4_ocp4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ controls:
This control is also addressed by applying the OpenShift CIS recommendations.
rules:
- scansettingbinding_exists
controls:
- cis_ocp_1_4_0:all:level_2

- id: 2.2.2
title: Vendor default accounts are managed
Expand Down
1 change: 0 additions & 1 deletion products/ocp4/profiles/cis-1-4.profile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ selections:
- cis_ocp_1_4_0:all
### Variables
- var_openshift_audit_profile=WriteRequestBodies
- var_event_record_qps=50
### Helper Rules
### This is a helper rule to fetch the required api resource for detecting OCP version
- version_detect_in_ocp
Expand Down
1 change: 0 additions & 1 deletion products/ocp4/profiles/cis-1-5.profile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ selections:
- cis_ocp_1_4_0:all
### Variables
- var_openshift_audit_profile=WriteRequestBodies
- var_event_record_qps=50
### Helper Rules
### This is a helper rule to fetch the required api resource for detecting OCP version
- version_detect_in_ocp
Expand Down
2 changes: 0 additions & 2 deletions products/ocp4/profiles/pci-dss-4-0.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ description: |-

filter_rules: '"ocp4-node" not in platforms and "ocp4-master-node" not in platforms and "ocp4-node-on-sdn" not in platforms and "ocp4-node-on-ovn" not in platforms'

# Req-2.2
extends: cis

selections:
- pcidss_4_ocp4:all:base
Expand Down
3 changes: 0 additions & 3 deletions products/ocp4/profiles/pci-dss-node-4-0.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ description: |-

filter_rules: '"ocp4-node" in platforms or "ocp4-master-node" in platforms or "ocp4-node-on-sdn" in platforms or "ocp4-node-on-ovn" in platforms'

# Req-2.2
extends: cis-node

selections:
- pcidss_4_ocp4:all:base

0 comments on commit 2438f12

Please sign in to comment.