Skip to content

mariadb: users.*.password is required, unlike postgres and mongodb which generate one #3395

Closed

Description

The mariadb values schema marks password required for every entry under users, so a user without a password fails helm validation:

- at '/users/app': missing property 'password'

Postgres and mongodb take the opposite approach — password is optional and the chart generates one when it's absent.

This breaks any flow built on platform-generated credentials: the caller declares a user and reads the generated password back from the credentials secret. Works for postgres/mongodb, fails for mariadb.

Suggested fix: make password optional and generate it the way the sibling charts do.

Activity

  1. dosubot commented on Jul 21, 2026

    @dosubot

    This looks like a valid inconsistency. The MariaDB values schema explicitly marks password as required for user entries [1], while both PostgreSQL [2] and MongoDB [3] leave it optional — MongoDB even documents it as "(auto-generated if omitted)".

    Interestingly, MariaDB's secret.yaml template already has the auto-generation logic to handle missing passwords [4]:

    {{- if $u.password }}
        {{- $_ := set $passwords $user $u.password }}
    {{- else if not (index $passwords $user) }}
        {{- $_ := set $passwords $user (randAlphaNum 16) }}
    {{- end }}

    So the template is ready to generate passwords when omitted — the schema's required constraint is just preventing that code path from ever being reached. The fix should be straightforward: remove "password" from the required array in the MariaDB values schema.

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about cozystack with Dosu Add Dosu to your team

  2. pranav767 commented on Jul 29, 2026

    @pranav767

    I'd like to work on this issue.

  3. 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)
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 2026
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 bugpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to completetriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions