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
refactor(agent-vault): drop the unused findVariableKeys helper
Scott Wilsonf29b30be9cf6
diff --git a/frontend/src/helpers/agentVaultVariables.ts b/frontend/src/helpers/agentVaultVariables.tsindex fc26822edb..39e6d98f04 100644--- a/frontend/src/helpers/agentVaultVariables.ts+++ b/frontend/src/helpers/agentVaultVariables.ts@@ -24,9 +24,6 @@ export const toVariableReference = (key: string) => `{{${key}}}`;export const findVariableReferences = (text: string) =>Array.from(text.matchAll(REFERENCE_RE), (match) => match[1]);-export const findVariableKeys = (text: string) =>- Array.from(new Set(findVariableReferences(text).filter((ref) => VARIABLE_KEY_RE.test(ref))));-/** A lone reference holds no secret, so a masked field can show it as text. */export const isVariableReferenceOnly = (text: string | undefined) =>Boolean(text) && REFERENCE_ONLY_RE.test(text as string);