TMAegis베타
openshift 관련 규칙 더 보기

Red Hat OpenShift

TMA-OPENSHIFT-4.2.5

Verify that the read only port is not used or is set to 0

보통레벨 1자동openshift

설명

Disable the read-only port. Requires an oc login with read access to openshift-kube-apiserver; checks apiServerArguments kubelet-read-only-port is ["0"].

점검 방법

감사 방식: 셸 명령

shell
v=$(oc -n openshift-kube-apiserver get configmap config -o jsonpath='{.data.config\.yaml}') || exit 1
if printf '%s' "$v" | grep -Eq '"kubelet-read-only-port":[[:space:]]*\[[[:space:]]*"0"[[:space:]]*\]'; then echo compliant; else echo noncompliant; fi
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

In earlier versions of OpenShift 4, the read-only-port argument is not used. Follow the instructions in the documentation to create a kubeletconfig CRD and set the kubelet-read-only-port is set to 0.

속성

운영 체제
모두
태그
openshiftworker-node
참고 자료
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 4.2.5 Verify that the read only port is not used or is set to 0

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target openshift