iya-sts
    Preparing search index...

    Variable rotateEncryptionKeys

    rotateEncryptionKeys: (
        realmId: any,
        kinds: any,
        overlapMs: any,
        why: any,
    ) => Promise<
        { generation: number; ok: boolean; rotated: any[]; why: string },
    > = rotateEncryptionKeys

    Type Declaration

      • (
            realmId: any,
            kinds: any,
            overlapMs: any,
            why: any,
        ): Promise<{ generation: number; ok: boolean; rotated: any[]; why: string }>
      • Replaces a realm's request-decryption keys of the kinds named, the new ones made off the event loop; each key replaced is retired, kept only to decrypt until overlapMs has passed.

        Parameters

        • realmId: any

          the realm

        • kinds: any

          a subset of ENCRYPTION_KEY_KINDS

        • overlapMs: any

          how long a replaced key still decrypts

        • why: any

          the reason, for the log

        Returns Promise<{ generation: number; ok: boolean; rotated: any[]; why: string }>

        a promise of { ok, why, generation, rotated: [{ kind, from, to }] }