Skip to content

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

improvement(secret-syncs): rename disable secret deletion copy (#7948)

claude[bot]6234cb9c9739
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
index 7a27693554..54ac65be93 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
@@ -321,7 +321,7 @@ export const InitialSyncAlerts = ({
Anything in {destinationName} not in Infisical will be removed. To keep them,{" "}
{renderRemedy("import from provider", onGoToInitialSync)},{" "}
{renderRemedy("customize key names", onGoToOptions)}, or{" "}
- {renderRemedy("disable secret deletion", onGoToOptions)}.
+ {renderRemedy("prevent secret deletion", onGoToOptions)}.
</p>
</AlertDescription>
</Alert>
@@ -376,7 +376,7 @@ export const SecretSyncInitialSyncBehaviorFields = () => {
!keySchema &&
(syncOption?.supportsKeySchema !== false ||
syncOption?.supportsDisableSecretDeletion !== false) &&
- " Secrets not in Infisical will be removed — add a key schema or disable secret deletion to keep them."}
+ " Secrets not in Infisical will be removed — add a key schema or prevent secret deletion to keep them."}
</AlertDescription>
</Alert>
)}
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/CloudflareWorkersSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/CloudflareWorkersSyncOptionsFields.tsx
index 078c26ccbd..ae507de279 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/CloudflareWorkersSyncOptionsFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/CloudflareWorkersSyncOptionsFields.tsx
@@ -56,9 +56,10 @@ export const CloudflareWorkersSyncOptionsFields = () => {
<TriangleAlert />
<AlertTitle>Plaintext and JSON variables may be deleted</AlertTitle>
<AlertDescription>
- With secret deletion enabled and non-secret binding sync turned on, any plaintext or
- JSON variables in Cloudflare Workers that are not present in Infisical will be removed
- during a sync. Toggle &quot;Disable secret deletion&quot; above to prevent this.
+ With &quot;Prevent secret deletion&quot; turned off and non-secret binding sync turned
+ on, any plaintext or JSON variables in Cloudflare Workers that are not present in
+ Infisical will be removed during a sync. Turn on &quot;Prevent secret deletion&quot;
+ above to keep them.
</AlertDescription>
</Alert>
)}
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
index a2b27c3183..bba5125cfe 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx
@@ -236,11 +236,11 @@ export const SecretSyncOptionsFields = ({ hideInitialSync, children }: Props) =>
<Field className="mb-4">
<Field orientation="horizontal">
<FieldContent>
- <Label htmlFor="disable-secret-deletion">Disable secret deletion</Label>
+ <Label htmlFor="disable-secret-deletion">Prevent secret deletion</Label>
<FieldDescription>
- When enabled, Infisical will not remove secrets from {destinationName} during a
- sync. Use this if you intend to manage some secrets manually outside of
- Infisical.
+ Infisical will add and update secrets in {destinationName} but never delete
+ them. Turn this off to let syncs remove any secrets in {destinationName} that
+ are not in Infisical.
</FieldDescription>
</FieldContent>
<Switch
@@ -266,17 +266,16 @@ export const SecretSyncOptionsFields = ({ hideInitialSync, children }: Props) =>
<AlertDialogMedia>
<AlertTriangleIcon className="text-warning" />
</AlertDialogMedia>
- <AlertDialogTitle>Disable Secret Deletion Protection</AlertDialogTitle>
+ <AlertDialogTitle>Allow Secret Deletion</AlertDialogTitle>
<AlertDialogDescription>
- Are you sure you want to disable secret deletion protection? This can lead to
- secrets being deleted from {destinationName} if they are not managed by
- Infisical.
+ Turning off &quot;Prevent secret deletion&quot; lets a sync delete secrets in{" "}
+ {destinationName} that are not managed by Infisical.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
- <AlertDialogCancel>Keep it enabled</AlertDialogCancel>
+ <AlertDialogCancel>Keep Protection On</AlertDialogCancel>
<AlertDialogAction variant="project" onClick={() => onChange(false)}>
- Disable
+ Allow Deletion
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SpaceliftSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SpaceliftSyncOptionsFields.tsx
index 6b69152e02..167f571d54 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SpaceliftSyncOptionsFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SpaceliftSyncOptionsFields.tsx
@@ -56,8 +56,8 @@ export const SpaceliftSyncOptionsFields = () => {
<AlertTitle>Secret values cannot be read back</AlertTitle>
<AlertDescription>
Existing secret values in the Spacelift context cannot be read by Infisical. Any secret
- values not present in Infisical will be deleted during sync. Enable secret deletion
- protection to prevent this.
+ values not present in Infisical will be deleted during sync. Turn on &quot;Prevent
+ secret deletion&quot; above to keep them.
</AlertDescription>
</Alert>
)}