fix: a credential store holds credentials of one kind, without a kind field in its entries, and the dialog edits several stores in tabs.
Release / release (push) Successful in 19s

This commit is contained in:
slawek committed 2026-10-28 20:57:45 +01:00
1 parent b0b7a4bb7f
commit 7959c90012
9 files changed
+319 -224

No files matched your search

+6 -5
View File
@@ -14,9 +14,11 @@ export type CredentialField = {
secret: boolean
}
/** A kind of credential, such as a database connection or a service principal, with its fields. */
/**
* The kind of the credentials of a store, such as a database connection or a service principal: a label for one
* credential and the fields of each. Every credential of a store is of its kind.
*/
export type CredentialKind = {
kind: string
label: string
fields: CredentialField[]
}
@@ -29,13 +31,12 @@ export type CredentialKind = {
export type CredentialProfile = {
original: string | null
name: string
kind: string
values: Record<string, string>
secrets: Record<string, string | null>
stored: Record<string, boolean>
}
/** The read answer of a credential store and of a write: its credentials, kinds and the names it does not allow. */
/** The read answer of a credential store and of a write: its credentials, its kind and the names it does not allow. */
export type CredentialsDocument = {
/** Identifies the content of config.json; a write sends it back and is refused with 409 when the file changed since. */
version: string
@@ -44,6 +45,6 @@ export type CredentialsDocument = {
path: string
/** Whether ENCRYPTION_KEY or ENCRYPTION_KEY_FILE gives the server a key, which a secret needs. */
encryption: boolean
kinds: CredentialKind[]
kind: CredentialKind
reserved: string[]
}