documentation_complete: true


platform: ocp4-node

title: 'Verify User Who Owns the Worker Certificate Authority File'

description: '{{{ describe_file_owner(file="/etc/kubernetes/kubelet-ca.crt", owner="root") }}}'

rationale: |-
    The worker certificate authority file contains the certificate authority
    certificate for an OpenShift node that is configured on the system. Protection of this file is
    critical for OpenShift security.

severity: medium

identifiers:
    cce@ocp4: CCE-83495-2

references:
    cis@ocp4: 4.1.8
    nerc-cip: CIP-003-8 R6,CIP-004-6 R3,CIP-007-3 R6.1
    nist: CM-6,CM-6(1)
    srg: SRG-APP-000516-CTR-001325

ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/kubernetes/kubelet-ca.crt", owner="root") }}}'

ocil: |-
    {{{ ocil_file_owner(file="/etc/kubernetes/kubelet-ca.crt", owner="root") }}}

template:
    name: file_owner
    vars:
        filepath: /etc/kubernetes/kubelet-ca.crt
        uid_or_name: '0'
