Files
cozystack/cmd
Andrei Kvapil e1880c5a00 feat(credentials-migrate): reserved users, values path and rotation
ClickHouse is the first kind whose operator reads no Secret and which
keeps a platform account next to its tenant ones, and three things it
needs are not specific to it.

A tenant user under a name the converted chart refuses (the platform
backup account, the engine's default user) makes the release
unresolvable, so it is left out instead of converted in part.

The CredentialTemplate controller adds the valuesFrom entries of a
valuesPath kind only after the converted chart has rendered its
templates, so that first render would carry no stored value and the
chart would drop every tenant account from the engine until the next
upgrade. The hook now adds the same entries ahead of the switch; the
old chart ignores the values they fill.

finish rotates the platform passwords tenants could read once, with
the release suspended, then forces an upgrade so the chart applies
them, and records the rotation on the source Secret so a rerun does not
rotate twice.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-01 14:30:31 +01:00
..
2026-02-04 15:50:23 +03:00