Email Notification
Compliance Service supports sending scan reports via email.
TOC
PrerequisitesConfigure Notification TemplateConfigure Report RecipientsEnable Email Notification for ScanEnable Email Notification for ScanSuiteResource-Specific NotesPrerequisites
- Use in
globalcluster: You need upgrade Alauda Container Platform to v4.3.0 or later. - Use in workload cluster: You need install Alauda Container Platform Cluster Notification plugin.
- Prepare Email Server configurations:
globalcluster: You need to configure the email server by this document Email Server Configuration forglobalcluster.- workload cluster: You need to configure the email server by this document Email Server Configuration for workload cluster.
Configure Notification Template
Create a NotificationTemplate resource to define the email content:
Note:
- The resource name cannot be customized; Compliance sending reports relies on this name by default.
- The notification template needs to be created in the
cpaas-systemnamespace.
Configure Report Recipients
Create a ConfigMap to specify email recipients:
Note:
- The contact resource must be created under the
compliance-systemnamespace. - The resource name must be consistent with the value of
reportDelivery.email.recipientsRef.name.
Enable Email Notification for Scan
Add the reportDelivery section directly under spec in the Scan resource:
Note: stig-os-example is an example profile name. Use the profile names actually available in your cluster.
Enable Email Notification for ScanSuite
Add the reportDelivery section directly under spec in the ScanSuite resource:
Resource-Specific Notes
- In
Scan,reportDeliveryapplies to that singleScanresource. - In
ScanSuite,reportDeliveryapplies to the batch resource and its generated reports. - For more details, see Using Scan and Using ScanSuite.