feat: added api for admin and org gateway management

This commit is contained in:
=
2025-02-26 20:45:36 +05:30
parent 617aa2f533
commit 84c534ef70
25 changed files with 1053 additions and 11 deletions
+7 -5
View File
@@ -2,11 +2,13 @@ import { Redis } from "ioredis";
import { Redlock, Settings } from "@app/lib/red-lock";
export enum PgSqlLock {
BootUpMigration = 2023,
SuperAdminInit = 2024,
KmsRootKeyInit = 2025
}
export const PgSqlLock = {
BootUpMigration: 2023,
SuperAdminInit: 2024,
KmsRootKeyInit: 2025,
OrgGatewayRootCaInit: (orgId: string) => `org-gateway-root-ca:${orgId}`,
OrgGatewayCertExchange: (orgId: string) => `org-gateway-cert-exchange:${orgId}`
} as const;
export type TKeyStoreFactory = ReturnType<typeof keyStoreFactory>;