Skip to content

Commit 3a96ab3

Browse files
authored
Merge pull request ComplianceAsCode#6225 from piggyvenus/cis1_3_6
CIS 1.3.6
2 parents 2d5a767 + e34d9fc commit 3a96ab3

File tree

1 file changed

+19
-6
lines changed
  • applications/openshift/controller/controller_rotate_kubelet_server_certs

1 file changed

+19
-6
lines changed

applications/openshift/controller/controller_rotate_kubelet_server_certs/rule.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,25 @@ ocil: |-
4141
#identifiers:
4242
# cce@ocp4:
4343

44+
warnings:
45+
- general: |-
46+
{{{ openshift_cluster_setting("/api/v1/namespaces/openshift-kube-controller-manager/configmaps/config") | indent(4) }}}
47+
- functionality: |-
48+
This recommendation only applies if you let kubelets get their
49+
certificates from the API Server. In case your certificates come from an
50+
outside Certificate Authority/tool (e.g. Vault) then you need to take care
51+
of rotation yourself
52+
4453
references:
4554
cis: 1.3.6
4655

47-
warnings:
48-
- functionality: |-
49-
This recommendation only applies if you let kubelets get their
50-
certificates from the API Server. In case your certificates come from an
51-
outside Certificate Authority/tool (e.g. Vault) then you need to take care
52-
of rotation yourself.
56+
template:
57+
name: yamlfile_value
58+
vars:
59+
ocp_data: "true"
60+
filepath: /api/v1/namespaces/openshift-kube-controller-manager/configmaps/config
61+
yamlpath: '.data["config.yaml"]'
62+
values:
63+
- value: '\"RotateKubeletServerCertificate\=true\"'
64+
operation: "pattern match"
65+
type: "string"

0 commit comments

Comments
 (0)