Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OCP STIG V2R1 profiles #12319

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
yuumasato marked this conversation as resolved.
Show resolved Hide resolved
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
4,061 changes: 4,061 additions & 0 deletions shared/references/disa-stig-ocp4-v2r1-xccdf-manual.xml

Large diffs are not rendered by default.

Loading