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
address comments
adilson38ab5fb3a7ef
diff --git a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.tsindex 8895ef59c2..62dbebf73d 100644--- a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts+++ b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts@@ -692,12 +692,12 @@ export const listHCVaultMounts = async (let data: THCVaultMountResponse;try {({ data } = await fetchMounts(targetNamespace));- } catch (error: unknown) {+ } catch (error) {// vault 1.0.0 does not support namespace root or /, so we need to handle this case// if the error is 301 and the namespace is root or /, try to fetch mounts without the namespace headerif (((error instanceof AxiosError && error.response?.status === 301) || isGateway301Error(error)) &&- (targetNamespace === "/" || targetNamespace === "root")+ (targetNamespace === "/" || targetNamespace === "root" || targetNamespace === undefined || targetNamespace === "")) {({ data } = await fetchMounts());} else {