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
misc reviews
Andreyf07990aec223
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.tsindex 6bf6fc4b60..15c2d54a0c 100644--- a/backend/src/services/auth/auth-login-service.ts+++ b/backend/src/services/auth/auth-login-service.ts@@ -170,7 +170,9 @@ export const authLoginServiceFactory = ({subjectLine: "Infisical MFA code",recipients: [email],substitutions: {- code+ code,+ challengeFor: "sign-in",+ preview: "Sign-in attempt requires further verification."}}).catch((err) => throwIfSmtpError(err, "Failed to send MFA code email"));diff --git a/backend/src/services/smtp/emails/EmailMfaTemplate.tsx b/backend/src/services/smtp/emails/EmailMfaTemplate.tsxindex 5666aa83b8..93fe7c5a2c 100644--- a/backend/src/services/smtp/emails/EmailMfaTemplate.tsx+++ b/backend/src/services/smtp/emails/EmailMfaTemplate.tsx@@ -7,16 +7,24 @@ import { BaseLink } from "./BaseLink";interface EmailMfaTemplateProps extends Omit<BaseEmailWrapperProps, "title" | "preview" | "children"> {code: string;isCloud: boolean;+ challengeFor?: string;+ preview?: string;}-export const EmailMfaTemplate = ({ code, siteUrl, isCloud }: EmailMfaTemplateProps) => {+export const EmailMfaTemplate = ({+ code,+ siteUrl,+ isCloud,+ challengeFor = "this request",+ preview = "Your request requires further verification."+}: EmailMfaTemplateProps) => {return (- <BaseEmailWrapper title="MFA Code" preview="Your request requires further verification." siteUrl={siteUrl}>+ <BaseEmailWrapper title="MFA Code" preview={preview} siteUrl={siteUrl}><Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0"><strong>MFA required</strong></Heading><Section className="px-[24px] mt-[36px] pt-[8px] text-center pb-[8px] text-[14px] border border-solid border-gray-200 rounded-md bg-gray-50">- <Text>Enter the MFA code shown below in the browser where you started this request.</Text>+ <Text>Enter the MFA code shown below in the browser where you started {challengeFor}.</Text><Text className="text-[24px] mt-[16px]"><strong>{code}</strong></Text>diff --git a/frontend/src/pages/pam/components/RequestAccessSheet.tsx b/frontend/src/pages/pam/components/RequestAccessSheet.tsxindex 1dd8f5d19e..dc42c1c568 100644--- a/frontend/src/pages/pam/components/RequestAccessSheet.tsx+++ b/frontend/src/pages/pam/components/RequestAccessSheet.tsx@@ -306,7 +306,7 @@ export const RequestAccessSheet = ({</Select><FieldDescription>{isCredentialRequest- ? "How long you can reveal the credential for. Rotating the account is what actually cuts off a copy."+ ? "How long you can reveal the credential for.": "How long you can launch sessions for once approved."}</FieldDescription></FieldContent>