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 api call to fetch the secret value, if there is a secret on the folder it should take precedence rather than an import secret
Carlos Monastyrskif478ef99c39e
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsxindex b0f9f76665..0ba6314d19 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx@@ -82,6 +82,7 @@ type Props = {isImported: boolean;}[];}[];+ isSecretPresent?: boolean;};export const SecretEditRow = ({@@ -101,7 +102,8 @@ export const SecretEditRow = ({isRotatedSecret,importedBy,importedSecret,- isEmpty+ isEmpty,+ isSecretPresent}: Props) => {const { handlePopUpOpen, handlePopUpToggle, handlePopUpClose, popUp } = usePopUp(["editSecret"@@ -113,7 +115,7 @@ export const SecretEditRow = ({const [isFieldFocused, setIsFieldFocused] = useToggle();- const fetchSecretValueParams = importedSecret+ const fetchSecretValueParams = importedSecret && !isSecretPresent? {environment: importedSecret.environment,secretPath: importedSecret.secretPath,diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretOverviewTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretOverviewTableRow.tsxindex 2a2e1a76a5..2099d812df 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretOverviewTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretOverviewTableRow.tsx@@ -284,6 +284,7 @@ export const SecretOverviewTableRow = ({environment={slug}isRotatedSecret={secret?.isRotatedSecret}importedBy={importedBy}+ isSecretPresent={Boolean(secret)}/></td></tr>