Skip to content

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

add folder id to versions in batch update

Maidul Islam77d47e071b15
diff --git a/backend/src/controllers/v2/secretsController.ts b/backend/src/controllers/v2/secretsController.ts
index 4da716c35b..76295967e4 100644
--- a/backend/src/controllers/v2/secretsController.ts
+++ b/backend/src/controllers/v2/secretsController.ts
@@ -218,6 +218,7 @@ export const batchSecrets = async (req: Request, res: Response) => {
algorithm: ALGORITHM_AES_256_GCM,
keyEncoding: ENCODING_SCHEME_UTF8,
tags: u.tags,
+ folder: u.folder
})
);
@@ -909,13 +910,13 @@ export const updateSecrets = async (req: Request, res: Response) => {
keyEncoding: ENCODING_SCHEME_UTF8,
tags,
...(secretCommentCiphertext !== undefined &&
- secretCommentIV &&
- secretCommentTag
+ secretCommentIV &&
+ secretCommentTag
? {
- secretCommentCiphertext,
- secretCommentIV,
- secretCommentTag,
- }
+ secretCommentCiphertext,
+ secretCommentIV,
+ secretCommentTag,
+ }
: {}),
},
},
diff --git a/backend/src/types/secret/index.d.ts b/backend/src/types/secret/index.d.ts
index bddd07e64f..deab73e955 100644
--- a/backend/src/types/secret/index.d.ts
+++ b/backend/src/types/secret/index.d.ts
@@ -43,4 +43,5 @@ export interface BatchSecret {
secretCommentIV: string;
secretCommentTag: string;
tags: string[];
+ folder: string
}