Service account private key file not defined This product is not supported for your selected
Datadog site . (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください 。
Id: kubernetes-service-account-private-key-file-not-defined
Platform: Kubernetes
Severity: Medium
Category: Encryption
Learn More Description When kube-controller-manager is used, the --service-account-private-key-file flag should be set. This rule checks the containers and initContainers command fields for kube-controller-manager and verifies the presence of the --service-account-private-key-file flag. Setting this flag ensures the controller manager has a private key to sign service account tokens.
Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" ]
args : [ "--service-account-private-key-file=/path/to/key/file.pem" ]
restartPolicy : OnFailure
apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" , "--service-account-private-key-file=/path/to/key/file.pem" ]
args : []
restartPolicy : OnFailure
Non-Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" ]
args : []
restartPolicy : OnFailure