Skip to content

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

dedupe secret paths

adilson26a79e6c2a2c
diff --git a/backend/src/services/external-migration/external-migration-service.ts b/backend/src/services/external-migration/external-migration-service.ts
index 8b9a04b7c1..72e2c25bfe 100644
--- a/backend/src/services/external-migration/external-migration-service.ts
+++ b/backend/src/services/external-migration/external-migration-service.ts
@@ -639,9 +639,11 @@ export const externalMigrationServiceFactory = ({
throw new BadRequestError({ message: "At least one Vault secret path is required" });
}
+ const uniqueVaultSecretPaths = Array.from(new Set(vaultSecretPaths));
+
const secretsPerPath = await getHCVaultSecretsForPaths(
vaultNamespace,
- vaultSecretPaths,
+ uniqueVaultSecretPaths,
connection,
gatewayService,
gatewayV2Service