Configure email integration
To configure an email integration, follow these steps:- Sign in to Endor Labs and select Integrations from the left sidebar.
- Navigate to Email under Notifications and click Add.
- Click Add Notification Integration.
- Specify a name and description for this integration.
- Enter email addresses separated by commas in EMAIL ADDRESSES.
- Click Add Notification Integration.
Associate an action policy with the email notification
Users can create action policies to send an email notification when a scan matches policy conditions. For example, if there is a critical or high vulnerability, send an email notification. While creating an action policy, configure the following settings:- Select Choose an Action as Send Notification.
- From SELECT NOTIFICATION TARGETS, choose the email integration notification that you created.
-
Choose an Aggregation type for notifications.
- Choose None (Notify for each Finding) to trigger a separate email for each finding.
- Choose Project to group and send all the findings related to a project in one email.
- Choose Dependency to send individual emails for every dependency.
- Choose Dependency per package version to send emails for every unique combination of dependency and package version.
- From Assign Scope, include the project tags in INCLUSIONS to apply this policy to a project.
Customize email notification templates
Endor Labs provides a default template with standard information for the email. You can use the default template or you can choose to edit and customize this template to fit your organization’s specific requirements. You can also create custom templates using Go Templates.- Sign in to Endor Labs and select Integrations from the left sidebar.
- Look for Email under Notifications.
- Click Manage to view the list of configured notification integrations.
- Choose a notification integration and click the ellipsis on the right side, and click Edit Template.
- Make required changes to any of the following templates and click Save Template.
- Open - This template applies when Endor Labs raises new notifications.
- Update - This template applies when an existing notification updates, such as when findings change.
- Resolve - This template applies when all findings reported by the notification resolve.
- Click Restore to Default to revert the changes.
- Use the download icon on the top right corner to download this template.
- Use the copy icon to copy the information in the template.
Data model
To create custom templates for email notifications, you must understand the data supplied to the template. See theEmailData message used for Open and Update templates.
See the ResolvedEmailData message used for Resolve template.
See the following protobuf specification for the NotificationData message referenced by EmailData.
To understand Project, Finding, PackageVersion and RepositoryVersion definitions in this protobuf specification, see:
- Project resource kind
- Finding resource kind
- PackageVersion resource kind
- RepositoryVersion resource kind