Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022.4 | enforcer | TLS with CA #848

Open
wants to merge 4 commits into
base: 2022.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions enforcer/templates/enforcer-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ data:
AQUA_HOST_RUN_PATH: {{ .Values.hostRunPath | quote }}
{{- end }}
{{- if .Values.TLS.enabled }}
{{- if .Values.TLS.privateKey_fileName }}
AQUA_PRIVATE_KEY: "/opt/aquasec/ssl/key.pem"
{{- end}}
{{- if .Values.TLS.publicKey_fileName }}
AQUA_PUBLIC_KEY: "/opt/aquasec/ssl/cert.pem"
{{- end}}
{{- if .Values.TLS.rootCA_fileName }}
AQUA_ROOT_CA: "/opt/aquasec/ssl/ca.pem"
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions enforcer/templates/enforcer-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,14 @@ spec:
defaultMode: 420
secretName: {{ .Values.TLS.secretName }}
items:
{{- if .Values.TLS.publicKey_fileName }}
- key: {{ .Values.TLS.publicKey_fileName }}
path: cert.pem
{{- end }}
{{- if .Values.TLS.privateKey_fileName }}
- key: {{ .Values.TLS.privateKey_fileName }}
path: key.pem
{{- end }}
{{- if .Values.TLS.rootCA_fileName }}
- key: {{ .Values.TLS.rootCA_fileName }}
path: ca.pem
Expand Down
4 changes: 4 additions & 0 deletions kube-enforcer/templates/kube-enforcer-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ data:
{{- end }}
# mTLS env config
{{- if .Values.TLS.enabled }}
{{- if .Values.TLS.privateKey_fileName }}
AQUA_PRIVATE_KEY: "/opt/aquasec/ssl/key.pem"
{{- end}}
{{- if .Values.TLS.publicKey_fileName }}
AQUA_PUBLIC_KEY: "/opt/aquasec/ssl/cert.pem"
{{- end}}
AQUA_TLS_VERIFY: {{ .Values.TLS.tls_verify | quote }}
{{- if .Values.TLS.rootCA_fileName }}
AQUA_ROOT_CA: "/opt/aquasec/ssl/ca.pem"
Expand Down
4 changes: 4 additions & 0 deletions kube-enforcer/templates/kube-enforcer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,14 @@ spec:
defaultMode: 420
secretName: {{ .Values.TLS.secretName }}
items:
{{- if .Values.TLS.publicKey_fileName }}
- key: {{ .Values.TLS.publicKey_fileName }}
path: cert.pem
{{- end }}
{{- if .Values.TLS.privateKey_fileName }}
- key: {{ .Values.TLS.privateKey_fileName }}
path: key.pem
{{- end }}
{{- if .Values.TLS.rootCA_fileName }}
- key: {{ .Values.TLS.rootCA_fileName }}
path: ca.pem
Expand Down