OpenShift Virtualization
TMA-OPENSHIFT-VIRT-1.5
Enforce the use of trusted registries using TLS
설명
Transport Layer Security (TLS) is a cryptographic protocol used in this context to protect data in transit. Restricting operations to the use of trusted registries ensures the use of approved container images. Audit: Passes when .spec.storageImport.insecureRegistries of the HyperConverged resource is empty. Requires oc logged in to the cluster with read access.
점검 방법
감사 방식: 셸 명령
command -v oc >/dev/null 2>&1 || exit 1; v=$(oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.storageImport.insecureRegistries}') || exit 1; [ -z "$v" ] && echo compliant || echo noncompliant- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Do not allow connections to insecure registries from hyperconverged resources. The cluster administrator can remove any insecure registry: $ oc patch hyperconverged kubevirt-hyperconverged - n openshift - cnv --type='json' -p='[ {"op": "remove", "path": "/spec/storageImport/insecureRegistries"}, ]'
속성
- 운영 체제
- 모두
- 태그
- openshift-virtregistrytls
- 참고 자료
- CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.5 Enforce the use of trusted registries using TLS
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target openshift-virt