Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

bound projectId on the restore and permanent delete routes

DimitrisStaratzisf42e2c377939
diff --git a/backend/src/server/routes/v1/project-router.ts b/backend/src/server/routes/v1/project-router.ts
index 9248005a17..61e0e0a65d 100644
--- a/backend/src/server/routes/v1/project-router.ts
+++ b/backend/src/server/routes/v1/project-router.ts
@@ -569,7 +569,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
}
],
params: z.object({
- projectId: z.string().trim().describe(PROJECTS.PERMANENTLY_DELETE.projectId)
+ projectId: z.string().trim().max(36).describe(PROJECTS.PERMANENTLY_DELETE.projectId)
}),
response: {
200: z.object({
@@ -623,7 +623,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
}
],
params: z.object({
- projectId: z.string().trim().describe(PROJECTS.RESTORE.projectId)
+ projectId: z.string().trim().max(36).describe(PROJECTS.RESTORE.projectId)
}),
response: {
200: z.object({