Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#10737 from Vincent056/ovs
Browse files Browse the repository at this point in the history
OCPBUGS-11932: Disable checks for Open vSwitch on  NSX cluster
  • Loading branch information
rhmdnd authored Dec 1, 2023
2 parents 27c8eca + 570be68 commit ec1aac1
Show file tree
Hide file tree
Showing 48 changed files with 70 additions and 63 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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,3 @@
---
default_result: PASS
default_result: NOT-APPLICABLE

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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
@@ -1,2 +1,2 @@
---
default_result: PASS
default_result: NOT-APPLICABLE
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
Loading

0 comments on commit ec1aac1

Please sign in to comment.