Skip to content

Commit

Permalink
Add OCP4 STIG V2R1 profile
Browse files Browse the repository at this point in the history
New profiles for stig-v2r1 are added, and the version-less profile is
updated to extend v2r1.
  • Loading branch information
yuumasato committed Aug 21, 2024
1 parent ed4ff7c commit 355fe22
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 16 deletions.
2 changes: 1 addition & 1 deletion controls/stig_ocp4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ policy: Red Hat OpenShift Container Platform 4.12 Security Technical Implementat
title: Red Hat OpenShift Container Platform 4.12 Security Technical Implementation
Guide
id: stig_ocp4
version: V1R1
version: V2R1
source: https://public.cyber.mil/stigs/downloads/
reference_type: stigid
product:
Expand Down
23 changes: 23 additions & 0 deletions products/ocp4/profiles/stig-node-v2r1.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
documentation_complete: true

platform: ocp4-node

metadata:
version: V2R1
SMEs:
- Vincent056
- rhmdnd
- yuumasato

reference: https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RH_OpenShift_Container_Platform_4-12_V2R1_STIG.zip

title: 'DISA STIG for Red Hat OpenShift Container Platform 4 - Node level'

description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat OpenShift Container Platform 4.

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'

selections:
- stig_ocp4:all
8 changes: 3 additions & 5 deletions products/ocp4/profiles/stig-node.profile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ documentation_complete: true
platform: ocp4-node

metadata:
version: V1R1
version: V2R1
SMEs:
- jhrozek
- Vincent056
- mrogers950
- rhmdnd
- david-rh
- yuumasato

reference: https://public.cyber.mil/stigs/downloads/

Expand All @@ -19,4 +17,4 @@ description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat OpenShift Container Platform 4.

extends: stig-node-v1r1
extends: stig-node-v2r1
30 changes: 30 additions & 0 deletions products/ocp4/profiles/stig-v2r1.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
documentation_complete: true

platform: ocp4

metadata:
version: V2R1
SMEs:
- Vincent056
- rhmdnd
- yuumasato

reference: https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RH_OpenShift_Container_Platform_4-12_V2R1_STIG.zip

title: 'DISA STIG for Red Hat OpenShift Container Platform 4 - Platform level'

description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat OpenShift Container Platform 4.

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'

selections:
- stig_ocp4:all
### Variables
- var_openshift_audit_profile=WriteRequestBodies
- var_oauth_token_maxage=8h
### Helper Rules
### This is a helper rule to fetch the required api resource for detecting OCP version
- version_detect_in_ocp
- version_detect_in_hypershift
8 changes: 3 additions & 5 deletions products/ocp4/profiles/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ documentation_complete: true
platform: ocp4

metadata:
version: V1R1
version: V2R1
SMEs:
- jhrozek
- Vincent056
- mrogers950
- rhmdnd
- david-rh
- yuumasato

reference: https://public.cyber.mil/stigs/downloads/

Expand All @@ -19,4 +17,4 @@ description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat OpenShift Container Platform 4.

extends: stig-v1r1
extends: stig-v2r1
11 changes: 11 additions & 0 deletions products/ocp4/profiles/test.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
documentation_complete: true

title: 'Test Profile for controller_rotate_kubelet_server_certs'

platform: ocp4

description: Test Profile
selections:
- version_detect_in_ocp
- version_detect_in_hypershift
- controller_rotate_kubelet_server_certs
33 changes: 33 additions & 0 deletions products/rhcos4/profiles/stig-v2r1.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
documentation_complete: true

metadata:
version: V2R1
SMEs:
- Vincent056
- rhmdnd
- yuumasato

reference: https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RH_OpenShift_Container_Platform_4-12_V2R1_STIG.zip

title: 'DISA STIG for Red Hat Enterprise Linux CoreOS'

description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat Enterprise Linux CoreOS 4.

selections:
- stig_ocp4:all
- var_sshd_set_keepalive=0
- var_selinux_policy_name=targeted
- var_selinux_state=enforcing
- var_accounts_passwords_pam_faillock_dir=run
# Following rules once had a prodtype incompatible with the rhcos4 product
- '!audit_rules_suid_privilege_function'
- '!audit_rules_sudoers'
- '!audit_rules_privileged_commands_kmod'
- '!audit_rules_sudoers_d'
- '!audit_rules_execution_setfacl'
- '!audit_rules_privileged_commands_usermod'
- '!audit_rules_privileged_commands_unix_update'
- '!audit_rules_execution_chacl'
- '!audit_rules_privileged_commands_ssh_agent'
9 changes: 4 additions & 5 deletions products/rhcos4/profiles/stig.profile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
documentation_complete: true

metadata:
version: V1R1
version: V2R1
SMEs:
- jhrozek
- Vincent056
- rhmdnd
- david-rh
- yuumasato

reference: https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Container_Platform_V1R3_SRG.zip
reference: https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RH_OpenShift_Container_Platform_4-12_V2R1_STIG.zip

title: 'DISA STIG for Red Hat Enterprise Linux CoreOS'

description: |-
This profile contains configuration checks that align to the DISA STIG for
Red Hat Enterprise Linux CoreOS 4.

extends: stig-v1r1
extends: stig-v2r1

0 comments on commit 355fe22

Please sign in to comment.