TMAegisБета
Другие правила для openshift-virt

OpenShift Virtualization

TMA-OPENSHIFT-VIRT-1.5

Enforce the use of trusted registries using TLS

ВысокийУровень 1Автоматическаяopenshift-virt

Описание

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.

Как проверяется

Метод проверки: Команда оболочки

shell
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

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target openshift-virt