iya-sts
    Preparing search index...

    Variable current

    current: (
        spec: any,
    ) =>
        | {
            describe: (spec: any) => { from: string; shared: true };
            id: string;
            label: string;
            read: (spec: any) => any;
        }
        | {
            describe: (spec: any) => { from: string; wraps: string };
            id: string;
            label: string;
            read: (
                spec: any,
            ) => Promise<
                {
                    isStale: (text: any) => boolean;
                    keyRef: string;
                    label: string;
                    owns: (text: any) => boolean;
                    provider: string;
                    remote: boolean;
                    rotate: () => Promise<{ version: string }>;
                    unwrap: (text: any, aad: any) => Promise<any>;
                    wrap: (dek: any, aad: any) => Promise<string>;
                },
            >;
            remote: boolean;
        } = current

    Type Declaration

      • (
            spec: any,
        ):
            | {
                describe: (spec: any) => { from: string; shared: true };
                id: string;
                label: string;
                read: (spec: any) => any;
            }
            | {
                describe: (spec: any) => { from: string; wraps: string };
                id: string;
                label: string;
                read: (
                    spec: any,
                ) => Promise<
                    {
                        isStale: (text: any) => boolean;
                        keyRef: string;
                        label: string;
                        owns: (text: any) => boolean;
                        provider: string;
                        remote: boolean;
                        rotate: () => Promise<{ version: string }>;
                        unwrap: (text: any, aad: any) => Promise<any>;
                        wrap: (dek: any, aad: any) => Promise<string>;
                    },
                >;
                remote: boolean;
            }
      • Answers the provider configured for a secret, read from its setting on every call.

        Parameters

        • spec: any

          the secret's descriptor; the key-encryption key's when absent

        Returns
            | {
                describe: (spec: any) => { from: string; shared: true };
                id: string;
                label: string;
                read: (spec: any) => any;
            }
            | {
                describe: (spec: any) => { from: string; wraps: string };
                id: string;
                label: string;
                read: (
                    spec: any,
                ) => Promise<
                    {
                        isStale: (text: any) => boolean;
                        keyRef: string;
                        label: string;
                        owns: (text: any) => boolean;
                        provider: string;
                        remote: boolean;
                        rotate: () => Promise<{ version: string }>;
                        unwrap: (text: any, aad: any) => Promise<any>;
                        wrap: (dek: any, aad: any) => Promise<string>;
                    },
                >;
                remote: boolean;
            }

        the provider, or null when the setting names none