Skip to content

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

fix(k8s): dynamic secret bugs

Daniel Hougaard1ace8eebf8e4
diff --git a/frontend/src/helpers/parseEnvVar.ts b/frontend/src/helpers/parseEnvVar.ts
index 6b056d5e9f..d2e39899e2 100644
--- a/frontend/src/helpers/parseEnvVar.ts
+++ b/frontend/src/helpers/parseEnvVar.ts
@@ -15,7 +15,10 @@ export const getKeyValue = (pastedContent: string, delimiters: string[]) => {
}
});
- if (firstDelimiterIndex === -1) {
+ // Check if there's any content after the delimiter
+ const hasValueAfterDelimiter = pastedContent.length > firstDelimiterIndex + foundDelimiter.length;
+
+ if (firstDelimiterIndex === -1 || !hasValueAfterDelimiter) {
return { key: pastedContent.trim(), value: "" };
}