& {
+ integrationAuthId: string;
+ integration?: string;
+};
+
export type TDeleteIntegrationAuthsDTO = TProjectPermission & {
integration: string;
projectId: string;
diff --git a/backend/src/services/integration/integration-service.ts b/backend/src/services/integration/integration-service.ts
index 1db10405d7..a990b1ca6e 100644
--- a/backend/src/services/integration/integration-service.ts
+++ b/backend/src/services/integration/integration-service.ts
@@ -151,7 +151,9 @@ export const integrationServiceFactory = ({
isActive,
environment,
secretPath,
- metadata
+ region,
+ metadata,
+ path
}: TUpdateIntegrationDTO) => {
const integration = await integrationDAL.findById(id);
if (!integration) throw new NotFoundError({ message: `Integration with ID '${id}' not found` });
@@ -192,7 +194,9 @@ export const integrationServiceFactory = ({
appId,
targetEnvironment,
owner,
+ region,
secretPath,
+ path,
metadata: {
...(integration.metadata as object),
...metadata
diff --git a/backend/src/services/integration/integration-types.ts b/backend/src/services/integration/integration-types.ts
index a27c4f6acb..f662affd81 100644
--- a/backend/src/services/integration/integration-types.ts
+++ b/backend/src/services/integration/integration-types.ts
@@ -49,6 +49,8 @@ export type TUpdateIntegrationDTO = {
appId?: string;
isActive?: boolean;
secretPath?: string;
+ region?: string;
+ path?: string;
targetEnvironment?: string;
owner?: string;
environment?: string;
diff --git a/backend/src/services/smtp/smtp-service.ts b/backend/src/services/smtp/smtp-service.ts
index bdf2fe18c5..a2ed85749d 100644
--- a/backend/src/services/smtp/smtp-service.ts
+++ b/backend/src/services/smtp/smtp-service.ts
@@ -53,6 +53,13 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
const smtp = createTransport(cfg);
const isSmtpOn = Boolean(cfg.host);
+ handlebars.registerHelper("emailFooter", () => {
+ const { SITE_URL } = getConfig();
+ return new handlebars.SafeString(
+ `Email sent via Infisical at ${SITE_URL}
`
+ );
+ });
+
const sendMail = async ({ substitutions, recipients, template, subjectLine }: TSmtpSendMail) => {
const appCfg = getConfig();
const html = await fs.readFile(path.resolve(__dirname, "./templates/", template), "utf8");
diff --git a/backend/src/services/smtp/templates/accessApprovalRequest.handlebars b/backend/src/services/smtp/templates/accessApprovalRequest.handlebars
index 82c66ce5fe..3c0811a1c4 100644
--- a/backend/src/services/smtp/templates/accessApprovalRequest.handlebars
+++ b/backend/src/services/smtp/templates/accessApprovalRequest.handlebars
@@ -45,6 +45,8 @@
View the request and approve or deny it
here.
+
+ {{emailFooter}}