Skip to content

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

Feat: Send secret change request emails to approvers

Daniel Hougaard2bcead03b0c8
diff --git a/backend/src/services/smtp/smtp-service.ts b/backend/src/services/smtp/smtp-service.ts
index 94d84b98c3..d0e1e07747 100644
--- a/backend/src/services/smtp/smtp-service.ts
+++ b/backend/src/services/smtp/smtp-service.ts
@@ -25,6 +25,7 @@ export enum SmtpTemplates {
UnlockAccount = "unlockAccount.handlebars",
AccessApprovalRequest = "accessApprovalRequest.handlebars",
AccessSecretRequestBypassed = "accessSecretRequestBypassed.handlebars",
+ SecretApprovalRequestNeedsReview = "secretApprovalRequestNeedsReview.handlebars",
HistoricalSecretList = "historicalSecretLeakIncident.handlebars",
NewDeviceJoin = "newDevice.handlebars",
OrgInvite = "organizationInvitation.handlebars",
diff --git a/backend/src/services/smtp/templates/secretApprovalRequestNeedsReview.handlebars b/backend/src/services/smtp/templates/secretApprovalRequestNeedsReview.handlebars
new file mode 100644
index 0000000000..9dd6fe7470
--- /dev/null
+++ b/backend/src/services/smtp/templates/secretApprovalRequestNeedsReview.handlebars
@@ -0,0 +1,22 @@
+<html>
+
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="x-ua-compatible" content="ie=edge" />
+ <title>Secret Change Approval Request</title>
+ </head>
+
+ <body>
+ <h2>Hi {{firstName}},</h2>
+ <h2>New secret change requests are pending review.</h2>
+ <br />
+ <p>You have a secret change request pending your review in project "{{projectName}}", in the "{{organizationName}}"
+ organization.</p>
+
+ <p>
+ View the request and approve or deny it
+ <a href="{{approvalUrl}}">here</a>.
+ </p>
+ </body>
+
+</html>
\ No newline at end of file