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
Answers the provider configured for a secret, read from its setting on every call.