small nits for bypass pr

This commit is contained in:
Maidul Islam
2024-07-19 17:19:06 -04:00
parent f97756a07b
commit 729ca7b6d6
5 changed files with 21 additions and 28 deletions
@@ -515,7 +515,7 @@ export const secretApprovalRequestServiceFactory = ({
await smtpService.sendMail({
recipients: approverUsers.filter((approver) => approver.email).map((approver) => approver.email!),
subjectLine: "Secret Request Bypassed",
subjectLine: "Infisical Secret Change Policy Bypassed",
substitutions: {
projectName: project.name,
@@ -1,35 +1,28 @@
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Secret Approval Request Bypassed</title>
<title>Secret Approval Request Policy 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>
<h1>Infisical</h1>
<h2>Secret Approval Request Bypassed</h2>
<p>A secret approval request has been bypassed in the project "{{projectName}}".</p>
<p>
{{requesterFullName}}
({{requesterEmail}}) has merged
a secret to
{{secretPath}}
in the
{{environment}}
environment.
{{requesterFullName}} ({{requesterEmail}}) has merged
a secret to environment {{environment}} at secret path {{secretPath}}
without obtaining the required approvals.
</p>
<p>
The following reason was provided:
The following reason was provided for bypassing the policy:
<em>{{bypassReason}}</em>
</p>
<p>
Go to the request panel
To review this action, please visit the request panel
<a href="{{approvalUrl}}">here</a>.
</p>
</body>
</html>