Skip to content

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

add gateway 404 error on other requests that use gateway

adilson571106802113
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.ts
index 13d7772b32..bba79c3bf5 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
@@ -1091,7 +1091,7 @@ export const getHCVaultKubernetesRoles = async (
);
roleNames = roleListResponse.data.keys || [];
} catch (error) {
- if (isVault404Error(error)) return [];
+ if (isVault404Error(error) || isGateway404Error(error)) return [];
throw error;
}
@@ -1178,7 +1178,7 @@ export const getHCVaultDatabaseRoles = async (
);
connectionNames = connectionListResponse.data.keys || [];
} catch (error) {
- if (isVault404Error(error)) return [];
+ if (isVault404Error(error) || isGateway404Error(error)) return [];
throw error;
}
@@ -1226,7 +1226,7 @@ export const getHCVaultDatabaseRoles = async (
);
roleNames = roleListResponse.data.keys || [];
} catch (error) {
- if (isVault404Error(error)) return [];
+ if (isVault404Error(error) || isGateway404Error(error)) return [];
throw error;
}
@@ -1332,7 +1332,7 @@ export const getHCVaultLdapRoles = async (
);
roleNames = roleListResponse.data.keys || [];
} catch (error) {
- if (isVault404Error(error)) return [];
+ if (isVault404Error(error) || isGateway404Error(error)) return [];
throw error;
}