SV-242403r986135_rule
V-242403
SRG-APP-000026-CTR-000070
CNTR-K8-000700
CAT II
10
Edit the Kubernetes API Server manifest file in the /etc/kubernetes/manifests directory on the Kubernetes Control Plane.
Set the value of "--audit-policy-file" to the path of a file with the following content:
# Log all requests at the RequestResponse level.
apiVersion: audit.k8s.io/vX (Where X is the latest apiVersion)
kind: Policy
rules:
- level: RequestResponse
Note: If the API server is running as a Pod, then the manifest will also need to be updated to mount the host system filesystem where the audit policy file resides.
Change to the /etc/kubernetes/manifests directory on the Kubernetes Control Plane. Run the command:
grep -i audit-policy-file
If the audit-policy-file is not set, this is a finding.
The file given is the policy file and defines what is audited and what information is included with each event.
The policy file must look like this:
# Log all requests at the RequestResponse level.
apiVersion: audit.k8s.io/vX (Where X is the latest apiVersion)
kind: Policy
rules:
- level: RequestResponse
If the audit policy file does not look like above, this is a finding.
V-242403
False
CNTR-K8-000700
Change to the /etc/kubernetes/manifests directory on the Kubernetes Control Plane. Run the command:
grep -i audit-policy-file
If the audit-policy-file is not set, this is a finding.
The file given is the policy file and defines what is audited and what information is included with each event.
The policy file must look like this:
# Log all requests at the RequestResponse level.
apiVersion: audit.k8s.io/vX (Where X is the latest apiVersion)
kind: Policy
rules:
- level: RequestResponse
If the audit policy file does not look like above, this is a finding.
M
5376