Skip to content

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

misc: update tooltip for overwrite sync

Sheen Capadngan1fdc82e49408
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
index a61c2a6b80..6f4f4f20e8 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
@@ -23,6 +23,7 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {
const { control, watch } = useFormContext<TSecretSyncForm>();
const destination = watch("destination");
+ const currentSyncOption = watch("syncOptions");
const destinationName = SECRET_SYNC_MAP[destination].name;
@@ -127,8 +128,9 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {
{!syncOption?.canImportSecrets && (
<p className="-mt-2.5 mb-2.5 text-xs text-yellow">
<FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />
- {destinationName} only supports overwriting destination secrets. Secrets not present
- in Infisical will be removed from the destination.
+ {destinationName} only supports overwriting destination secrets.{" "}
+ {!currentSyncOption.disableSecretDeletion &&
+ "Secrets not present in Infisical will be removed from the destination."}
</p>
)}
</>