Skip to content

Commit 1225e7b

Browse files
chore: dependency updates (#83)
* fix: upgrade mlflow to 3.4.0 to address high-severity security vulnerabilities
1 parent 1a641a7 commit 1225e7b

14 files changed

+68
-70
lines changed

applications/mlflow/charts/infra/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.0
18+
version: 0.2.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

applications/mlflow/charts/infra/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ crdCheck:
66
# -- Image registry
77
registry: docker.io
88
# -- Image repository
9-
repository: bitnami/kubectl
9+
repository: bitnamilegacy/kubectl
1010
# -- Image tag
11-
tag: latest
11+
tag: "1.33.4-debian-12-r0"
1212
# -- CRDs to check
1313
crds:
1414
- name: tenants.minio.min.io
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: replicated
33
repository: oci://registry.replicated.com/library
4-
version: 1.5.1
5-
digest: sha256:743ca58f2dbfd1408d98b10e27b95f55f5dff2cfc3020e14c707822a5d0f88e0
6-
generated: "2025-04-16T12:26:22.509901-04:00"
4+
version: 1.8.0
5+
digest: sha256:3221c305cc2c7284ade24c125055434cd813f9107e05c36154668d2f7176055e
6+
generated: "2025-09-30T15:07:20.581924-05:00"

applications/mlflow/charts/mlflow/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: mlflow
33
description: A Helm chart for MLflow - Open source platform for the machine learning lifecycle.
44
type: application
5-
version: "0.4.0"
6-
appVersion: "2.10.0"
5+
version: "0.5.1"
6+
appVersion: "3.3.2"
77
home: https://github.com/mlflow/mlflow/tree/master/charts/mlflow
88
sources:
99
- https://github.com/mlflow/mlflow/tree/master/charts/mlflow

applications/mlflow/charts/mlflow/templates/deployment.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,15 @@ spec:
9393
{{- end }}
9494
{{- end }}
9595
initContainers:
96-
{{- if .Values.mlflow.trackingServer.basicAuth.enabled }}
97-
{{- if not .Values.mlflow.trackingServer.basicAuth.existingSecret }}
96+
{{- if .Values.postgres.embedded.enabled }}
9897
- name: wait-for-postgresql
99-
image: docker.io/bitnami/postgresql:15.3.0-debian-11-r0
100-
imagePullPolicy: {{ .Values.mlflow.image.pullPolicy }}
98+
image: "{{ .Values.postgres.backup.image.registry }}/{{ .Values.postgres.backup.image.repository }}:{{ .Values.postgres.backup.image.tag }}"
99+
imagePullPolicy: {{ .Values.postgres.backup.image.pullPolicy }}
101100
command: ["sh", "-c", "until PGPASSWORD=$POSTGRES_PASSWORD psql -U $POSTGRES_USER -h $POSTGRES_HOST -p 5432 -d $POSTGRES_DB -c 'SELECT 1'; do sleep 1; done;"]
102101
envFrom:
103102
- secretRef:
104103
name: {{ printf "%s-waitfor-postgres" (include "mlflow.fullname" .) | trunc 63 | trimAll "-" }}
105104
{{- end }}
106-
{{- end }}
107105
{{- if .Values.mlflow.backendStore.databaseUpgrade }}
108106
- name: mlflow-database-upgrade
109107
image: {{ .Values.mlflow.image.registry | default "docker.io" }}/{{ .Values.mlflow.image.repository }}:{{ .Values.mlflow.image.tag | default (printf "v%s" .Chart.AppVersion) }}
@@ -129,7 +127,7 @@ spec:
129127
name: {{ include "mlflow.fullname" . }}
130128
{{- end }}
131129
{{- with .Values.mlflow.extraInitContainers }}
132-
{{ toYaml . | nindent 8 }}
130+
{{ toYaml . | nindent 6 }}
133131
{{- end }}
134132
containers:
135133
- name: {{ include "mlflow.fullname" . }}
@@ -235,7 +233,7 @@ spec:
235233
{{- end }}
236234
{{- end }}
237235
{{- with .Values.mlflow.extraVolumes }}
238-
{{- toYaml . | nindent 8 }}
236+
{{- toYaml . | nindent 6 }}
239237
{{- end }}
240238
{{- with .Values.mlflow.hostAliases }}
241239
hostAliases:

applications/mlflow/charts/mlflow/templates/mlflow-auth-secret.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ stringData:
1919
basic_auth.ini: |
2020
[mlflow]
2121
default_permission = {{ .defaultPermission }}
22-
database_uri = {{ $dbUri }}
23-
admin_username = {{ .adminUsername | quote }}
24-
admin_password = {{ .adminPassword | quote }}
22+
database_uri = sqlite:////tmp/basic_auth.db
23+
admin_username = {{ .adminUsername }}
24+
admin_password = {{ .adminPassword }}
2525
authorization_function = {{ .authorizationFunction }}
2626
{{- end }}
2727
{{- end }}

applications/mlflow/charts/mlflow/templates/mlflow-waitfor-secret.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{{- if .Values.mlflow.trackingServer.basicAuth.enabled }}
2-
{{- if not .Values.mlflow.trackingServer.basicAuth.existingSecret }}
1+
{{- if .Values.postgres.embedded.enabled }}
32
apiVersion: v1
43
kind: Secret
54
metadata:
@@ -20,4 +19,3 @@ stringData:
2019
POSTGRES_DB: {{ .Values.postgres.embedded.initdb.database | quote }}
2120
{{- end }}
2221
{{- end }}
23-
{{- end }}

applications/mlflow/charts/mlflow/templates/postgres-backup-deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ spec:
2525
defaultMode: 0777
2626
initContainers:
2727
- name: wait-for-postgresql
28-
image: docker.io/bitnami/postgresql:15.3.0-debian-11-r0
29-
imagePullPolicy: {{ .Values.mlflow.image.pullPolicy }}
28+
image: "{{ .Values.postgres.backup.image.registry }}/{{ .Values.postgres.backup.image.repository }}:{{ .Values.postgres.backup.image.tag }}"
29+
imagePullPolicy: {{ .Values.postgres.backup.image.pullPolicy }}
3030
command:
3131
[
3232
"sh",
@@ -37,8 +37,8 @@ spec:
3737
- secretRef:
3838
name: {{ printf "%s-waitfor-postgres" (include "mlflow.fullname" .) | trunc 63 | trimAll "-" }}
3939
- name: restore-db
40-
image: docker.io/bitnami/postgresql:15.3.0-debian-11-r0
41-
imagePullPolicy: {{ .Values.mlflow.image.pullPolicy }}
40+
image: "{{ .Values.postgres.backup.image.registry }}/{{ .Values.postgres.backup.image.repository }}:{{ .Values.postgres.backup.image.tag }}"
41+
imagePullPolicy: {{ .Values.postgres.backup.image.pullPolicy }}
4242
command: ["/bin/sh", "/scripts/db-restore.sh"]
4343
envFrom:
4444
- secretRef:
@@ -50,7 +50,7 @@ spec:
5050
mountPath: /scripts
5151
containers:
5252
- name: sleep
53-
image: docker.io/bitnami/postgresql:15.3.0-debian-11-r0
53+
image: "{{ .Values.postgres.backup.image.registry }}/{{ .Values.postgres.backup.image.repository }}:{{ .Values.postgres.backup.image.tag }}"
5454
command: ["sh", "-c", "sleep infinity"]
5555
envFrom:
5656
- secretRef:

applications/mlflow/charts/mlflow/values.yaml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ mlflow:
3939
# -- Image registry
4040
registry: docker.io
4141
# -- Image repository
42-
repository: bitnami/mlflow
42+
repository: bitnamilegacy/mlflow
4343
# -- Image tag
44-
tag: 2.12.2-debian-12-r1
44+
tag: 3.3.2-debian-12-r0
4545
# -- Image pull policy
4646
pullPolicy: IfNotPresent
4747
# -- Pod Labels for the mlflow deployment
@@ -73,7 +73,7 @@ mlflow:
7373
# ENV_NAME_1: value
7474
# ENV_NAME_2: value
7575

76-
# Extra environment variables in mlflow container
76+
# Extra environment variables in mlflow container (not in init containers)
7777
container: []
7878
# - name: extra-env-name-1
7979
# value: extra-env-value-1
@@ -103,19 +103,9 @@ mlflow:
103103

104104
# -- Extra volumes that can be mounted by containers belonging to the mlflow pod
105105
extraVolumes: []
106-
# - name: mlflow-volume
107-
# persistentVolumeClaim:
108-
# name: mlflow-pvc
109-
# - name: mlflow-configmap-volume
110-
# configMap:
111-
# name: mlflow-configmap
112106

113107
# -- Extra volume mounts to mount into the mlflow container's file system
114108
extraVolumeMounts: []
115-
# - name: mlflow-volume
116-
# mountPath: /opt/mlflow
117-
# - name: mlflow-configmap-volume
118-
# mountPath: /etc/mlflow
119109

120110
# -- Use hostAliases to add custom entries to /etc/hosts - mapping IP addresses to hostnames.
121111
# [[ref]](https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/)
@@ -251,7 +241,7 @@ mlflow:
251241
# -- Number of gunicorn worker processes to handle requests
252242
workers: 1
253243
# -- Extra arguments passed to the `mlflow server` command
254-
extraArgs:
244+
extraArgs: []
255245
# A prefix which will be prepended to the path of all static paths
256246
# - --static-prefix TEXT
257247
# Additional command line options forwarded to gunicorn processes
@@ -260,14 +250,14 @@ mlflow:
260250
# - --waitress-opts TEXT
261251
# Path to the directory where metrics will be stored
262252
# - --expose-prometheus /metrics
263-
# If enabled, run the server with debug logging and auto-reload
264-
- --dev
253+
# Note: --dev flag cannot be used with --app-name in MLflow 3.x+
265254

266255
# Basic authentication configuration,
267256
# for more information, please visit https://mlflow.org/docs/latest/auth/index.html#configuration
257+
# NOTE: Basic auth is disabled due to compatibility issues with MLflow 3.x
268258
basicAuth:
269259
# -- Specifies whether to enable basic authentication
270-
enabled: true
260+
enabled: false
271261
# -- Name of an existing secret which contains key `basic_auth.ini`
272262
existingSecret: ""
273263
# If enables BasicAuth and no existing secret is specified, creates a secret to store authentication configurations
@@ -276,14 +266,15 @@ mlflow:
276266
defaultPermission: READ
277267
# -- Default admin username if the admin is not already created
278268
adminUsername: admin
279-
# -- Default admin password if the admin is not already created
280-
adminPassword: password
269+
# -- Default admin password if the admin is not already created (min 12 chars for MLflow 3.x)
270+
adminPassword: password123456
281271
# -- Function to authenticate requests
282272
authorizationFunction: mlflow.server.auth:authenticate_request_basic_auth
283273

284274
# For more information about how to configure backend store, please visit https://mlflow.org/docs/latest/tracking/backend-stores.html
285275
backendStore:
286276
# -- Specifies whether to run `mlflow db upgrade ${MLFLOW_BACKEND_STORE_URI}` to upgrade database schema when use a database as backend store
277+
# MLflow 3.x with basic auth will auto-create auth tables on first run
287278
databaseUpgrade: false
288279
# -- Name of an existing secret which contains key `MLFLOW_BACKEND_STORE_URI`
289280
# If an existing secret is not provided, a new secret will be created to store the backend store URI using the details from .Values.postgres when Embedded PostgreSQL is enabled
@@ -688,3 +679,16 @@ postgres:
688679
port: 5432
689680
# -- External Postgres database
690681
database: mlflow
682+
683+
# -- Postgres backup configuration
684+
backup:
685+
# -- Image details for the postgres backup deployment
686+
image:
687+
# -- Image registry
688+
registry: docker.io
689+
# -- Image repository
690+
repository: bitnamilegacy/postgresql
691+
# -- Image tag
692+
tag: "17.6.0-debian-12-r4"
693+
# -- Image pull policy
694+
pullPolicy: IfNotPresent

applications/mlflow/release/infra-chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
chart:
77
name: infra
8-
chartVersion: 0.2.0
8+
chartVersion: 0.2.1
99
exclude: 'repl{{ ConfigOptionEquals `postgres_type` `external_postgres` }}'
1010
weight: -10
1111
helmUpgradeFlags:
@@ -16,7 +16,7 @@ spec:
1616
crdCheck:
1717
image:
1818
registry: repl{{ HasLocalRegistry | ternary LocalRegistryHost "docker.io" }}
19-
repository: 'repl{{HasLocalRegistry | ternary LocalRegistryNamespace "bitnami" }}/kubectl'
19+
repository: 'repl{{HasLocalRegistry | ternary LocalRegistryNamespace "bitnamilegacy" }}/kubectl'
2020
cloudnative-pg:
2121
image:
2222
repository: '{{repl HasLocalRegistry | ternary LocalRegistryHost "ghcr.io" }}/{{repl HasLocalRegistry | ternary LocalRegistryNamespace "cloudnative-pg" }}/cloudnative-pg'

0 commit comments

Comments
 (0)