Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
17 changes: 16 additions & 1 deletion controls/stig_ocp4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ controls:
title: OpenShift RBAC access controls must be enforced.
rules:
- rbac_least_privilege
- kubevirt-restrict-migration-tools-access
- kubevirt-nested-virtualization-disabled
- kubevirt-seccomp-profile-permissions
- kubevirt-cache-directory-permissions
status: automated

- id: CNTR-OS-000100
Expand All @@ -130,6 +134,8 @@ controls:
rules:
- configure_network_policies
- configure_network_policies_namespaces
- kubevirt-sriov-spoofchk-on
- kubevirt-bridge-mac-spoof-filtering
status: automated

- id: CNTR-OS-000110
Expand All @@ -139,6 +145,7 @@ controls:
the container platform based on organization-defined information flow control policies.
rules:
- project_config_and_template_network_policy
- kubevirt-downward-metrics-disabled
status: automated

- id: CNTR-OS-000130
Expand All @@ -161,6 +168,7 @@ controls:
rules:
- audit_profile_set
- service_auditd_enabled
- kubevirt-disk-error-policy-not-ignore
status: automated

- id: CNTR-OS-000160
Expand Down Expand Up @@ -454,6 +462,7 @@ controls:
rules:
- oauth_or_oauthclient_inactivity_timeout
- sshd_disable_root_login
- kubevirt-nonroot-feature-gate-is-enabled
status: automated

- id: CNTR-OS-000430
Expand Down Expand Up @@ -530,7 +539,8 @@ controls:
- medium
title: OpenShift must separate user functionality (including user interface services) from information
system management functionality.
rules: []
rules:
- kubevirt-restrict-vnc-access-to-workloads
notes: >-
Satisfies SRG-APP-000211-CTR-000530.
We cannot have an automated check for this rule at the moment.
Expand Down Expand Up @@ -568,6 +578,9 @@ controls:
- coreos_vsyscall_kernel_argument
- sysctl_kernel_dmesg_restrict
- sysctl_kernel_perf_event_paranoid
- kubevirt-persistent-reservation-disabled
- kubevirt-no-shareable-disks
- kubevirt-ksm-disabled
status: automated

- id: CNTR-OS-000570
Expand Down Expand Up @@ -715,6 +728,7 @@ controls:
rules:
- cluster_version_operator_exists
- cluster_version_operator_verify_integrity
- kubevirt-no-jsonpatch-annotations
status: automated

- id: CNTR-OS-000760
Expand Down Expand Up @@ -1057,6 +1071,7 @@ controls:
- service_sshd_disabled
- service_usbguard_enabled
- usbguard_allow_hid_and_hub
- kubevirt-no-permitted-host-devices
status: automated

- id: CNTR-OS-001030
Expand Down
26 changes: 26 additions & 0 deletions products/ocp4/profiles/stig-vm-extension-v2r6.profile
Comment thread
yuumasato marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
documentation_complete: true

metadata:
version: V2R6
SMEs:
- Vincent056
- rhmdnd
- yuumasato
- abushkin-redhat

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

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

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

scanner_type: CEL

# Exclude node kubevirt rules — those are automated in the stig-node XCCDF profile
filter_rules: '"kubevirt" in id_ and "ocp4-node" not in platforms'

selections:
- stig_ocp4:all
22 changes: 22 additions & 0 deletions products/ocp4/profiles/stig-vm-extension.profile
Comment thread
yuumasato marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
documentation_complete: true

metadata:
version: V2R6
SMEs:
- Vincent056
- rhmdnd
- yuumasato
- abushkin-redhat

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

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

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

scanner_type: CEL

extends: stig-vm-extension-v2r6
2 changes: 1 addition & 1 deletion ssg/build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def get_variables_of_rules(profiles, rule_ids, rules_and_variables_dict):
"""
selected_variables = set()
for rule in rule_ids:
selected_variables.update(rules_and_variables_dict.get(rule))
selected_variables.update(rules_and_variables_dict.get(rule, set()))
for profile in profiles:
selected_variables.update(profile.variables.keys())
return selected_variables
Expand Down
Loading