kernl API
    Preparing search index...

    Interface SecretsProvider

    Where the shell keeps what must not be shown again: the passwords and keys of the services it signs in to for the person. It is one small contract so a host can put its own keeper behind it: a browser extension, a service running on the device, the platform's keychain in a native shell.

    Names are the shell's own, such as download:transmission:password; a provider keeps them apart from anything else it holds and never interprets them. Every method may reject with unavailable:secrets (the keeper cannot be reached) or denied:secrets (it, or the person, said no); a caller treats both as "not available now", never as "there is no secret". Identity keys are not kept here: they live in signers (SOUL opinion 1).

    interface SecretsProvider {
        description: SecretsDescription;
        delete(name: string): Promise<void>;
        get(name: string): Promise<string | undefined>;
        set(name: string, value: string): Promise<void>;
    }
    Index
    description: SecretsDescription
    • Forget the secret under a name; forgetting one that is not there succeeds.

      Parameters

      • name: string

      Returns Promise<void>

    • The secret under a name, or undefined when there is none.

      Parameters

      • name: string

      Returns Promise<string | undefined>

    • Keep a secret under a name, replacing any that was there.

      Parameters

      • name: string
      • value: string

      Returns Promise<void>