games_app/backend/dist-test-faq/services/encryptionRotationService.d.ts

16 lines
607 B
TypeScript

/**
* Re-encrypts database ciphertext with the current ENCRYPTION_KEY.
* Set ENCRYPTION_KEY_PREVIOUS to the old key before running so decrypt() can read legacy rows.
*/
export type RotationStats = {
users: number;
hotWallets: number;
securityAlerts: number;
adminNotifications: number;
ledgerAdjustments: number;
fundOperationErrors: number;
exchangeFundingNotes: number;
};
/** Re-encrypts all application-managed secrets with ENCRYPTION_KEY. */
export declare function rotateAllEncryptedData(): Promise<RotationStats>;
//# sourceMappingURL=encryptionRotationService.d.ts.map