Files
cozystack/api
Andrei Kvapil 6c047a473d feat(mariadb)!: issue user passwords through the credentials API
Tenant passwords lived in <release>-credentials next to root, which
every use-tier member and every ancestor tenant could read, and which
had no platform path to rotation. The chart now renders a
CredentialTemplate per user and points each User at its account
Secret through passwordHashSecretKeyRef, so the database stores only
the mysql_native_password hash the API writes, and the watch label
makes mariadb-operator apply a mint at once.

The reference is there from a User's first reconcile, because a User
created without one is locked for good; with the Secret missing the
operator only reports the User not ready. root stays chart-generated in
<release>-credentials, since rootPasswordSecretKeyRef cannot change once
set, and that Secret is now platform-only: the definition excludes it
and the chart labels it tenantresource=false. Users mapping to one
account name are refused on every path. A users.<name>.password left in
values draws an admission warning that points at a mint on the user's
Credential instead of <release>-credentials.

BREAKING CHANGE: tenants can no longer read MariaDB passwords from
<release>-credentials; a password is obtained by a mint on the
account's Credential and is shown once.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-01 14:30:32 +01:00
..