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
fix: couchbase input
adilson7655474df1ea
diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsxindex 28f1a231fd..c3e939147f 100644--- a/frontend/src/components/v2/SecretInput/SecretInput.tsx+++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx@@ -172,6 +172,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(}, []);const shouldRevealValue = isVisible || (isSecretFocused && !valueAlwaysHidden);+ const shouldBindRealValue = isVisible || isSecretFocused;return (<div@@ -227,7 +228,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(onMouseLeave={() => {setHoveredPart(undefined);}}- value={value && !shouldRevealValue ? HIDDEN_SECRET_VALUE : (value ?? "")}+ value={value && !shouldBindRealValue ? HIDDEN_SECRET_VALUE : (value ?? "")}{...props}readOnly={isReadOnly || isLoadingValue || isErrorLoadingValue}/>diff --git a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsxindex 8e28cdbc43..b6c2798671 100644--- a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx+++ b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx@@ -176,6 +176,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(}, []);const shouldRevealValue = isVisible || (isSecretFocused && !valueAlwaysHidden);+ const shouldBindRealValue = isVisible || isSecretFocused;return (<div@@ -241,7 +242,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(onMouseLeave={() => {setHoveredPart(undefined);}}- value={value && !shouldRevealValue ? HIDDEN_SECRET_VALUE : (value ?? "")}+ value={value && !shouldBindRealValue ? HIDDEN_SECRET_VALUE : (value ?? "")}{...props}readOnly={isReadOnly || isLoadingValue || isErrorLoadingValue}/>diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CouchbaseInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CouchbaseInputForm.tsxindex 894b31c1c7..cbf8f9c88d 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CouchbaseInputForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CouchbaseInputForm.tsx@@ -704,7 +704,6 @@ export const CouchbaseInputForm = ({<SecretInputcontainerClassName="text-gray-400 group-focus-within:border-primary-400/50! border border-mineshaft-500 bg-mineshaft-900 px-2.5 py-1.5"value={value}- valueAlwaysHiddenrows={1}wrap="hard"onChange={(e) => onChange(e.target.value)}