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 final comments
adilson9a6a8fe0927a
diff --git a/backend/src/ee/services/dynamic-secret/providers/milvus.ts b/backend/src/ee/services/dynamic-secret/providers/milvus.tsindex 6be991691e..4ae0af1886 100644--- a/backend/src/ee/services/dynamic-secret/providers/milvus.ts+++ b/backend/src/ee/services/dynamic-secret/providers/milvus.ts@@ -48,7 +48,15 @@ const generatePassword = () => {export const parseMilvusHost = (providerInputs: TMilvusProviderInputs, host: string, port: number) => {const hostWithoutScheme = host.replace(/^https?:\/\//i, "");- const scheme = providerInputs.ca ? "https" : "http";++ let scheme: "http" | "https";+ if (/^https:\/\//i.test(providerInputs.host)) {+ scheme = "https";+ } else if (/^http:\/\//i.test(providerInputs.host)) {+ scheme = "http";+ } else {+ scheme = providerInputs.ca ? "https" : "http";+ }let url: URL;try {diff --git a/backend/src/ee/services/dynamic-secret/providers/models.ts b/backend/src/ee/services/dynamic-secret/providers/models.tsindex 01e2272556..2ba4b7f9c1 100644--- a/backend/src/ee/services/dynamic-secret/providers/models.ts+++ b/backend/src/ee/services/dynamic-secret/providers/models.ts@@ -725,7 +725,7 @@ export const DynamicSecretMilvusSchema = z.object({.trim().min(1).describe(- "Milvus endpoint host. URL scheme is optional; uses https when the host includes https:// or a CA is provided, http when the host includes http://, otherwise http (e.g. localhost)."+ "Milvus endpoint host; uses https when the host includes https:// or a CA is provided, http when the host includes http://, otherwise http (e.g. localhost)."),port: z.number().int().min(1).max(65535),username: z.string().trim().min(1).describe("Admin username used to manage Milvus users and roles"),