Quantcast
Channel: PagerDuty Community - Latest topics
Viewing all articles
Browse latest Browse all 1569

Events api v2 has no validation for routing key

$
0
0

@poojaHarness wrote:

I tried to fire a pager duty event.
api endpoint: https://events.pagerduty.com/v2/enqueue
payload:
{
“routing_key”: “d3a4e02ee8e846b49b58b19e54068a0Z”,
“event_action”: “trigger”,
“payload”: {
“summary”: “test”,
“severity”: “info”,
“source”: “test”,
“timestamp”: “2015-07-17T08:42:58.315+0000”
}
}

If you see here, the routing key is not a valid hexadecimal, so I was expecting the api to throw an error, but it returns with success
{
“status”: “success”,
“message”: “Event processed”,
“dedup_key”: “df6bdc65402f4a5fb4407ba2ee052a61”
}

with an invalid key, where is the event being processed and its associated with which service.
Also, there should be validation if the routing key is a valid hexadecimal but is not linked to any existing service in Pager duty.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1569

Trending Articles