Skip to content

[Alert Rule; Integrations] Sending notifications through internal integrations spams irrelevant projects. #4163

@bmday

Description

@bmday

Self-Hosted Version

25.5.1

CPU Architecture

x86_64

Docker Version

20.10.20

Docker Compose Version

2.36.2

Machine Specification

  • My system meets the minimum system requirements of Sentry

Installation Type

up to 25.5.1

Steps to Reproduce

  1. Settings - Custom Integrations - Create New Integration - Internal Integration

  2. Set Name, Webhook URL (My sentry_to_mattermost exchanger). Switch Alert Rule Action -> enabled.

  3. Set read permissions (Issue & Event, Alerts).

  4. Select "issue" in webhooks part.

  5. Save changes.

  6. Add an alert rule with the default settings, but add an action to it that sends notifications using the integration you created earlier. Select project and environment. Click Send Test Notification - it should work. It works for me.

  7. Save the alert rule settings.

Expected Result

I expect that whenever new tasks arise in the my_app (id 106) project, I'll receive a notification in my Mattermost via an internal integration. But I also receive notifications from all other projects in my Sentry with other project IDs.
This works as expected with my old Legacy Webhooks. However, I can't create new Legacy Webhooks because my version 25.5.1 blocks their creation as deprecated.

Why is this happening? How can I make sentry send events to my mattermost only from my my_app project?

Actual Result

My Alert Rule:
Image

My internal integration:

Image Image

Event ID

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions