Ensure that the --insecure-allow-any-token argument is not set (API Server)

Ensure that the API server is configured to only use strong cryptographic ciphers. TLS ciphers have had a number of known vulnerabilities and weaknesses, which can reduce the protection provided by them. By default Kubernetes supports a number of TLS ciphersuites including some that have security concerns, weakening the protection provided.

Risk Level: High
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.NET.05
Covered by Spectral: Yes
Category: Compute


KubernetesPod where labels contain [value='kube-apiserver'] and namespace = 'kube-system'  should have spec.containers with [parsedArgs contain-none [key like 'insecure-allow-any-token']]


Edit the API server pod specification file $apiserverconf
on the master node and remove the --insecure-allow-any-token


Pods are the smallest deployable units of computing that can be created and managed in Kubernetes.A Pod is a group of one or more containers (such as Docker containers), with shared storage/network, and a specification for how to run the containers.

Compliance Frameworks

  • CIS Kubernetes Benchmark v1.4.0
  • Kubernetes NIST.SP.800-190
  • Kubernetes v.1.13 CloudGuard Best Practices
  • Kubernetes v.1.14 CloudGuard Best Practices