Certificate authority is not unique 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: kubernetes-not-unique-certificate-authority
Platform: Kubernetes
Severity: Medium
Category: Secret Management
Learn More Description The trusted certificate authority file used by etcd must be different from the client certificate authority file used by the API server. Do not set --trusted-ca-file for etcd to the same path as the API server’s --client-ca-file. Sharing the same CA file can allow clients authenticated to the API server to be implicitly trusted by etcd, weakening isolation and increasing risk.
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-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--client-ca-file=/etc/env/valid.pem" ]
restartPolicy : OnFailure
---
apiVersion : apps/v1
kind : Deployment
metadata :
name : database
spec :
selector :
matchLabels :
app : database
version : v1
replicas : 1
template :
metadata :
labels :
app : database
version : v1
spec :
serviceAccountName : database
containers :
- name : database
image : gcr.io/google_containers/kube-apiserver:certification
imagePullPolicy : IfNotPresent
command : [ "etcd" ]
args : [ "--trusted-ca-file=/etc/env/valid2.pem" ]
nodeSelector :
kubernetes.io/hostname : worker02
restartPolicy : OnFailure
Non-Compliant Code Examples apiVersion : apps/v1
kind : Deployment
metadata :
name : database
spec :
selector :
matchLabels :
app : database
version : v1
replicas : 1
template :
metadata :
labels :
app : database
version : v1
spec :
serviceAccountName : database
containers :
- name : database
image : gcr.io/google_containers/kube-apiserver:certification
imagePullPolicy : IfNotPresent
command : [ "etcd" ]
args : [ "--trusted-ca-file=/etc/env/valid3.pem" ]
nodeSelector :
kubernetes.io/hostname : worker02
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-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--client-ca-file=/etc/env/valid3.pem" ]
restartPolicy : OnFailure