mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 15:38:00 +08:00
matomo: make it possible to use ssl connections to database (#21617)
* matomo: changed security context for certificates container Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: moved command into condition Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: mount shared certificates Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: added etc ssl certs to init containers Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: inserted ca Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: added extra volume mounts to cronjob Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: fixed indentation Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: reverted certificate mount Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * matomo: reverted mount of certs Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> * Update Chart.yaml Signed-off-by: Matthias Wagner <matthias.wagner@company-mood.com> --------- Signed-off-by: matthiaswagnercm <153737803+matthiaswagnercm@users.noreply.github.com> Signed-off-by: Matthias Wagner <matthias.wagner@company-mood.com>
This commit is contained in:
@@ -39,4 +39,4 @@ maintainers:
|
|||||||
name: matomo
|
name: matomo
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/bitnami/charts/tree/main/bitnami/matomo
|
- https://github.com/bitnami/charts/tree/main/bitnami/matomo
|
||||||
version: 4.0.0
|
version: 4.0.1
|
||||||
|
|||||||
@@ -174,17 +174,20 @@ Return the matomo pods needed initContainers
|
|||||||
{{- range (default .Values.image.pullSecrets .Values.certificates.image.pullSecrets) }}
|
{{- range (default .Values.image.pullSecrets .Values.certificates.image.pullSecrets) }}
|
||||||
- name: {{ . }}
|
- name: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
{{- if .Values.certificates.command }}
|
{{- if .Values.certificates.command }}
|
||||||
command: {{- include "common.tplvalues.render" (dict "value" .Values.certificates.command "context" $) | nindent 4 }}
|
command: {{- include "common.tplvalues.render" (dict "value" .Values.certificates.command "context" $) | nindent 4 }}
|
||||||
{{- else if .Values.certificates.customCertificate.certificateSecret }}
|
{{- else if .Values.certificates.customCertificate.certificateSecret }}
|
||||||
- sh
|
command:
|
||||||
- -c
|
- sh
|
||||||
- install_packages ca-certificates openssl
|
- -c
|
||||||
|
- install_packages ca-certificates openssl
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- sh
|
command:
|
||||||
- -c
|
- sh
|
||||||
- install_packages ca-certificates openssl
|
- -c
|
||||||
|
- install_packages ca-certificates openssl
|
||||||
&& openssl req -new -x509 -days 3650 -nodes -sha256
|
&& openssl req -new -x509 -days 3650 -nodes -sha256
|
||||||
-subj "/CN=$(hostname)" -addext "subjectAltName = DNS:$(hostname)"
|
-subj "/CN=$(hostname)" -addext "subjectAltName = DNS:$(hostname)"
|
||||||
-out /etc/ssl/certs/ssl-cert-snakeoil.pem
|
-out /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
@@ -229,4 +232,4 @@ Use: include "matomo.cronjobs.enabled" (dict "context" $ "cronjob" "archive" )
|
|||||||
{{- true -}}
|
{{- true -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -223,6 +223,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: matomo-data
|
- name: matomo-data
|
||||||
mountPath: /bitnami/matomo
|
mountPath: /bitnami/matomo
|
||||||
|
{{- if .Values.extraVolumeMounts }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 16 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if .Values.certificates.customCAs }}
|
{{- if .Values.certificates.customCAs }}
|
||||||
- name: etc-ssl-certs
|
- name: etc-ssl-certs
|
||||||
|
|||||||
Reference in New Issue
Block a user