Commit Graph
1 Commits
Author SHA1 Message Date
Andrei Kvapil 6b7694a3ef feat(credentials-migrate): read per-account sources and hide Secrets
Some charts keep one generated Secret per account, holding username and
password, instead of one Secret keyed by username. RabbitMQ does, under
names derived with sprig's kebabcase. --source-selector finds those
Secrets by label and by the Helm release that rendered them, so the CLI
does not re-implement the chart's name mapping, and retires them once
the chart has switched. It is the second way to locate the per-account
sources --source-per-account finds by name, so it shares --source-key
for the password key and the same retire path, and the two are mutually
exclusive.

A platform account can also live in a Secret no chart renders, such as
the -default-user Secret the RabbitMQ cluster operator creates. The
lineage webhook stamped its visibility at admission, so dropping it from
the ApplicationDefinition does not hide it. --hide-secret-suffix labels
it not tenant-visible in finish, but only once the definition in the API
excludes it, and waits for that within the Job's timeout. An operator's
rewrite replaces the Secret's labels, and the webhook then stamps it
from the definition it sees; the cluster operator's first pass after an
upgrade rewrites it before rabbitmq-rd upgrades, so a label written
earlier would be undone and the administrator's Secret readable again.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-02 20:38:09 +01:00