-
Notifications
You must be signed in to change notification settings - Fork 325
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 #1722 from wireapp/release_2021_08_27
Release 20201 08 027
- Loading branch information
Showing
173 changed files
with
3,734 additions
and
1,737 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
THIS FILE ACCUMULATES THE RELEASE NOTES FOR THE UPCOMING RELEASE. | ||
|
||
<!-- | ||
# [2021-xx-xx] | ||
[please put all changes that only affect federation into this section to unclutter the rest of the release notes.] | ||
[if something is both an API change and a feature, please mention it twice (you can abbreviate the second mention and add "see above").] | ||
## Release Notes | ||
## API Changes | ||
## Features | ||
## Bug fixes and other updates | ||
## Documentation | ||
## Internal changes | ||
--> |
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,15 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "federator-ca" | ||
labels: | ||
wireService: federator | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
data: | ||
{{- if .Values.remoteCAContents }} | ||
ca.crt: {{ .Values.remoteCAContents | quote }} | ||
{{- else }} | ||
{} | ||
{{- end }} |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
{{- if not .Values.tls.useSharedFederatorSecret -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "federator-secret" | ||
labels: | ||
wireService: federator | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
type: kubernetes.io/tls | ||
data: | ||
{{- if .Values.clientPrivateKeyContents }} | ||
tls.key: {{ .Values.clientPrivateKeyContents | b64enc | quote }} | ||
{{- end -}} | ||
{{- if .Values.clientCertificateContents }} | ||
tls.crt: {{ .Values.clientCertificateContents | 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- /* This is the CA used by the federator ingress to verify client | ||
certificates. This does not need to be a secret in principle, but the ingress | ||
controller requires it to be. Also, this could in principle be bundled with the | ||
corresponding certificate (in secret_federator.yaml), but it is a separate | ||
secret because cert-manager interferes with the ca.crt field when setting the | ||
certificate in a secret. */ -}} | ||
|
||
{{- if .Values.federator.enabled -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: federator-ca-secret | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
data: | ||
ca.crt: {{ .Values.secrets.tlsClientCA | b64enc | quote }} | ||
{{- 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
34 changes: 34 additions & 0 deletions
34
charts/nginx-ingress-services/templates/certificate_federator.yaml
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,34 @@ | ||
{{- if and .Values.federator.enabled (not .Values.tls.enabled) }} | ||
{{- fail "TLS is required by federator. Either disable federation or enable tls." }} | ||
{{- end }} | ||
{{- if and .Values.tls.enabled .Values.tls.useCertManager }} | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: "federator-{{ include "nginx-ingress-services.zone" . | replace "." "-" }}-csr" | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
issuerRef: | ||
name: letsencrypt-http01 | ||
kind: Issuer | ||
usages: | ||
- server auth | ||
- client auth | ||
duration: 2160h # 90d, Letsencrypt default; NOTE: changes are ignored by Letsencrypt | ||
renewBefore: 360h # 15d | ||
isCA: false | ||
keyAlgorithm: ecdsa | ||
keySize: 256 # hs-tls only supports p256 | ||
keyEncoding: pkcs1 | ||
secretName: federator-certificate-secret | ||
# 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.federator }} | ||
{{- 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
Oops, something went wrong.