mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 15:11:47 +09:00
RabbitMQ passwords were generated at render time, kept with lookup and stored in a per-user Secret that every tenant tier could read, next to the operator's administrator in -default-user. The chart now renders a CredentialTemplate per user and points each User's importCredentialsSecret at the account Secret the credentials API mints into. messaging-topology-operator 1.20.2 watches that Secret and puts the password to the broker again on every change, so a mint applies without a Helm run. The operator hashes the password itself, so the account Secret holds the plaintext, as the design's wave 2 does; no tenant role reads it. The User objects keep their names, since a rename would make the operator delete and recreate the broker user. -default-user is a platform account: the ApplicationDefinition stops selecting it and excludes it instead. Tenants lose the administrator login and the per-user Secrets; users.<name>.password is no longer read, and a value left there draws an admission warning that points at a mint on the user's Credential. A user whose account name is longer than 63 characters, does not start and end with a letter or a digit, or is shared with another user is refused at render. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>