Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: regenerate DB schemas and rename Deploy to Create Gateway
bernie-g32876a8fc007
diff --git a/backend/src/db/schemas/gateway-enrollment-tokens.ts b/backend/src/db/schemas/gateway-enrollment-tokens.tsindex d88067ea2e..032ef42ddc 100644--- a/backend/src/db/schemas/gateway-enrollment-tokens.ts+++ b/backend/src/db/schemas/gateway-enrollment-tokens.ts@@ -9,14 +9,14 @@ import { TImmutableDBKeys } from "./models";export const GatewayEnrollmentTokensSchema = z.object({id: z.string().uuid(),- createdAt: z.date(),- updatedAt: z.date(),orgId: z.string().uuid(),name: z.string(),tokenHash: z.string(),- ttl: z.number().int(),+ ttl: z.number().default(3600),expiresAt: z.date(),usedAt: z.date().nullable().optional(),+ createdAt: z.date(),+ updatedAt: z.date(),gatewayId: z.string().uuid().nullable().optional()});diff --git a/backend/src/db/schemas/gateways-v2.ts b/backend/src/db/schemas/gateways-v2.tsindex a770be68d3..cd1d69fd13 100644--- a/backend/src/db/schemas/gateways-v2.ts+++ b/backend/src/db/schemas/gateways-v2.ts@@ -17,11 +17,11 @@ export const GatewaysV2Schema = z.object({identityId: z.string().uuid().nullable().optional(),relayId: z.string().uuid().nullable().optional(),name: z.string(),- tokenVersion: z.number().default(1),heartbeat: z.date().nullable().optional(),encryptedPamSessionKey: zodBuffer.nullable().optional(),healthAlertedAt: z.date().nullable().optional(),- lastHealthCheckStatus: z.string().nullable().optional()+ lastHealthCheckStatus: z.string().nullable().optional(),+ tokenVersion: z.number().default(1)});export type TGatewaysV2 = z.infer<typeof GatewaysV2Schema>;diff --git a/backend/src/db/schemas/index.ts b/backend/src/db/schemas/index.tsindex 15af09ffd0..0244527913 100644--- a/backend/src/db/schemas/index.ts+++ b/backend/src/db/schemas/index.ts@@ -51,9 +51,9 @@ export * from "./folder-commit-changes";export * from "./folder-commits";export * from "./folder-tree-checkpoint-resources";export * from "./folder-tree-checkpoints";+export * from "./gateway-enrollment-tokens";export * from "./gateways";export * from "./gateways-v2";-export * from "./gateway-enrollment-tokens";export * from "./git-app-install-sessions";export * from "./git-app-org";export * from "./github-org-sync-configs";diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsxindex 1ec8eceaef..1684aee8c5 100644--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx@@ -228,7 +228,7 @@ export const GatewayTab = withPermission(onClick={() => handlePopUpOpen("deployGateway")}isDisabled={!isAllowed}>- Deploy Gateway+ Create Gateway</Button>)}</OrgPermissionCan>diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayDeployModal.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayDeployModal.tsxindex dacd08e749..2c6fa1f0c0 100644--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayDeployModal.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayDeployModal.tsx@@ -36,7 +36,7 @@ export const GatewayDeployModal = ({ isOpen, onOpenChange }: Props) => {<Modal isOpen={isOpen} onOpenChange={onOpenChange}><ModalContentclassName="max-w-2xl"- title="Deploy Gateway"+ title="Create Gateway"subTitle="Select a deployment method to use for the gateway."bodyClassName="overflow-visible">