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
add alert and change email copy
adilson981df95d23c0
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.tsindex d8629ecde5..e6d89b4cb6 100644--- a/backend/src/keystore/keystore.ts+++ b/backend/src/keystore/keystore.ts@@ -178,7 +178,7 @@ export const KeyStorePrefixes = {// period is a YYYY-MM stamp so the monthly notice can only go out once per org per monthNativeIntegrationDeprecationNotice: (orgId: string, period: string) =>- `native-integration-deprecation-notice:${orgId}:${period}` as const+ `validation2-native-integration-deprecation-notice:${orgId}:${period}` as const};export const KeyStoreTtls = {diff --git a/backend/src/services/integration/integration-deprecation-fns.ts b/backend/src/services/integration/integration-deprecation-fns.tsindex 6b3caed3ec..bc9f740c82 100644--- a/backend/src/services/integration/integration-deprecation-fns.ts+++ b/backend/src/services/integration/integration-deprecation-fns.ts@@ -1,5 +1,7 @@import { groupBy, unique } from "@app/lib/fn";+export const NATIVE_INTEGRATION_DEPRECATION_DATE = "February 1, 2027";+export type TIntegrationProjectRow = {projectId: string;projectName: string;diff --git a/backend/src/services/integration/integration-deprecation-queue.ts b/backend/src/services/integration/integration-deprecation-queue.tsindex 07b214bd8f..3fa1ab0438 100644--- a/backend/src/services/integration/integration-deprecation-queue.ts+++ b/backend/src/services/integration/integration-deprecation-queue.ts@@ -17,6 +17,7 @@ import {buildNativeIntegrationsPath,buildNativeIntegrationsUrl,groupIntegrationsByProject,+ NATIVE_INTEGRATION_DEPRECATION_DATE,TIntegrationProjectSummary,TNoticeRecipient,toRecipients@@ -38,9 +39,8 @@ type TIntegrationDeprecationQueueFactoryDep = {export type TIntegrationDeprecationQueueFactory = ReturnType<typeof integrationDeprecationQueueFactory>;-const NOTICE_SUBJECT = "Action recommended: move native integrations to Secret Syncs";-const NOTICE_BODY =- "Native integrations are deprecated. Secret Syncs are the maintained replacement and cover the same third-party services.";+const NOTICE = "Action required: move your native integrations to Secret Syncs";+const NOTICE_BODY = `Recreate your native integrations as Secret Syncs before ${NATIVE_INTEGRATION_DEPRECATION_DATE} to keep your secrets syncing.`;/*** Monthly nudge toward Secret Syncs for every org still holding native integrations.@@ -86,10 +86,11 @@ export const integrationDeprecationQueueFactory = ({try {await smtpService.sendMail({template: SmtpTemplates.NativeIntegrationDeprecation,- subjectLine: NOTICE_SUBJECT,+ subjectLine: NOTICE,recipients: recipients.map((recipient) => recipient.email),substitutions: {orgName,+ deprecationDate: NATIVE_INTEGRATION_DEPRECATION_DATE,projects: projects.map((project) => ({name: project.projectName,integrations: project.integrations,@@ -107,7 +108,7 @@ export const integrationDeprecationQueueFactory = ({userId: recipient.userId,orgId,type: NotificationType.NATIVE_INTEGRATION_DEPRECATED,- title: "Native integrations are moving to Secret Syncs",+ title: NOTICE,body: NOTICE_BODY,link}))@@ -192,7 +193,7 @@ export const integrationDeprecationQueueFactory = ({cronJob.register({name: CronJobName.MonthlyNativeIntegrationDeprecationNotice,- pattern: "0 0 1 * *",+ pattern: "* * * * *",runHashTtlS: 7 * 24 * 60 * 60,enabled: !appCfg.isSecondaryInstance,handler: async () => {diff --git a/backend/src/services/smtp/emails/NativeIntegrationDeprecationTemplate.tsx b/backend/src/services/smtp/emails/NativeIntegrationDeprecationTemplate.tsxindex 454cc7927d..1147201d41 100644--- a/backend/src/services/smtp/emails/NativeIntegrationDeprecationTemplate.tsx+++ b/backend/src/services/smtp/emails/NativeIntegrationDeprecationTemplate.tsx@@ -9,23 +9,26 @@ interface NativeIntegrationDeprecationTemplatePropsorgName: string;// a single entry for the per-project email, every affected project for the org-wide emailprojects: { name: string; integrations: string[]; url: string }[];+ // the cutoff date, passed in so the subject line and the body can't state different dates+ deprecationDate: string;}export const NativeIntegrationDeprecationTemplate = ({siteUrl,orgName,- projects+ projects,+ deprecationDate}: NativeIntegrationDeprecationTemplateProps) => {const isSingleProject = projects.length === 1;return (<BaseEmailWrapper- title="Native Integrations Are Moving to Secret Syncs"- preview="Native integrations are deprecated. Secret Syncs are the maintained replacement."+ title="Native Integrations are moving to Secret Syncs"+ preview={`Recreate your native integrations as Secret Syncs before ${deprecationDate}.`}siteUrl={siteUrl}><Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0">- <strong>Native Integrations Are Moving to Secret Syncs</strong>+ <strong>Native Integrations Stop Working on {deprecationDate}</strong></Heading><Section className="px-[24px] mb-[28px] mt-[36px] pt-[12px] pb-[8px] border border-solid border-gray-200 rounded-md bg-gray-50"><Text className="text-black text-[14px] leading-[24px]">@@ -39,8 +42,8 @@ export const NativeIntegrationDeprecationTemplate = ({<strong>{projects.length}</strong> projects in <strong>{orgName}</strong> still use native integrations.</>)}{" "}- Native integrations are deprecated. Secret Syncs are the maintained replacement and cover the same third-party- services, so we recommend migrating.+ They stop working on <strong>{deprecationDate}</strong>. After that date these integrations stop syncing+ secrets. Recreate each one as a Secret Sync before then. Secret Syncs cover the same third-party services.</Text></Section><Section className="mb-[28px]">@@ -61,7 +64,7 @@ export const NativeIntegrationDeprecationTemplate = ({</Section><Section className="text-center"><BaseButton href="https://infisical.com/docs/integrations/secret-syncs/overview">- Explore Secret Syncs+ Migrate to Secret Syncs</BaseButton></Section></BaseEmailWrapper>@@ -73,6 +76,7 @@ export default NativeIntegrationDeprecationTemplate;NativeIntegrationDeprecationTemplate.PreviewProps = {siteUrl: "https://infisical.com",orgName: "Example Organization",+ deprecationDate: "February 1, 2027",projects: [{name: "backend-api",diff --git a/frontend/src/const/nativeIntegrationDeprecation.ts b/frontend/src/const/nativeIntegrationDeprecation.tsnew file mode 100644index 0000000000..0964fb6a1e--- /dev/null+++ b/frontend/src/const/nativeIntegrationDeprecation.ts@@ -0,0 +1,6 @@+// Cutoff after which native integrations stop syncing secrets. Every in-product notice reads+// this, so the date is stated in one place. The backend has its own copy in+// backend/src/services/integration/integration-deprecation-fns.ts. Keep the two in sync.+const NATIVE_INTEGRATION_DEPRECATION_DATE = "February 1, 2027";++export { NATIVE_INTEGRATION_DEPRECATION_DATE };diff --git a/frontend/src/layouts/ProjectLayout/components/NativeIntegrationsMigrationBanner/NativeIntegrationsMigrationBanner.tsx b/frontend/src/layouts/ProjectLayout/components/NativeIntegrationsMigrationBanner/NativeIntegrationsMigrationBanner.tsxindex 3d8d4b5147..23c13f111e 100644--- a/frontend/src/layouts/ProjectLayout/components/NativeIntegrationsMigrationBanner/NativeIntegrationsMigrationBanner.tsx+++ b/frontend/src/layouts/ProjectLayout/components/NativeIntegrationsMigrationBanner/NativeIntegrationsMigrationBanner.tsx@@ -1,8 +1,8 @@-import { faWarning, faXmark } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { Link } from "@tanstack/react-router";+import { XIcon } from "lucide-react";import { IconButton } from "@app/components/v2";+import { NATIVE_INTEGRATION_DEPRECATION_DATE } from "@app/const/nativeIntegrationDeprecation";import { ROUTE_PATHS } from "@app/const/routes";import { useOrganization, useProject, useProjectPermission } from "@app/context";import { useBannerDismissal } from "@app/hooks";@@ -30,10 +30,9 @@ export const NativeIntegrationsMigrationBanner = () => {return (<div className="flex w-full items-center border-b border-yellow/50 bg-yellow/30 px-4 py-2 text-sm text-yellow-200">- <FontAwesomeIcon icon={faWarning} className="mr-2.5 text-base text-yellow" />This project has {integrations.length} native integration- {integrations.length > 1 ? "s" : ""}. Native integrations are deprecated, recreate them as- Secret Syncs.+ {integrations.length > 1 ? "s" : ""}. They stop working on{" "}+ {NATIVE_INTEGRATION_DEPRECATION_DATE}. Recreate them as Secret Syncs.<Linkto={ROUTE_PATHS.SecretManager.IntegrationsListPage.path}params={{ orgId: currentOrg.id, projectId: currentProject.id }}@@ -48,7 +47,7 @@ export const NativeIntegrationsMigrationBanner = () => {variant="plain"onClick={dismiss}>- <FontAwesomeIcon icon={faXmark} />+ <XIcon className="size-4" /></IconButton></div>);diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationAlert.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationAlert.tsxnew file mode 100644index 0000000000..a2aa3a1431--- /dev/null+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationAlert.tsx@@ -0,0 +1,44 @@+import { useNavigate } from "@tanstack/react-router";+import { TriangleAlertIcon } from "lucide-react";++import { Alert, AlertDescription, AlertTitle, Button } from "@app/components/v3";+import { NATIVE_INTEGRATION_DEPRECATION_DATE } from "@app/const/nativeIntegrationDeprecation";+import { ROUTE_PATHS } from "@app/const/routes";+import { useOrganization, useProject } from "@app/context";+import { IntegrationsListPageTabs } from "@app/types/integrations";++// Not dismissible: it is contextual to the deprecated tab rather than an interruption, so it stays+// visible while the user works through their integrations.+export const NativeIntegrationsDeprecationAlert = () => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const { currentProject } = useProject();++ const handleMigrate = () => {+ navigate({+ to: ROUTE_PATHS.SecretManager.IntegrationsListPage.path,+ params: { orgId: currentOrg.id, projectId: currentProject.id },+ search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }+ });+ };++ return (+ <Alert variant="warning">+ <TriangleAlertIcon />+ <AlertTitle>+ Native integrations stop working on {NATIVE_INTEGRATION_DEPRECATION_DATE}.+ </AlertTitle>+ <AlertDescription>+ <p>+ Recreate these as Secret Syncs before then to keep your secrets syncing. Secret Syncs+ support all the same third-party services.+ </p>+ <div className="mt-3 flex flex-wrap items-center gap-2">+ <Button variant="warning" size="xs" onClick={handleMigrate}>+ Migrate to Secret Syncs+ </Button>+ </div>+ </AlertDescription>+ </Alert>+ );+};diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationModal.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationModal.tsxdeleted file mode 100644index 97b98521d1..0000000000--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsDeprecationModal.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { useState } from "react";-import { useNavigate } from "@tanstack/react-router";-import { CheckIcon, RefreshCwIcon } from "lucide-react";--import {- Button,- Dialog,- DialogClose,- DialogContent,- DialogDescription,- DialogFooter,- DialogHeader,- DialogTitle-} from "@app/components/v3";-import { ROUTE_PATHS } from "@app/const/routes";-import { useOrganization, useProject } from "@app/context";-import { IntegrationsListPageTabs } from "@app/types/integrations";--const BENEFITS = [- "Continuous, automatic syncing with no manual re-runs",- "Reusable App Connections shared across syncs",- "Actively maintained and supported"-];--export const NativeIntegrationsDeprecationModal = () => {- const [isOpen, setIsOpen] = useState(true);- const navigate = useNavigate();- const { currentOrg } = useOrganization();- const { currentProject } = useProject();-- const handleExploreSecretSyncs = () => {- navigate({- to: ROUTE_PATHS.SecretManager.IntegrationsListPage.path,- params: { orgId: currentOrg.id, projectId: currentProject.id },- search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }- });- };-- return (- <Dialog open={isOpen} onOpenChange={setIsOpen}>- <DialogContent className="max-w-[500px]" showCloseButton={false}>- <DialogHeader>- <div className="flex items-center gap-3">- <div className="flex size-9.5 shrink-0 items-center justify-center rounded-lg border border-project/10 bg-project/15">- <RefreshCwIcon className="size-4 text-project" />- </div>- <DialogTitle className="text-base">- Native Integrations Are Moving to Secret Syncs- </DialogTitle>- </div>- <DialogDescription>- This tab is deprecated. Secret Syncs are the maintained replacement and cover the same- third-party services.- </DialogDescription>- </DialogHeader>- <div className="flex flex-col gap-3 rounded-md border border-border bg-background p-4">- {BENEFITS.map((benefit) => (- <div key={benefit} className="flex items-start gap-2.5">- <CheckIcon className="mt-0.5 size-3.5 shrink-0 text-success" />- <span className="text-sm text-foreground">{benefit}</span>- </div>- ))}- </div>- <DialogFooter className="sm:justify-end">- <div className="flex gap-2">- <DialogClose asChild>- <Button variant="ghost">Stay here</Button>- </DialogClose>- <Button variant="project" onClick={handleExploreSecretSyncs}>- Explore Secret Syncs- </Button>- </div>- </DialogFooter>- </DialogContent>- </Dialog>- );-};diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsxindex 611efaba9c..5302c40099 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx@@ -20,7 +20,7 @@ import { TIntegration } from "@app/hooks/api/integrations/types";import { redirectForProviderAuth } from "../../IntegrationsListPage.utils";import { CloudIntegrationSection } from "../CloudIntegrationSection";import { IntegrationsTable } from "./IntegrationsTable";-import { NativeIntegrationsDeprecationModal } from "./NativeIntegrationsDeprecationModal";+import { NativeIntegrationsDeprecationAlert } from "./NativeIntegrationsDeprecationAlert";enum IntegrationView {List = "list",@@ -151,41 +151,44 @@ export const NativeIntegrationsTab = () => {return (<>- {view === IntegrationView.List ? (- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">- <div className="mb-4 flex items-center justify-between">- <p className="text-xl font-medium text-mineshaft-100">Native Integrations</p>- <Button- colorSchema="secondary"- type="submit"- leftIcon={<FontAwesomeIcon icon={faPlus} />}- onClick={() => setView(IntegrationView.New)}- >- Add Integration- </Button>+ <div className="flex flex-col gap-4">+ <NativeIntegrationsDeprecationAlert />+ {view === IntegrationView.List ? (+ <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">+ <div className="mb-4 flex items-center justify-between">+ <p className="text-xl font-medium text-mineshaft-100">Native Integrations</p>+ <Button+ colorSchema="secondary"+ type="submit"+ leftIcon={<FontAwesomeIcon icon={faPlus} />}+ onClick={() => setView(IntegrationView.New)}+ >+ Add Integration+ </Button>+ </div>+ <IntegrationsTable+ cloudIntegrations={cloudIntegrations}+ integrations={integrations}+ isLoading={isIntegrationLoading}+ workspaceId={workspaceId}+ environments={environments}+ onDeleteIntegration={(integration) => {+ setShouldDeleteSecrets.off();+ handlePopUpOpen("deleteConfirmation", integration);+ }}+ /></div>- <IntegrationsTable+ ) : (+ <CloudIntegrationSection+ onIntegrationStart={handleProviderIntegrationStart}+ onIntegrationRevoke={handleIntegrationAuthRevoke}+ integrationAuths={integrationAuths}cloudIntegrations={cloudIntegrations}- integrations={integrations}- isLoading={isIntegrationLoading}- workspaceId={workspaceId}- environments={environments}- onDeleteIntegration={(integration) => {- setShouldDeleteSecrets.off();- handlePopUpOpen("deleteConfirmation", integration);- }}+ isLoading={isIntegrationAuthLoading || isCloudIntegrationsLoading}+ onViewActiveIntegrations={() => setView(IntegrationView.List)}/>- </div>- ) : (- <CloudIntegrationSection- onIntegrationStart={handleProviderIntegrationStart}- onIntegrationRevoke={handleIntegrationAuthRevoke}- integrationAuths={integrationAuths}- cloudIntegrations={cloudIntegrations}- isLoading={isIntegrationAuthLoading || isCloudIntegrationsLoading}- onViewActiveIntegrations={() => setView(IntegrationView.List)}- />- )}+ )}+ </div><DeleteActionModalisOpen={popUp.deleteConfirmation.isOpen}title={`Are you sure you want to remove ${@@ -250,7 +253,6 @@ export const NativeIntegrationsTab = () => {);}}/>- <NativeIntegrationsDeprecationModal /></>);};