Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update hc-vault-connection-service.ts
Daniel Hougaardb192c1a6f979
diff --git a/backend/src/services/app-connection/hc-vault/hc-vault-connection-service.ts b/backend/src/services/app-connection/hc-vault/hc-vault-connection-service.tsindex 4318c7d206..3c02379f24 100644--- a/backend/src/services/app-connection/hc-vault/hc-vault-connection-service.ts+++ b/backend/src/services/app-connection/hc-vault/hc-vault-connection-service.ts@@ -2,6 +2,7 @@ import { TGatewayServiceFactory } from "@app/ee/services/gateway/gateway-serviceimport { TGatewayV2ServiceFactory } from "@app/ee/services/gateway-v2/gateway-v2-service";import { logger } from "@app/lib/logger";import { OrgServiceActor } from "@app/lib/types";+import { KvVersion } from "@app/services/external-migration/external-migration-types";import { AppConnection } from "../app-connection-enums";import { listHCVaultMounts } from "./hc-vault-connection-fns";@@ -25,7 +26,7 @@ export const hcVaultConnectionService = (const mounts = await listHCVaultMounts(appConnection, gatewayService, gatewayV2Service);// Filter for KV version 2 mounts only and extract just the pathsreturn mounts- .filter((mount) => mount.type === "kv" && (mount.version === "2" || mount.version === "1"))+ .filter((mount) => mount.type === "kv" && (mount.version === KvVersion.V2 || mount.version === KvVersion.V1)).map((mount) => mount.path);} catch (error) {logger.error(error, "Failed to establish connection with Hashicorp Vault");