Skip to content

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

address review

x032205bcf4d7727d60
diff --git a/backend/src/server/routes/v3/external-migration-router.ts b/backend/src/server/routes/v3/external-migration-router.ts
index e8c790d0fe..7fae954ebf 100644
--- a/backend/src/server/routes/v3/external-migration-router.ts
+++ b/backend/src/server/routes/v3/external-migration-router.ts
@@ -468,7 +468,8 @@ export const registerExternalMigrationRouter = async (server: FastifyZodProvider
renew_statements: z.array(z.string()).nullish(),
config: z.object({
connection_details: z.object({
- connection_url: z.string(),
+ connection_url: z.string().nullish(),
+ hosts: z.string().nullish(),
tls_ca: z.string().nullish(),
username: z.string().nullish()
}),
diff --git a/backend/src/services/app-connection/hc-vault/hc-vault-connection-types.ts b/backend/src/services/app-connection/hc-vault/hc-vault-connection-types.ts
index 94c60da202..21fd24653c 100644
--- a/backend/src/services/app-connection/hc-vault/hc-vault-connection-types.ts
+++ b/backend/src/services/app-connection/hc-vault/hc-vault-connection-types.ts
@@ -121,7 +121,8 @@ export type THCVaultKubernetesRole = {
export type THCVaultDatabaseConfig = {
connection_details: {
- connection_url: string;
+ connection_url?: string;
+ hosts?: string;
tls_ca?: string;
username?: string;
};
diff --git a/frontend/src/hooks/api/migration/types.ts b/frontend/src/hooks/api/migration/types.ts
index 235bf2cae6..f9f4336ba2 100644
--- a/frontend/src/hooks/api/migration/types.ts
+++ b/frontend/src/hooks/api/migration/types.ts
@@ -82,7 +82,8 @@ export type VaultDatabaseRole = {
renew_statements?: string[];
config: {
connection_details: {
- connection_url: string;
+ connection_url?: string;
+ hosts?: string;
tls_ca?: string;
username?: string;
};
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 434ce46107..15927dfb58 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
@@ -280,6 +280,9 @@ export const SqlDatabaseInputForm = ({
};
const parseStandardUrl = (url: URL, dbFromParams?: string) => {
+ if (url.username) {
+ setValue("provider.username", url.username);
+ }
const port = url.port ? parseInt(url.port, 10) : undefined;
const database = dbFromParams || url.pathname.replace(/^\//, "");
setConnectionDetails(url.hostname, port, database);