-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from wireapp/release_2020_06_26
release 2020-06-26
- Loading branch information
Showing
17 changed files
with
241 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- if and .Values.tls.enabled .Values.tls.useCertManager -}} | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: "{{ include "nginx-ingress-services.zone" . | replace "." "-" }}-csr" | ||
namespace: {{ .Release.Namespace }} | ||
docs: "https://cert-manager.io/docs/usage/certificate" | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
issuerRef: | ||
name: letsencrypt-http01 | ||
kind: Issuer | ||
usages: | ||
- server auth | ||
duration: 2160h # 90d, Letsencrypt default; NOTE: changes are ignored by Letsencrypt | ||
renewBefore: 360h # 15d | ||
isCA: false | ||
keyAlgorithm: ecdsa | ||
keySize: 384 # 521 is not supported by Letsencrypt | ||
keyEncoding: pkcs1 | ||
secretName: {{ include "nginx-ingress-services.getCertificateSecretName" . | quote }} | ||
# NOTE: disabled due to https://github.com/jetstack/cert-manager/issues/2978 | ||
# TODO: enable when fixed (probably when cert-manager:v0.16 released) | ||
#privateKey: | ||
# rotationPolicy: Always | ||
dnsNames: | ||
- {{ .Values.config.dns.https }} | ||
- {{ .Values.config.dns.ssl }} | ||
- {{ .Values.config.dns.webapp }} | ||
- {{ .Values.config.dns.fakeS3 }} | ||
{{- if .Values.teamSettings.enabled }} | ||
- {{ .Values.config.dns.teamSettings }} | ||
{{- end }} | ||
{{- if .Values.accountPages.enabled }} | ||
- {{ .Values.config.dns.accountPages }} | ||
{{- end }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if and .Values.tls.enabled .Values.tls.useCertManager -}} | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-http01 | ||
namespace: {{ .Release.Namespace }} | ||
docs: "https://cert-manager.io/docs/configuration/acme/" | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
acme: | ||
server: {{ include "certificate-manager.apiServerURL" . | quote }} | ||
email: {{ required "Missing value: certmasterEmail" .Values.certManager.certmasterEmail | quote }} | ||
# NOTE: this secret doesnt need to be created, it only gets a name with this | ||
privateKeySecretRef: | ||
name: letsencrypt-http01-account-key | ||
solvers: | ||
- http01: | ||
ingress: | ||
class: nginx | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: nginx-ingress-services-wildcard-tls-certificate | ||
name: {{ include "nginx-ingress-services.getCertificateSecretName" . | quote }} | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
type: kubernetes.io/tls | ||
{{ if and .Values.tls.enabled .Values.tls.useCertManager -}} | ||
{{- /* NOTE: providing `data` (and empty strings) allows to manage this secret resource with Helm if cert-manager is user */ -}} | ||
data: | ||
{{/* for_helm_linting is necessary only since the 'with' block below does not throw an error upon an empty .Values.secrets */}} | ||
tls.crt: "" | ||
tls.key: "" | ||
{{- end -}} | ||
{{- if and .Values.tls.enabled (not .Values.tls.useCertManager) -}} | ||
data: | ||
{{- /* for_helm_linting is necessary only since the 'with' block below does not throw an error upon an empty .Values.secrets */}} | ||
for_helm_linting: {{ required "No .secrets found in configuration. Did you forget to helm <command> -f path/to/secrets.yaml ?" .Values.secrets | quote | b64enc | quote }} | ||
|
||
{{- with .Values.secrets }} | ||
tls.crt: {{ .tlsWildcardCert | b64enc | quote }} | ||
tls.key: {{ .tlsWildcardKey | b64enc | quote }} | ||
{{- end }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.