Skip to content

mariadb: the deprecated backup CronJob reads a root password Secret that is never created #4045

Description

The deprecated backup.* CronJob in packages/apps/mariadb/templates/backup-cronjob.yaml reads MYSQL_PWD from a Secret that does not exist:

secretKeyRef:
  name: {{ .Release.Name }}
  key: root-password

The chart renders the credentials into {{ .Release.Name }}-credentials (templates/secret.yaml) and points the MariaDB CR at it with rootPasswordSecretKeyRef: {name: <release>-credentials, key: root}; neither the chart nor mariadb-operator creates a Secret named <release>. Every backup pod therefore sits in CreateContainerConfigError and no scheduled dump has run on this path since the credentials layout changed. The values.yaml comment keeps the block for backward compatibility and points new deployments at the operator-native backup strategy.

Two ways out, and the choice is a product decision rather than a code one: fix the reference (<release>-credentials / root), which silently starts scheduled dumps on every instance that still has backup.enabled set; or remove the CronJob path and fail loudly when backup.enabled is set, pointing at the operator-native path. Leaving it as it is means a setting that reads as working and does nothing.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)
    on Sep 2, 2026
  2. lexfrei commented on Sep 3, 2026

    @lexfrei
    ContributorAuthor

    Duplicate of #3347, filed in July and missed when writing this one. Closing in favour of the older issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)kind/bugCategorizes issue or PR as related to a bugtriage/needs-triageIndicates an issue needs triage by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions