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
better email layout and details in drawer
Matheus Nogueira80efdeeb1821
diff --git a/backend/src/services/smtp/emails/HoneyTokenTriggeredTemplate.tsx b/backend/src/services/smtp/emails/HoneyTokenTriggeredTemplate.tsxindex d02b363f76..6fa74207e7 100644--- a/backend/src/services/smtp/emails/HoneyTokenTriggeredTemplate.tsx+++ b/backend/src/services/smtp/emails/HoneyTokenTriggeredTemplate.tsx@@ -27,23 +27,21 @@ export const HoneyTokenTriggeredTemplate = ({return (<BaseEmailWrappertitle="Security Alert: Honey Token Triggered"- preview={`Honey token "${honeyTokenName}" was accessed in project "${projectName}". Investigate immediately.`}+ preview={`ACTION REQUIRED — Honey token "${honeyTokenName}" was accessed in project "${projectName}". Your secrets may be compromised.`}siteUrl={siteUrl}>- <Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0">- Honey token <strong>{honeyTokenName}</strong> was triggered in project{" "}+ <Section className="px-[16px] py-[12px] text-center">+ <Text className="text-red-600 text-[14px] font-bold m-0">ACTION REQUIRED — POTENTIAL SECRET COMPROMISE</Text>+ </Section>+ <Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0 mt-[24px]">+ Honey token <strong>{honeyTokenName}</strong> was accessed in project{" "}<strong>{projectName}</strong></Heading>- <Section className="px-[24px] 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]">- Someone attempted to use the decoy credentials associated with this honey token to make an AWS API call.- This may indicate unauthorized access to your secrets.- </Text>- <Text className="text-[14px] text-red-600 leading-[24px]">- <strong>Investigate immediately and rotate any secrets that may have been exposed.</strong>- </Text>- </Section>- <Section className="px-[24px] mb-[28px] mt-[16px] pt-[26px] pb-[4px] text-[14px] border border-solid border-gray-200 rounded-md bg-gray-50">+ <Text className="text-[14px] text-gray-600 text-center font-medium">+ An unauthorized party may have access to your secrets. Investigate immediately and rotate any secrets that+ may have been exposed.+ </Text>+ <Section className="px-[24px] mt-[24px] pt-[24px] pb-[8px] border border-solid border-gray-200 rounded-md bg-gray-50"><strong className="text-[14px]">Event</strong><Text className="text-[14px] mt-[4px]">{eventName}</Text><strong className="text-[14px]">Time</strong>@@ -53,7 +51,7 @@ export const HoneyTokenTriggeredTemplate = ({<strong className="text-[14px]">AWS Region</strong><Text className="text-[14px] mt-[4px]">{awsRegion}</Text></Section>- <Section className="text-center">+ <Section className="text-center mt-[24px]"><BaseButton href={projectUrl}>Investigate Now</BaseButton></Section></BaseEmailWrapper>diff --git a/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx b/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsxindex d700b4ad56..14a05295c7 100644--- a/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx+++ b/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx@@ -153,7 +153,7 @@ const DrawerContent = ({{statusLabel}</Badge></div>- <p className="text-xs text-muted">+ <p className="text-xs text-foreground/85">{honeyToken.description || `${tokenInfo?.name ?? "Honey"} Token`}</p></div>@@ -256,7 +256,7 @@ const DrawerContent = ({<BanIcon size={16} className="text-muted" /><p className="text-sm font-medium text-muted">Honey token revoked</p></div>- <p className="text-xs text-muted">+ <p className="text-xs text-foreground/85">The AWS IAM credentials have been revoked and the decoy secrets removed. The honeytoken record and its events are preserved for audit purposes.</p>@@ -278,7 +278,7 @@ const DrawerContent = ({<Alert variant="info" className="flex flex-col gap-4"><div><p className="text-xs font-medium text-white">1. False alarm confirmed?</p>- <p className="text-xs text-muted/80">+ <p className="text-xs text-accent">You might want to <strong>reset the honey token</strong>. This will revert itsstatus to active and hide the past events, so that the honey token can betriggered again.@@ -288,7 +288,7 @@ const DrawerContent = ({<p className="text-xs font-medium text-white">2. Malicious activity confirmed?</p>- <p className="text-xs text-muted/80">+ <p className="text-xs text-accent">1. Take immediate steps as per your company Incident Response Plan.<br />2. <strong>Rotate any real secrets</strong> that were stored alongside the