Skip to content

Commit

Permalink
Use the auto-encrypt CA volume for service-init (hashicorp#405)
Browse files Browse the repository at this point in the history
When auto-encrypt is enabled we need to use the volume with
the client's CA rather than the server's.
  • Loading branch information
ishustava authored Apr 2, 2020
1 parent ebf57c2 commit fcdaa4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/client-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ spec:
value: https://localhost:8501
{{- if .Values.global.tls.enableAutoEncrypt }}
- name: CONSUL_HTTP_SSL_VERIFY
value: false
value: "false"
{{- else }}
- name: CONSUL_CACERT
value: /consul/tls/ca/tls.crt
Expand Down
8 changes: 8 additions & 0 deletions templates/mesh-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ spec:
- name: consul-service
mountPath: /consul/service
{{- if .Values.global.tls.enabled }}
{{- if .Values.global.tls.enableAutoEncrypt }}
- name: consul-auto-encrypt-ca-cert
{{- else }}
- name: consul-ca-cert
{{- end }}
mountPath: /consul/tls/ca
readOnly: true
{{- end }}
Expand Down Expand Up @@ -298,7 +302,11 @@ spec:
mountPath: /consul/service
readOnly: true
{{- if .Values.global.tls.enabled }}
{{- if .Values.global.tls.enableAutoEncrypt }}
- name: consul-auto-encrypt-ca-cert
{{- else }}
- name: consul-ca-cert
{{- end }}
mountPath: /consul/tls/ca
readOnly: true
{{- end }}
Expand Down

0 comments on commit fcdaa4f

Please sign in to comment.