Files
cozystack/pkg
IvanHunters 4772b8e760 fix(credentials): close two concurrent-update account-Secret races
seedBeforeUpdate seeded a renamed account before the release write, so a rename that changed only the case of a user name replaced the live account's Secret with a new password and lost it if the write then failed; it now refuses such a rename, since the live account is not actually gone. pruneAfterUpdate deleted Secrets by the request's account list, so a concurrent update that re-added an account and wrote it back had its Secret pruned from under the live release; prune now reads the live release uncached and keeps the accounts it declares.

Assisted-by: LLM
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
2026-11-18 08:56:38 +03:00
..