mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +09:00
Existing MariaDB releases must keep their clients logging in while the chart switches the Users to account Secrets. The pre-upgrade hook writes those Secrets from the passwords in <release>-credentials, hashed, and marks a fully converted release for seeding; the finish Job then removes the tenant keys from that Secret once the converted chart is Ready, keeping root, the platform's own account. The finish Job and its least-privilege identity get names of their own, so this hook cannot delete the ServiceAccount of migration 64's Job while that one still runs. root is not rotated here: the operator, the server pods' environment and their probes all read it, and an ALTER USER without a coordinated restart fails the probes. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>