I am working on a project which uses Azure Event Grid where a web application sends a custom event to event grid and a web-hook within a separate application is used to subscribe to these events.
It looks like it is secure on the web-hook side since only you can add the specific web hook to be used as the event grid subscription. However, I did not find much information on how to restrict event grid to receive events only from a specific endpoint. Right now it only provides you with an endpoint and a topic key which must be used when sending events to the topic. If someone manages to get hold of both the endpoint and the token key then "malicious events" can be sent to the event grid.
Is there a way on how to restrict event grid to only accept events from a particular source, or is storing and retrieving the key from Key Vault, the most secure option available?