Skip to content

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

greptile review fixes

x032205968f6979d0a8
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 96661f105e..c166870d43 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
@@ -647,7 +647,7 @@ export const getHCVaultSecretsForPath = async (
};
};
}>(connection, gatewayService, {
- url: `${instanceUrl}/v1/${encodeURIComponent(mountPath)}/data/${encodeURIComponent(actualPath)}`,
+ url: `${instanceUrl}/v1/${encodeURIComponent(mountPath)}/data/${actualPath}`,
method: "GET",
headers: {
"X-Vault-Token": accessToken,
@@ -665,7 +665,7 @@ export const getHCVaultSecretsForPath = async (
lease_id: string;
renewable: boolean;
}>(connection, gatewayService, {
- url: `${instanceUrl}/v1/${encodeURIComponent(mountPath)}/${encodeURIComponent(actualPath)}`,
+ url: `${instanceUrl}/v1/${encodeURIComponent(mountPath)}/${actualPath}`,
method: "GET",
headers: {
"X-Vault-Token": accessToken,
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/LdapInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/LdapInputForm.tsx
index b88a5671fd..8954e27912 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/LdapInputForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/LdapInputForm.tsx
@@ -4,9 +4,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
import ms from "ms";
import { z } from "zod";
-import { createNotification } from "@app/components/notifications";
-
import { TtlFormLabel } from "@app/components/features";
+import { createNotification } from "@app/components/notifications";
import {
Button,
FilterableSelect,
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx
index 02a4efe9db..434ce46107 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx
@@ -312,7 +312,10 @@ export const SqlDatabaseInputForm = ({
parseStandardUrl(new URL(trimmedUrl));
}
} catch {
- // Connection URL parsing failed, user will need to fill in manually
+ createNotification({
+ type: "info",
+ text: "Could not parse connection URL. Host, port, and database fields may need to be filled manually."
+ });
}
if (role.config.connection_details.username) {