iya-sts
    Preparing search index...
    check: (
        given: Record<string, any>,
        selfDn?: string,
    ) =>
        | Refusal
        | {
            destination: string;
            ok: true;
            owners: ServiceAccountOwner[];
            secretName: string;
        } = ...

    Type Declaration

      • (
            given: Record<string, any>,
            selfDn?: string,
        ):
            | Refusal
            | {
                destination: string;
                ok: true;
                owners: ServiceAccountOwner[];
                secretName: string;
            }
      • Checks what would make an entry a service account, without writing: the owners (each a person or a group in this realm, never selfDn; at most MAX_OWNERS; at least one while the policy's requireOwner is on), and the destination with the secret's name, both or neither. Asked by set(), and by the console's and the API's create BEFORE the person exists, so a refused account is never left behind as an ordinary person.

        Parameters

        • given: Record<string, any>

          owners (an array, or one per line), destination, secretName

        • OptionalselfDn: string

          the account's own DN, or '' for one not created yet

        Returns
            | Refusal
            | {
                destination: string;
                ok: true;
                owners: ServiceAccountOwner[];
                secretName: string;
            }

        { ok: true, owners, destination, secretName }, or a refusal