Skip to content

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

add tags support in secret imports

Maidul Islama1f08b064e82
diff --git a/backend/src/services/SecretImportService.ts b/backend/src/services/SecretImportService.ts
index 56c6006101..8892cdb316 100644
--- a/backend/src/services/SecretImportService.ts
+++ b/backend/src/services/SecretImportService.ts
@@ -54,6 +54,14 @@ export const getAllImportedSecrets = async (
type: "shared"
}
},
+ {
+ $lookup: {
+ from: "tags", // note this is the name of the collection in the database, not the Mongoose model name
+ localField: "tags",
+ foreignField: "_id",
+ as: "tags"
+ }
+ },
{
$group: {
_id: {