Integrated Alerting: Validate Slack channel names in Notification Channels

Description

Impact on the user:

  • The user is confused and might not get a notification in slack

Steps to reproduce:

  1. Enable IA

  2. Go to Notification Channels

  3. Add slack channel with "#" in the channel name 

Actual result:

  • added to the system

Expected Result:

  • a warning about the format. something like : "no # needed "

  • validation against the name

Workaround:
N/A

 

Original report:

It is possible to create a notification channel for Slack with channel name #foo. We either should validate channel names and reject ones starting with #, or clean them in API handler.

How to test

None

How to document

None

Smart Checklist

Activity

Show:

Tiago Mota January 6, 2021 at 7:08 PM

Can be tested in this FB.

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Fix versions

Story Points

Sprint

Smart Checklist

Created December 28, 2020 at 7:17 PM
Updated November 13, 2024 at 9:50 AM
Resolved January 28, 2021 at 10:17 PM