Skip to content

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

improvement: reduce json max size limit based of aws policy limit

Scott Wilsonbd99b4e35691
diff --git a/backend/src/ee/routes/v1/project-template-router.ts b/backend/src/ee/routes/v1/project-template-router.ts
index 611eab7abf..5b115ab4ec 100644
--- a/backend/src/ee/routes/v1/project-template-router.ts
+++ b/backend/src/ee/routes/v1/project-template-router.ts
@@ -12,7 +12,7 @@ import { verifyAuth } from "@app/server/plugins/auth/verify-auth";
import { UnpackedPermissionSchema } from "@app/server/routes/santizedSchemas/permission";
import { AuthMode } from "@app/services/auth/auth-type";
-const MAX_JSON_SIZE_LIMIT_IN_BYTES = 1_048_576; // 1MB
+const MAX_JSON_SIZE_LIMIT_IN_BYTES = 32_768;
const SlugSchema = z
.string()