Cortex CloudApplication Security
The --insecure-port argument is not set to 0 misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_K8S_88
Category - Subcategory
Kubernetes - Native Security Controls
Provider
OTHER
Severity
HIGH
Framework
Helm, Kubernetes, Kustomize
Impact
Do not bind to insecure port. Setting up the apiserver to serve on an insecure port would allow unauthenticated and unencrypted access to your master node. This would allow attackers who could access this port, to easily take control of the cluster.
How to Fix
Kind: Pod [source,go]
{ "apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: component: kube-apiserver tier: control-plane name: kube-apiserver namespace: kube-system spec: containers:
command:
kube-apiserver
--insecure-port=0 image: gcr.io/google_containers/kube-apiserver-amd64:v1.6.0 ...", }
PreviousThe --insecure-bind-address argument is set misconfiguration detected in code
NextThe --secure-port argument is set to 0 misconfiguration detected in code
Last updated
Was this helpful?
