Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eb47bac

Browse files
authoredOct 30, 2020
Merge pull request ComplianceAsCode#6320 from JAORMX/cis-1.3-e2e
OCP4: Add e2e tests for rules in section 1.3 of the CIS benchmark
2 parents 3621e5e + 393f25b commit eb47bac

File tree

7 files changed

+22
-0
lines changed
  • applications/openshift
    • controller
      • controller_insecure_port_disabled/tests/ocp4
      • controller_rotate_kubelet_server_certs/tests/ocp4
      • controller_secure_port/tests/ocp4
      • controller_service_account_ca/tests/ocp4
      • controller_service_account_private_key/tests/ocp4
    • rbac/rbac_debug_role_protects_pprof

7 files changed

+22
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS

‎applications/openshift/rbac/rbac_debug_role_protects_pprof/rule.yml

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ references:
2626

2727
severity: medium
2828

29+
ocil_clause: |-
30+
The <tt>cluster-debugger</tt> role isn't protecting <tt>/debug/pprof</tt>
31+
32+
ocil: |-
33+
To verify that the <tt>cluster-debugger</tt> role is configured correctly,
34+
run the following command:
35+
<pre>$ oc get clusterroles cluster-debugger -o jsonpath='{.rules[0].nonResourceURLs}'</pre>
36+
and verify that the <tt>/debug/pprof</tt> path is included there.
37+
2938
warnings:
3039
- general: |-
3140
{{{ openshift_cluster_setting("/apis/rbac.authorization.k8s.io/v1/clusterroles/cluster-debugger") | indent(4) }}}
@@ -40,3 +49,4 @@ template:
4049
values:
4150
- value: '\/debug\/pprof'
4251
operation: 'pattern match'
52+
entity_check: 'at least one'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
default_result: PASS

0 commit comments

Comments
 (0)
Please sign in to comment.