Skip to content

Commit 294c752

Browse files
committed
support custom CA certificate in the chart
1 parent 6937592 commit 294c752

File tree

6 files changed

+71
-12
lines changed

6 files changed

+71
-12
lines changed

CHANGELOG.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226

227227

228228
<a name="v3.24.0"></a>
229-
## [v3.24.0](https://github.com/lightrun-platform/lightrun-helm-chart/compare/v3.23.7...v3.24.0) - 2025-08-11
229+
## [v3.24.0](https://github.com/lightrun-platform/lightrun-helm-chart/compare/v3.23.8...v3.24.0) - 2025-08-11
230230

231231

232232

@@ -266,6 +266,40 @@
266266

267267

268268

269+
<a name="v3.23.8"></a>
270+
## [v3.23.8](https://github.com/lightrun-platform/lightrun-helm-chart/compare/v3.23.7...v3.23.8) - 2025-09-17
271+
272+
273+
274+
### Versions
275+
276+
| Image | Tag |
277+
|---------------|------------------------------|
278+
| artifacts | 1.64.6-release.d47d361a70 |
279+
| backend | 1.64.6-release.d47d361a70 |
280+
| crons | 1.64.6-release.d47d361a70 |
281+
| data_streamer | 4.56.0-alpine-3.22.0-r0.lr-0 |
282+
| frontend | 1.64.6-release.d47d361a70 |
283+
| keycloak | 1.64.6-release.d47d361a70 |
284+
| mysql | 8.0.38 |
285+
| rabbitmq | 4.0.9-alpine-3.22.0-r0.lr-0 |
286+
| redis | 7.2.10-alpine-3.22.0-r0.lr-1 |
287+
| router | 1.28.0-alpine-3.22.0-r0.lr-1 |
288+
289+
290+
291+
292+
### Fixed (1 change)
293+
294+
- [`router`-and-`chart-helper`-tags-to-resolve-CVE (#136) (#137)](https://github.com/lightrun-platform/lightrun-helm-chart/commit/53d29f5)
295+
296+
297+
298+
299+
300+
301+
302+
269303
<a name="v3.23.7"></a>
270304
## [v3.23.7](https://github.com/lightrun-platform/lightrun-helm-chart/compare/v3.23.6...v3.23.7) - 2025-09-11
271305

chart/templates/helpers/_helpers.tpl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ Usage:
460460
{{- end -}}
461461
{{- end -}}
462462

463-
464463
{{- define "secrets.certificate.name" -}}
465464
{{- if .Values.certificate.existing_cert -}}
466465
{{ .Values.certificate.existing_cert }}
@@ -509,6 +508,10 @@ Usage:
509508
{{- end -}}
510509
{{- end -}}
511510

511+
{{- define "secrets.custom_ca_certificate.name" -}}
512+
{{ include "lightrun.fullname" . }}-custom-ca-certificate
513+
{{- end -}}
514+
512515

513516
{{/*
514517
#####################
@@ -898,5 +901,3 @@ Usage: {{ include "lightrun.datadogAnnotations" (dict "serviceName" "lightrun-be
898901
}
899902
{{- end }}
900903
{{- end }}
901-
902-

chart/templates/keycloak-statefulset.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
.Values.general.internal_tls.enabled
113113
.Values.deployments.keycloak.extraVolumeMounts
114114
.Values.deployments.keycloak.asyncProfiler.enabled
115+
.Values.secrets.customCaCertificate
115116
}}
116117
volumeMounts:
117118
{{- include "lightrun-keycloak.volumeMounts.asyncProfiler" . | nindent 12 }}
@@ -127,6 +128,11 @@ spec:
127128
mountPath: /opt
128129
subPath: opt
129130
{{- end }}
131+
{{- if .Values.secrets.customCaCertificate }}
132+
- name: custom-ca-certificate
133+
mountPath: /opt/keycloak/conf/truststores
134+
readOnly: true
135+
{{- end }}
130136
{{- if .Values.general.internal_tls.enabled }}
131137
- name: internal-cert
132138
mountPath: /etc/x509/https/
@@ -356,6 +362,7 @@ spec:
356362
.Values.general.internal_tls.enabled
357363
.Values.deployments.keycloak.extraVolumes
358364
.Values.deployments.keycloak.asyncProfiler.enabled
365+
.Values.secrets.customCaCertificate
359366
}}
360367
volumes:
361368
{{- include "lightrun-keycloak.volumes.asyncProfiler" . | nindent 8 }}
@@ -368,6 +375,11 @@ spec:
368375
emptyDir:
369376
sizeLimit: {{ .Values.general.readOnlyRootFilesystem_tmpfs_sizeLimit }}
370377
{{ end }}
378+
{{- if .Values.secrets.customCaCertificate }}
379+
- name: custom-ca-certificate
380+
secret:
381+
secretName: {{ include "secrets.custom_ca_certificate.name" . }}
382+
{{ end }}
371383
{{- if .Values.general.internal_tls.enabled }}
372384
- name: internal-cert
373385
secret:

chart/templates/secrets.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,15 @@ stringData:
8989
KEYCLOAK_USER: admin
9090
KEYCLOAK_PASSWORD: {{ .Values.secrets.keycloak.password | quote }}
9191
DB_USER: {{ .Values.secrets.db.user | quote }}
92-
DB_PASSWORD: {{ .Values.secrets.db.password | quote}}
92+
DB_PASSWORD: {{ .Values.secrets.db.password | quote }}
93+
---
94+
{{ if .Values.secrets.customCaCertificate }}
95+
kind: Secret
96+
apiVersion: v1
97+
metadata:
98+
name: {{ include "secrets.custom_ca_certificate.name" . }}
99+
type: Opaque
100+
data:
101+
custom-ca.pem: {{ .Values.secrets.customCaCertificate }}
102+
{{ end }}
93103
{{ end }}

chart/values.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ secrets:
478478
# redis authentication.
479479
# requires to enable auth in deployments.redis.auth.enabled by set to true
480480
password: ""
481+
customCaCertificate: ""
481482
license:
482483
content: ""
483484
signature: ""
@@ -617,17 +618,17 @@ deployments:
617618
wait_for_keycloak:
618619
image:
619620
repository: lightruncom/chart-helper
620-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
621+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
621622
pullPolicy: ""
622623
p12_creator:
623624
image:
624625
repository: lightruncom/chart-helper
625-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
626+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
626627
pullPolicy: ""
627628
wait_for_rabbitmq:
628629
image:
629630
repository: lightruncom/chart-helper
630-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
631+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
631632
pullPolicy: ""
632633
podDisruptionBudget: {} # [minAvailable|maxUnavailable] either integer or percentage
633634
topologySpreadConstraints: []
@@ -771,12 +772,12 @@ deployments:
771772
cluster_cert:
772773
image:
773774
repository: lightruncom/chart-helper
774-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
775+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
775776
pullPolicy: ""
776777
wait_for_rabbitmq:
777778
image:
778779
repository: lightruncom/chart-helper
779-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
780+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
780781
pullPolicy: ""
781782
topologySpreadConstraints: []
782783
affinity: {}
@@ -938,7 +939,7 @@ deployments:
938939
memory: 128Mi
939940
image:
940941
repository: lightruncom/chart-helper
941-
tag: "0.3.0-alpine-3.22.0-r0.lr-0"
942+
tag: "0.3.0-alpine-3.22.0-r0.lr-1"
942943
pullPolicy: ""
943944
# EmptyDir is used for rabbitmq data when mq.storage is set to 0
944945
emptyDir:
@@ -1061,7 +1062,7 @@ deployments:
10611062
maxReplicas: 5
10621063
image:
10631064
repository: lightruncom/router
1064-
tag: "1.28.0-alpine-3.22.0-r0.lr-0"
1065+
tag: "1.28.0-alpine-3.22.0-r0.lr-1"
10651066
pullPolicy: IfNotPresent
10661067
podSecurityContext: {}
10671068
containerSecurityContext: {}

docs/installation/versions_mapping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| 3.25.0 | 1.66.0-release.4f92d4c5d0 |
99
| 3.24.1 | 1.65.1-release.3b872fa607 |
1010
| 3.24.0 | 1.65.0-release.dbbc13e864 |
11+
| 3.23.8 | 1.64.6-release.d47d361a70 |
1112
| 3.23.7 | 1.64.5-release.60958a9009 |
1213
| 3.23.6 | 1.64.4-release.4d96a911d1 |
1314
| 3.23.5 | 1.64.4-release.4d96a911d1 |

0 commit comments

Comments
 (0)