-
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.
Browse files
Browse the repository at this point in the history
Co-authored-by: Leif Battermann <[email protected]>
- Loading branch information
1 parent
6a21f27
commit f5ffe5e
Showing
50 changed files
with
1,107 additions
and
356 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,32 @@ | ||
Support connecting to Elasticsearch over TLS | ||
|
||
It can be enabled by setting these options on the wire-server helm chart: | ||
|
||
```yaml | ||
brig: | ||
config: | ||
elasticsearch: | ||
scheme: https | ||
|
||
# When custom CAs are required, one of these must be set: | ||
tlsCa: <PEM encoded CA certificates> | ||
tlsCaSecretRef: | ||
name: <Name of the secret> | ||
key: <Key in the secret containing pem encoded CA Cert> | ||
|
||
# When TLS needs to be used without verification: | ||
insecureSkipVerifyTls: true | ||
|
||
elasticsearch-index: | ||
elasticsearch: | ||
scheme: https | ||
|
||
# When custom CAs are required, one of these must be set: | ||
tlsCa: <PEM encoded CA certificates> | ||
tlsCaSecretRef: | ||
name: <Name of the secret> | ||
key: <Key in the secret containing pem encoded CA Cert> | ||
|
||
# When TLS needs to be used without verification: | ||
insecureSkipVerifyTls: true | ||
``` |
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,30 @@ | ||
--- | ||
{{- if not (empty .Values.config.elasticsearch.tlsCa) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "brig-elasticsearch-ca" | ||
labels: | ||
app: brig | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
type: Opaque | ||
data: | ||
ca.pem: {{ .Values.elasticsearch.tlsCa | b64enc | quote }} | ||
{{- end }} | ||
--- | ||
{{- if not (empty .Values.config.elasticsearch.additionalTlsCa) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "brig-additional-elasticsearch-ca" | ||
labels: | ||
app: brig | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
type: Opaque | ||
data: | ||
ca.pem: {{ .Values.elasticsearch.additionalTlsCa | 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
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,30 @@ | ||
|
||
{{- if .Values.tls.enabled -}} | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ template "fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
issuerRef: {{ required "Please specify .Values.tls.issuerRef when .Values.tls.enabled is true" .Values.tls.issuerRef | toJson }} | ||
usages: | ||
- server auth | ||
duration: 2160h # 90d | ||
renewBefore: 360h # 15d | ||
isCA: false | ||
secretName: {{ template "fullname" . }}-certificate | ||
|
||
privateKey: | ||
algorithm: ECDSA | ||
size: 384 | ||
encoding: PKCS1 | ||
rotationPolicy: Always | ||
|
||
dnsNames: | ||
- {{ template "fullname" . }} | ||
- {{ template "fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local | ||
{{- 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 |
---|---|---|
|
@@ -15,5 +15,9 @@ resources: | |
cpu: "250m" | ||
memory: "500Mi" | ||
|
||
tls: | ||
enabled: false | ||
# issuerRef: .. | ||
|
||
secrets: | ||
password: "changeme" |
Oops, something went wrong.