"test_desc":"Ensure that the API server pod specification file permissions are set to 644 or more restrictive (Scored)",
"audit":"/bin/sh -c 'if test -e /etc/kubernetes/manifests/kube-apiserver.yaml; then stat -c permissions=%a /etc/kubernetes/manifests/kube-apiserver.yaml; fi'",
"AuditConfig":"",
"type":"",
"remediation":"Run the below command (based on the file location on your system) on the\nmaster node.\nFor example, chmod 644 /etc/kubernetes/manifests/kube-apiserver.yaml\n",
"test_info":[
"Run the below command (based on the file location on your system) on the\nmaster node.\nFor example, chmod 644 /etc/kubernetes/manifests/kube-apiserver.yaml\n"
],
"status":"PASS",
"actual_value":"permissions=600\n",
"scored":true,
"expected_result":"bitmask '600' AND '644'"
}
]
}
],
"total_pass":42,
"total_fail":12,
"total_warn":11,
"total_info":0
},
{
"id":"2",
"version":"1.15",
"text":"Etcd Node Configuration",
"node_type":"etcd",
"tests":[
{
"section":"2",
"pass":7,
"fail":0,
"warn":0,
"info":0,
"desc":"Etcd Node Configuration Files",
"results":[
{
"test_number":"2.1",
"test_desc":"Ensure that the --cert-file and --key-file arguments are set as appropriate (Scored)",
"remediation":"Follow the etcd service documentation and configure TLS encryption.\nThen, edit the etcd pod specification file /etc/kubernetes/manifests/etcd.yaml\non the master node and set the below parameters.\n--cert-file=</path/to/ca-file>\n--key-file=</path/to/key-file>\n",
"test_info":[
"Follow the etcd service documentation and configure TLS encryption.\nThen, edit the etcd pod specification file /etc/kubernetes/manifests/etcd.yaml\non the master node and set the below parameters.\n--cert-file=</path/to/ca-file>\n--key-file=</path/to/key-file>\n"