From 041fac7f4271e6109b3a200d5e85e7b6d8a00eb8 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Fri, 11 Apr 2025 21:58:21 +0400 Subject: [PATCH] Update signing-fns.ts --- backend/src/lib/crypto/sign/signing-fns.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/lib/crypto/sign/signing-fns.ts b/backend/src/lib/crypto/sign/signing-fns.ts index 40257d5ab..0093c763e 100644 --- a/backend/src/lib/crypto/sign/signing-fns.ts +++ b/backend/src/lib/crypto/sign/signing-fns.ts @@ -5,11 +5,11 @@ import path from "path"; import { logger } from "@app/lib/logger"; -const baseDir = path.join(os.tmpdir(), "temporary-signing"); -const randomPath = () => `${crypto.randomBytes(32).toString("hex")}-`; +const baseDir = path.join(os.tmpdir(), "infisical"); +const randomPath = () => `${crypto.randomBytes(64).toString("hex")}`; export const createTemporaryDirectory = async (name: string) => { - const tempDirPath = path.join(baseDir, `${name}-${randomPath()}-${randomPath()}`); + const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`); await fs.mkdir(tempDirPath, { recursive: true }); return tempDirPath;