SendGrid incoming mail webhook - how do I secure my endpoint

Diskdrive

I'm currently using SendGrid's Inbound Parse Webhook to feed emails to my application. I've been able to get it working by pointing the URL to an endpoint which my application has exposed. SendGrid just sends the email in the form of a JSON format HTTP POST request to this endpoint and I just process each request internally.

My question is, now that I have it working, how do I ensure that only SendGrid can use this endpoint? At the moment, anyone can utilise this HTTP POST endpoint and pretend that an email has been sent to the application.

Can I get SendGrid to send some sort of unique key to identify themselves? Is there a way I can restrict by ip address?

Nick Q.

There are two ways which you may secure your endpoint. SendGrid's webhooks support basic auth (e.g. https://user:[email protected]/endpoint). You can also implement a unique key, that you check before acting upon the request (e.g. https://example.com/endpoint?key=123).

The simple answer, however, is anything that you add to the URL can act as unique authentication for SendGrid.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

SendGrid incoming mail webhook - how do I secure my endpoint

From Dev

how to create slack incoming webhook using the api

From Dev

How to forward incoming mail to an HTTP endpoint?

From Dev

How can I secure this PHP Mail from Injection?

From Dev

How to associate sendgrid webhook sg_message_id to sent mail?

From Dev

How do I pass GET parameters to my AWS Lambda function when using an HTTP endpoint?

From Dev

How do I integration test a SoapCore endpoint?

From Dev

How do I link a node.js webhook to the messenger API of my Facebook app?

From Dev

Hash algorithm SHA256, is my method secure? How do I add a salt value to make more secure

From Dev

How do I secure my Google Cloud Endpoints APIs with Firebase token verification?

From Dev

How do I secure a Tomcat installation?

From Dev

How do I secure traffic between my VM and Application Gateway?

From Dev

How do I upgrade my Heroku SendGrid integration now that they require two-factor authentication?

From Dev

How do I stop my Mac from asking to accept incoming network connections?

From Dev

In postfix, how could I disable incoming mail?

From Dev

How do I secure my tornado python file?

From Dev

How do I secure a Tomcat installation?

From Dev

How do I secure this code? jQuery and Codeigniter

From Dev

How do I secure access to a AWS classic EC2 machine from my LAN

From Dev

How do I tell if my UEFI bios System is running Secure Boot?

From Dev

I'm currently logged in my web mail (mail.com). How do I check cookie/session expiration time?

From Dev

How do I change my authentication from LDAP to JDBC to secure my applications

From Dev

How do I deliver an email stuck in my Postfix mail queue?

From Dev

How do I secure my internet line from being spied on by my landlord?

From Dev

how to create slack incoming webhook using the api

From Dev

How do i secure my Google Maps API?

From Dev

How do I suppress Yes/No Prompt when Saving digitally signed Mail in a format that is not secure?

From Dev

How do I force a secure reboot?

From Dev

How do I define my endpoint?

Related Related

  1. 1

    SendGrid incoming mail webhook - how do I secure my endpoint

  2. 2

    how to create slack incoming webhook using the api

  3. 3

    How to forward incoming mail to an HTTP endpoint?

  4. 4

    How can I secure this PHP Mail from Injection?

  5. 5

    How to associate sendgrid webhook sg_message_id to sent mail?

  6. 6

    How do I pass GET parameters to my AWS Lambda function when using an HTTP endpoint?

  7. 7

    How do I integration test a SoapCore endpoint?

  8. 8

    How do I link a node.js webhook to the messenger API of my Facebook app?

  9. 9

    Hash algorithm SHA256, is my method secure? How do I add a salt value to make more secure

  10. 10

    How do I secure my Google Cloud Endpoints APIs with Firebase token verification?

  11. 11

    How do I secure a Tomcat installation?

  12. 12

    How do I secure traffic between my VM and Application Gateway?

  13. 13

    How do I upgrade my Heroku SendGrid integration now that they require two-factor authentication?

  14. 14

    How do I stop my Mac from asking to accept incoming network connections?

  15. 15

    In postfix, how could I disable incoming mail?

  16. 16

    How do I secure my tornado python file?

  17. 17

    How do I secure a Tomcat installation?

  18. 18

    How do I secure this code? jQuery and Codeigniter

  19. 19

    How do I secure access to a AWS classic EC2 machine from my LAN

  20. 20

    How do I tell if my UEFI bios System is running Secure Boot?

  21. 21

    I'm currently logged in my web mail (mail.com). How do I check cookie/session expiration time?

  22. 22

    How do I change my authentication from LDAP to JDBC to secure my applications

  23. 23

    How do I deliver an email stuck in my Postfix mail queue?

  24. 24

    How do I secure my internet line from being spied on by my landlord?

  25. 25

    how to create slack incoming webhook using the api

  26. 26

    How do i secure my Google Maps API?

  27. 27

    How do I suppress Yes/No Prompt when Saving digitally signed Mail in a format that is not secure?

  28. 28

    How do I force a secure reboot?

  29. 29

    How do I define my endpoint?

HotTag

Archive