UCF STIG Viewer Logo

Kubernetes Kubelet must not disable timeouts.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242416 CNTR-K8-001300 SV-242416r712604_rule Medium
Description
Idle connections from the Kubelet can be use by unauthorized users to perform malicious activity to the nodes, pods, containers, and cluster within the Kubernetes Control Plane. Setting the streaming connection idle timeout defines the maximum time an idle session is permitted prior to disconnect. Setting the value to "0" never disconnects any idle sessions. Idle timeouts must never be set to "0" and should be defined at a minimum of "5 minutes".
STIG Date
Kubernetes Security Technical Implementation Guide 2021-04-14

Details

Check Text ( C-45691r712602_chk )
Change to the /etc/sysconfig/ directory on the Kubernetes Master Node. Run the command:

grep -i streaming-connection-idle-timeout kubelet

If the setting streaming-connection-idle-timeout is set to "0" or the parameter is not configured in the Kubernetes Kubelet, this is a finding.
Fix Text (F-45649r712603_fix)
Edit the Kubernetes Kubelet file in the /etc/sysconfig directory on the Kubernetes Master Node. Set the argument "--streaming-connection-idle-timeout" to a value other than "0". Reset Kubelet service using the following command:

service kubelet restart