SV-257506r960759_rule
V-257506
SRG-APP-000014-CTR-000040
CNTR-OS-000020
CAT II
10
Edit each resource and set the TLS Security Profile to Intermediate by executing the following:
oc edit ingresscontroller <NAME> -n <NAMESPACE>
Add the following to the file:
apiVersion: config.openshift.io/v1
kind: IngressController
...
spec:
tlsSecurityProfile:
intermediate: {}
type: Intermediate
Edit API Server by executing the following:
oc edit APIServer
Add the following to the file:
apiVersion: config.openshift.io/v1
kind: APIServer
...
spec:
tlsSecurityProfile:
intermediate: {}
type: Intermediate
Edit Kubelet by executing the following:
oc edit KubeletConfig <NAME>
Set to the following:
apiVersion: config.openshift.io/v1
kind: KubeletConfig
...
spec:
tlsSecurityProfile:
intermediate: {}
type: Intermediate
Verify the TLS Security Profile is not set to a profile that does not enforce TLS 1.2 or above.
View the TLS security profile for the ingress controllers by executing the following:
oc get --all-namespaces ingresscontrollers.operator.openshift.io -ocustom-columns="NAME":.metadata.name,"NAMESPACE":.metadata.namespace,"TLS PROFILE":.spec.tlsSecurityProfile
View the TLS security profile for the control plane by executing the following:
oc get APIServer cluster -ocustom-columns="TLS PROFILE":.spec.tlsSecurityProfile
View the TLS profile for the Kubelet by executing the following:
oc get kubeletconfigs -ocustom-columns="NAME":.metadata.name,"TLS PROFILE":.spec.tlsSecurityProfile
If any of the above returns a TLS profile of "Old", this is a finding.
If any of the above returns a TLS profile of "Custom" and the minTLSVersion is not set to "VersionTLS12" or greater, this is a finding.
If the above returns "<none>" TLS profile, this is not a finding as the TLS profile defaults to "Intermediate".
If the kubelet TLS profile check does not return any kubeletconfigs, this is not a finding as the default OCP installation uses defaults only.
V-257506
False
CNTR-OS-000020
Verify the TLS Security Profile is not set to a profile that does not enforce TLS 1.2 or above.
View the TLS security profile for the ingress controllers by executing the following:
oc get --all-namespaces ingresscontrollers.operator.openshift.io -ocustom-columns="NAME":.metadata.name,"NAMESPACE":.metadata.namespace,"TLS PROFILE":.spec.tlsSecurityProfile
View the TLS security profile for the control plane by executing the following:
oc get APIServer cluster -ocustom-columns="TLS PROFILE":.spec.tlsSecurityProfile
View the TLS profile for the Kubelet by executing the following:
oc get kubeletconfigs -ocustom-columns="NAME":.metadata.name,"TLS PROFILE":.spec.tlsSecurityProfile
If any of the above returns a TLS profile of "Old", this is a finding.
If any of the above returns a TLS profile of "Custom" and the minTLSVersion is not set to "VersionTLS12" or greater, this is a finding.
If the above returns "<none>" TLS profile, this is not a finding as the TLS profile defaults to "Intermediate".
If the kubelet TLS profile check does not return any kubeletconfigs, this is not a finding as the default OCP installation uses defaults only.
M
5547