Check ID:
Provider: Kubernetes
Service:
Severity: MEDIUM
Categories:
Resource type:
apiserver_request_timeout_setProvider: Kubernetes
Service:
apiserverSeverity: MEDIUM
Categories:
cluster-security, resilienceResource type:
PodWhat this check verifies
Kubernetes API server has a global request timeout configured via--request-timeout.
The presence of that flag on API server containers is assessed.
Risk
Without a defined, appropriate timeout, requests can linger and tie up handlers, reducing availability. Attackers can perform slowloris-style holds or heavy reads to cause resource exhaustion and backlog growth. Overly short timeouts can cut valid calls, disrupting controllers and clients.Recommendation
Set--request-timeout to a bounded value aligned to typical non-watch calls; when needed, tune --min-request-timeout for watches. Combine with priority and fairness, rate limiting, and load testing to prevent starvation. Monitor latency and errors to adjust. Apply defense in depth.
Remediation
Dashboard steps- SSH to each control-plane node
- Edit /etc/kubernetes/manifests/kube-apiserver.yaml
- In the kube-apiserver container’s command list, add:
- Save the file; the kubelet will automatically restart the API server
- Repeat on all control-plane nodes
References
Where this check fires
This check runs on every scheduled scan against your Kubernetes account. Findings appear at Cloud Security → Findings filterable byCheck ID = apiserver_request_timeout_set. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Kubernetes checks