Skip to content

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

Merge branch 'main' into feat/improveSecretReferenceWarning

carlosmonastyrski4e4b1b689bab
diff --cc frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
index 923f00b576,bd76608387..525384e6df
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
@@@ -149,21 -124,15 +149,27 @@@ export const SecretEditRow = (
);
}
}
- reset({ value });
+ if (secretValueHidden && !isOverride) {
+ setTimeout(() => {
+ reset({ value: defaultValue || null });
+ }, 50);
+ } else {
+ reset({ value });
+ }
};
+ const handleEditSecret = async ({ secretValue }: { secretValue: string }) => {
+ await onSecretUpdate(
+ environment,
+ secretName,
+ secretValue,
+ isOverride ? SecretType.Personal : SecretType.Shared,
+ secretId
+ );
+ reset({ value: secretValue });
+ handlePopUpClose("editSecret");
+ };
+
const canReadSecretValue = hasSecretReadValueOrDescribePermission(
permission,
ProjectPermissionSecretActions.ReadValue
diff --cc frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
index a4c30a3e00,65d001e95e..0fbbeb6d8f
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
@@@ -57,8 -55,9 +56,10 @@@ import
SecretActionType,
TFormSchema
} from "./SecretListView.utils";
+import { CollapsibleSecretImports } from "./CollapsibleSecretImports";
+ const hiddenValue = "******";
+
type Props = {
secret: SecretV3RawSanitized;
onSaveSecret: (