Skip to content

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

fix: pass whether the vault migration config is using a gateway or not

Scott Wilson44df2e553e0a
diff --git a/backend/src/services/external-migration/external-migration-fns/vault.ts b/backend/src/services/external-migration/external-migration-fns/vault.ts
index 6e32be9075..8798e049db 100644
--- a/backend/src/services/external-migration/external-migration-fns/vault.ts
+++ b/backend/src/services/external-migration/external-migration-fns/vault.ts
@@ -563,7 +563,7 @@ export const importVaultDataFn = async (
gatewayV2Service: Pick<TGatewayV2ServiceFactory, "getPlatformConnectionDetailsByGatewayId">;
}
) => {
- await blockLocalAndPrivateIpAddresses(vaultUrl);
+ await blockLocalAndPrivateIpAddresses(vaultUrl, Boolean(gatewayId));
if (mappingType === VaultMappingType.Namespace && !vaultNamespace) {
throw new BadRequestError({