Event Grid - HMAC request signing

Neilson Ma 6 Reputation points
2022-08-25T03:34:44.353+00:00

I'm trying to implement a webhooks system for my application using Event Grid webhooks. In order to secure the payload, many examples online have pointed towards request signing using HMAC and I was wondering if this would be possible using Event Grid. I'm using the Event Grid publisher client SDK to publish events but I'm unable to find anywhere where I can send headers for the calculated signature.

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
354 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 24,111 Reputation points
    2022-08-30T17:42:34.337+00:00

    Hi @Neilson Ma Thanks for reaching out. No, we don't have support setting the custom headers during while publishing, however you can define custom headers (with static or dynamic values from payload) on event subscription and Event Grid sets those headers during delivery.

    let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.