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
improvement: add slug validation on the params
adilsoncf6deaf977bf
diff --git a/backend/src/server/routes/v1/project-env-router.ts b/backend/src/server/routes/v1/project-env-router.tsindex b4d07e5568..de992e9135 100644--- a/backend/src/server/routes/v1/project-env-router.ts+++ b/backend/src/server/routes/v1/project-env-router.ts@@ -82,7 +82,7 @@ export const registerProjectEnvRouter = async (server: FastifyZodProvider) => {],params: z.object({projectId: z.string().trim().uuid().describe(ENVIRONMENTS.GET_BY_SLUG.projectId),- envSlug: z.string().trim().describe(ENVIRONMENTS.GET_BY_SLUG.slug)+ envSlug: slugSchema({ max: 64 }).describe(ENVIRONMENTS.GET_BY_SLUG.slug)}),response: {200: z.object({