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
fix(gateway): enforce slug schema on v3 gateway name
bernie-g84d3958c3250
diff --git a/backend/src/ee/routes/v3/gateway-router.ts b/backend/src/ee/routes/v3/gateway-router.tsindex bd99a23756..7bf0004063 100644--- a/backend/src/ee/routes/v3/gateway-router.ts+++ b/backend/src/ee/routes/v3/gateway-router.ts@@ -8,6 +8,7 @@ import { ApiDocsTags, GATEWAYS } from "@app/lib/api-docs";import { UnauthorizedError } from "@app/lib/errors";import { logger } from "@app/lib/logger";import { readLimit, writeLimit } from "@app/server/config/rateLimiter";+import { slugSchema } from "@app/server/lib/schemas";import { getTelemetryDistinctId } from "@app/server/lib/telemetry";import { verifyAuth } from "@app/server/plugins/auth/verify-auth";import { ActorType, AuthMode } from "@app/services/auth/auth-type";@@ -88,7 +89,7 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {operationId: "createGateway",tags: [ApiDocsTags.GatewaysV3],body: z.object({- name: z.string().trim().min(1).max(64).describe(GATEWAYS.CREATE.name),+ name: slugSchema({ field: "name" }).describe(GATEWAYS.CREATE.name),authMethod: SettableAuthMethodInputSchema.describe(GATEWAYS.CREATE.authMethod)}),response: {