Skip to content

Add X-GitLab headers to an alert's email

What does this MR do?

Implements #334150 (closed)

Adds the following headers to an alert's email:

  • X-GitLab-Project
  • X-GitLab-Project-Id
  • X-GitLab-Project-Path
  • X-GitLab-Alert-ID
  • X-GitLab-Alert-IID
  • X-GitLab-NotificationReason one of: alert_triggered, alert_acknowledged, alert_ignored, or alert_resolved
  • X-GitLab-Incident-ID - Incident's ID, if the alert has a link to an incident.
  • X-GitLab-Incident-IID

Since an issue related to the alert is called "incident", I think it will make sense to call headers as "X-GitLab-Incident" instead of "X-GitLab-Issue"

Screenshots or Screencasts (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Vitali Tatarintev

Merge request reports