mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Helm chart to allow mysql TLS w/o client certs (#10794)
This will allow MySQL TLS to be enabled for fleet in the helm chart with a self-signed CA but without requiring client certs to be utilized. It should be backwards compatible with previous values.yaml files that had these TLS values specified, but might require someone to uncomment them if they did not explicitly define them in their own values. Note: this resolves #8207
This commit is contained in:
parent
f42ea50cff
commit
8561b74177
4 changed files with 18 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ name: fleet
|
|||
keywords:
|
||||
- fleet
|
||||
- osquery
|
||||
version: v5.0.0
|
||||
version: v5.0.1
|
||||
home: https://github.com/fleetdm/fleet
|
||||
sources:
|
||||
- https://github.com/fleetdm/fleet.git
|
||||
|
|
|
|||
|
|
@ -116,12 +116,18 @@ spec:
|
|||
- name: FLEET_MYSQL_CONN_MAX_LIFETIME
|
||||
value: "{{ .Values.mysql.connMaxLifetime }}"
|
||||
{{- if .Values.mysql.tls.enabled }}
|
||||
{{- if .Values.mysql.tls.caCertKey }}
|
||||
- name: FLEET_MYSQL_TLS_CA
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.caCertKey }}"
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.tls.certKey }}
|
||||
- name: FLEET_MYSQL_TLS_CERT
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.certKey }}"
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.tls.keyKey }}
|
||||
- name: FLEET_MYSQL_TLS_KEY
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.keyKey }}"
|
||||
{{- end }}
|
||||
- name: FLEET_MYSQL_TLS_CONFIG
|
||||
value: "{{ .Values.mysql.tls.config }}"
|
||||
- name: FLEET_MYSQL_TLS_SERVER_NAME
|
||||
|
|
|
|||
|
|
@ -90,12 +90,18 @@ spec:
|
|||
- name: FLEET_MYSQL_CONN_MAX_LIFETIME
|
||||
value: "{{ .Values.mysql.connMaxLifetime }}"
|
||||
{{- if .Values.mysql.tls.enabled }}
|
||||
{{- if .Values.mysql.tls.caCertKey }}
|
||||
- name: FLEET_MYSQL_TLS_CA
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.caCertKey }}"
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.tls.certKey }}
|
||||
- name: FLEET_MYSQL_TLS_CERT
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.certKey }}"
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.tls.keyKey }}
|
||||
- name: FLEET_MYSQL_TLS_KEY
|
||||
value: "/secrets/mysql/{{ .Values.mysql.tls.keyKey }}"
|
||||
{{- end }}
|
||||
- name: FLEET_MYSQL_TLS_CONFIG
|
||||
value: "{{ .Values.mysql.tls.config }}"
|
||||
- name: FLEET_MYSQL_TLS_SERVER_NAME
|
||||
|
|
|
|||
|
|
@ -160,9 +160,11 @@ mysql:
|
|||
connMaxLifetime: 0
|
||||
tls:
|
||||
enabled: false
|
||||
caCertKey: ca.cert
|
||||
certKey: client.cert
|
||||
keyKey: client.key
|
||||
## Commented options below are optional. Uncomment to use.
|
||||
# caCertKey: ca.cert
|
||||
## Client certificates require both the certKey and keyKey
|
||||
# certKey: client.cert
|
||||
# keyKey: client.key
|
||||
config: ""
|
||||
serverName: ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue