-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
What did you do?
It is possible to write an Alertmanager configuration file where route.ID() returns conflicting IDs. For example, the configuration file:
receiver: test
routes:
- matchers:
- foo=bar
continue: true
routes:
- matchers:
- bar=baz
- matchers:
- foo=bar
continue: true
routes:
- matchers:
- bar=bazgives the following Route IDs:
{}
{}/{foo="bar"}/0
{}/{foo="bar"}/{bar="baz"}/0
{}/{foo="bar"}/1
{}/{foo="bar"}/{bar="baz"}/0
What did you expect to see?
It should give these IDs instead:
{}
{}/{foo="bar"}/0
{}/{foo="bar"}/0/{bar="baz"}/0
{}/{foo="bar"}/1
{}/{foo="bar"}/1/{bar="baz"}/0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels