TMAegisBeta
Weitere Regeln für openshift-virt

OpenShift Virtualization

TMA-OPENSHIFT-VIRT-1.6

Restrict patching operations in the annotations for Hyperconverged

MittelStufe 1Manuelle Prüfungopenshift-virt

Beschreibung

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.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

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 ...

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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-'

Eigenschaften

Betriebssysteme
Beliebig
Tags
openshift-virtmanual-review
Referenz
CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.6 Restrict patching operations in the annotations for Hyperconverged