TMAegis베타
openshift-virt 관련 규칙 더 보기

OpenShift Virtualization

TMA-OPENSHIFT-VIRT-1.6

Restrict patching operations in the annotations for Hyperconverged

보통레벨 1수동 검토openshift-virt

설명

The kubevirt - hyperconverged (HCO) object provides a mechanism to customize OpenShift Virtualization components through the control of patching operations. Although this approach itself does not inherently introduce security risks, enabling experimental features may have unintended consequences and might not be officially supported. It is essential to weigh the benefits of using these options against any potential security implications before proceeding. The benchmark marks this recommendation Manual; TMAegis reports it as a manual review item with the audit steps.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Ensure there are no patching operations for the Openshift Virtualization component $ oc get hyperconverged kubevirt - hyperconverged - n openshift - cnv - o jsonpath='{.metadata.annotations}'| jq '.|has("kubevirt.kubevirt.io/jsonpatch")' $ oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.metadata.annotations}'| jq '.|has("containerizeddataimporter.kubevirt.io/jsonpatch")' $ oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.metadata.annotations}'| jq '.|has("networkaddonsconfigs.kubevirt.io/jsonpatch")' $ oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.metadata.annotations}'| jq ...

조치 방법

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

The annotations should be removed from the Hyperconverged. For example, by directly editing the object with oc edit hyperconverged kubevirt - hyperconverged -n openshift-cnv or by removing the annotation with the annotate command. Example: $ oc annotate --overwrite -n openshift-cnv hco kubevirt-hyperconverged 'containerizeddataimporter.kubevirt.io/jsonpatch-'

속성

운영 체제
모두
태그
openshift-virtmanual-review
참고 자료
CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.6 Restrict patching operations in the annotations for Hyperconverged