SV-257505r960759_rule
V-257505
SRG-APP-000014-CTR-000035
CNTR-OS-000010
CAT II
10
Remove insecure registries from the cluster's image registry configuration by executing the following:
oc edit image.config.openshift.io/cluster
Edit or remove any registries where insecure is set to true or are listed under insecureRegistries.
Refer to https://docs.openshift.com/container-platform/4.8/openshift_images/image-configuration.html for more details on configuring registries in OpenShift.
Verify that no insecure registries are configured by executing the following:
oc get image.config.openshift.io/cluster -ojsonpath='{.spec.allowedRegistriesForImport}' | jq -r '.[] | select(.insecure == true)'
If the above query finds any registries, this is a finding. Empty output is not a finding.
Verify that no insecure registries are configured by executing the following:
oc get image.config.openshift.io/cluster -ojsonpath='{.spec.registrySources.insecureRegistries}'
If the above query returns anything, then this is a finding. Empty output is not a finding.
V-257505
False
CNTR-OS-000010
Verify that no insecure registries are configured by executing the following:
oc get image.config.openshift.io/cluster -ojsonpath='{.spec.allowedRegistriesForImport}' | jq -r '.[] | select(.insecure == true)'
If the above query finds any registries, this is a finding. Empty output is not a finding.
Verify that no insecure registries are configured by executing the following:
oc get image.config.openshift.io/cluster -ojsonpath='{.spec.registrySources.insecureRegistries}'
If the above query returns anything, then this is a finding. Empty output is not a finding.
M
5547