Files
cozystack/packages
Andrei Kvapil 0c66790a54 feat(dashboard): manage application credentials from the console
Converted applications no longer let tenants read their passwords from a
Secret: the API mints a password on request and shows it once. Without a
console path, tenants who only use the dashboard would have no way to
log in to a fresh database or to replace a migrated password.

The Credentials tab lists an application's accounts with where the live
password came from and its history, and offers mint and revoke behind a
confirmation. Every request carries the resourceVersion the user saw, so
a concurrent mint surfaces as a conflict instead of silently killing the
password someone else just received. Actions are gated on a
SelfSubjectAccessReview so viewers see the record without the buttons.

The Credential API serves no watch, so the tab polls, the one exception
to the console's no-polling rule besides the metrics panels. Mint and
revoke bypass the mutation hooks because React Query keeps a mutation's
result in its cache, and a minted password must live only in the
dialog's state. The console's agent notes record both, since either
would otherwise look like a mistake.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-25 10:41:01 +01:00
..