Skip to content

Commit

Permalink
OCPBUGS-11932: Disable checks for Open vSwitch on NSX cluster
Browse files Browse the repository at this point in the history
This PR make open vSwitch rules only be check with SDN and OVN network type
  • Loading branch information
Vincent056 committed Nov 20, 2023
1 parent cfc9388 commit 0c828db
Show file tree
Hide file tree
Showing 27 changed files with 48 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ severity: medium
references:
cis@ocp4: 1.1.10

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/.*", group="root") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Configuration Database'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: |-
<code>/etc/openvswitch/conf.db</code> does not have a group owner of
code>hugetlbfs</code> on architectures other than s390x or <code>openvswitch</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Configuration Database Lock'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: |-
<code>/etc/openvswitch/conf.db.~lock~</code> does not have a group owner of
code>hugetlbfs</code> on architectures other than s390x or <code>openvswitch</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and not_s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Configuration Database Lock'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and not_s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/.conf.db.~lock~", group="hugetlbfs") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Configuration Database Lock'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/.conf.db.~lock~", group="hugetlbfs") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and not_s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Configuration Database'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and not_s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/conf.db", group="hugetlbfs") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Configuration Database'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/conf.db", group="openvswitch") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Process ID File'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: '/var/run/openvswitch/ovs-vswitchd.pid has group owner openvswitch or hugetlbfs'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Persistent System ID'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: |-
<code>/etc/openvswitch/system-id.conf</code> does not have a group owner of
code>hugetlbfs</code> on architectures other than s390x or <code>openvswitch</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and not_s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Persistent System ID'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and not_s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/system-id.conf", group="hugetlbfs") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node and s390x_arch

title: 'Verify Group Who Owns The Open vSwitch Persistent System ID'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: (ocp4-node-on-sdn or ocp4-node-on-ovn) and s390x_arch

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/system-id.conf", group="hugetlbfs") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Daemon PID File'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: '/run/openvswitch/ovs-vswitchd.pid has group owner openvswitch or hugetlbfs'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Group Who Owns The Open vSwitch Database Server PID'

description: |-
Expand All @@ -28,6 +26,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: '/run/openvswitch/ovsdb-server.pid has group owner openvswitch or hugetlbfs'

ocil: |-
Expand Down
2 changes: 2 additions & 0 deletions applications/openshift/master/file_owner_openvswitch/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ severity: medium
references:
cis@ocp4: 1.1.10

platform: ocp4-node-on-sdn or ocp4-node-on-ovn

ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/openvswitch/.*", owner="root") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Configuration Database'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Configuration Database Lock'

Expand Down
2 changes: 1 addition & 1 deletion applications/openshift/master/file_owner_ovs_pid/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Process ID File'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Persistent System ID'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Daemon PID File'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node
platform: ocp4-node-on-sdn or ocp4-node-on-ovn

title: 'Verify User Who Owns The Open vSwitch Database Server PID'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ severity: medium
references:
cis@ocp4: 1.4.9

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/openvswitch/.*", perms="-rw-r--r--") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Permissions on the Open vSwitch Configuration Database'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/openvswitch/conf.db", perms="-rw-r-----") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Permissions on the Open vSwitch Configuration Database Lock'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/openvswitch/.conf.db.~lock~", perms="-rw-------") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Permissions on the Open vSwitch Process ID File'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/var/run/openvswitch/ovs-vswitchd.pid", perms="-rw-r--r--") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Permissions on the Open vSwitch Persistent System ID'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/openvswitch/system-id.conf", perms="-rw-r--r--") }}}'

ocil: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ documentation_complete: true

prodtype: ocp4

platform: ocp4-node

title: 'Verify Permissions on the Open vSwitch Daemon PID File'

description: |-
Expand All @@ -26,6 +24,8 @@ references:
nist: CM-6,CM-6(1)
srg: SRG-APP-000516-CTR-001325

platform: ocp4-node-on-sdn

ocil_clause: '{{{ ocil_clause_file_permissions(file="/run/openvswitch/ovs-vswitchd.pid", perms="-rw-r--r--") }}}'

ocil: |-
Expand Down
Loading

0 comments on commit 0c828db

Please sign in to comment.