You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/compliance-tailored-profiles.adoc
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,14 @@ The `ComplianceSuite` object contains an optional `TailoringConfigMap` attribute
15
15
+
16
16
[source,terminal]
17
17
----
18
-
$ oc get rules.compliance -n openshift-compliance -l compliance.openshift.io/profile-bundle=rhcos4
18
+
$ oc get rules.compliance -n openshift-compliance -l compliance.openshift.io/profile-bundle=rhcos4
19
19
----
20
20
21
21
. Browse the available variables in the same `ProfileBundle`:
22
22
+
23
23
[source,terminal]
24
24
----
25
-
$ oc get variables.compliance -n openshift-compliance -l compliance.openshift.io/profile-bundle=rhcos4
25
+
$ oc get variables.compliance -n openshift-compliance -l compliance.openshift.io/profile-bundle=rhcos4
26
26
----
27
27
28
28
. Create a tailored profile named `nist-moderate-modified`:
@@ -65,6 +65,9 @@ spec:
65
65
|`disableRules`
66
66
|A list of name and rationale pairs. Each name refers to a name of a rule object that is to be disabled. The rationale value is human-readable text describing why the rule is disabled.
67
67
68
+
|`manualRules`
69
+
| A list of name and rationale pairs. When a manual rule is added, the check result status will always be `manual` and remediation will not be generated. This attribute is automatic and by default has no values when set as a manual rule.
70
+
68
71
|`enableRules`
69
72
|A list of name and rationale pairs. Each name refers to a name of a rule object that is to be enabled. The rationale value is human-readable text describing why the rule is enabled.
70
73
@@ -74,6 +77,24 @@ spec:
74
77
|`setValues`
75
78
| A list of name, rationale, and value groupings. Each name refers to a name of the value set. The rationale is human-readable text describing the set. The value is the actual setting.
76
79
|===
80
+
+
81
+
.. Add the `tailoredProfile.spec.manualRules` attribute:
82
+
+
83
+
.Example `tailoredProfile.spec.manualRules.yaml`
84
+
[source,yaml]
85
+
----
86
+
apiVersion: compliance.openshift.io/v1alpha1
87
+
kind: TailoredProfile
88
+
metadata:
89
+
name: ocp4-manual-scc-check
90
+
spec:
91
+
extends: ocp4-cis
92
+
description: This profile extends ocp4-cis by forcing the SCC check to always return MANUAL
0 commit comments