Skip to content

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

Update files.ts

Daniel Hougaard65f78c556fe3
diff --git a/backend/src/lib/files/files.ts b/backend/src/lib/files/files.ts
index 0093c763eb..063d71d09a 100644
--- a/backend/src/lib/files/files.ts
+++ b/backend/src/lib/files/files.ts
@@ -6,7 +6,7 @@ import path from "path";
import { logger } from "@app/lib/logger";
const baseDir = path.join(os.tmpdir(), "infisical");
-const randomPath = () => `${crypto.randomBytes(64).toString("hex")}`;
+const randomPath = () => `${crypto.randomBytes(32).toString("hex")}`;
export const createTemporaryDirectory = async (name: string) => {
const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`);