feat(backend): save bypass reason on secret_approval_requests

This commit is contained in:
Alfonso Hernandez
2024-07-19 21:31:48 +02:00
parent 4ecd4c0337
commit bff8f55ea2
9 changed files with 116 additions and 7 deletions
@@ -23,6 +23,7 @@ export enum SmtpTemplates {
EmailMfa = "emailMfa.handlebars",
UnlockAccount = "unlockAccount.handlebars",
AccessApprovalRequest = "accessApprovalRequest.handlebars",
AccessSecretRequestBypassed = "accessSecretRequestBypassed.handlebars",
HistoricalSecretList = "historicalSecretLeakIncident.handlebars",
NewDeviceJoin = "newDevice.handlebars",
OrgInvite = "organizationInvitation.handlebars",
@@ -0,0 +1,35 @@
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Secret Approval Request Bypassed</title>
</head>
<body>
<h2>Infisical</h2>
<h2>A secret approval request has been bypassed</h2>
<p>A secret approval request has been merged without approval in project "{{projectName}}".</p>
<p>
{{requesterFullName}}
({{requesterEmail}}) has merged
a secret to
{{secretPath}}
in the
{{environment}}
environment.
</p>
<p>
The following reason was provided:
<em>{{bypassReason}}</em>
</p>
<p>
Go to the request panel
<a href="{{approvalUrl}}">here</a>.
</p>
</body>
</html>