mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
An application write in the Cozystack API that kept an account list, its Secrets and the HelmRelease in step needed a cross-replica lock and still raced. The accepted design (cozystack/community#137) moves the account list to the chart instead: a kind's chart renders one cozystack.io CredentialTemplate per account, naming the user, the stored format and the Secret's labels, and its status mirrors the account Secret's record so the Credential view reads templates only. Tenants cannot write a template, and username is immutable because the account Secret's name derives from it. valuesPath starts with "_" so the Application API hides it on read and refuses it on write. Design: https://github.com/cozystack/community/blob/main/design-proposals/user-secrets-api/README.md Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>