Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] webhook payload signature verification #235

Open
cauethenorio opened this issue Aug 18, 2020 · 5 comments
Open

[feat] webhook payload signature verification #235

cauethenorio opened this issue Aug 18, 2020 · 5 comments

Comments

@cauethenorio
Copy link

Currently, when my application receives the webhook payload sent by free-email-forwarding there's no way to validate the request authenticity.

It would be nice if it has some validation field, like the signature one which mailgun uses in their webhooks:
https://documentation.mailgun.com/en/latest/user_manual.html?highlight=signature#webhooks

Thanks for building this awesome project and making it open-source @niftylettuce!

@niftylettuce
Copy link
Collaborator

You could verify the request came from mx1.forwardemail.net or mx2.forwardemail.net resolved IP addresses. I will add a signature or something as soon I can. Trying to ship the browser extension among other things. Thanks for raising this point @cauethenorio.

@niftylettuce niftylettuce changed the title Create a way to validate webhook payloads [feat] webhook payload signature verification Aug 18, 2020
@m4rvr
Copy link

m4rvr commented May 1, 2024

Hey @niftylettuce, is this still on the roadmap or are there other solutions for that now?

@titanism
Copy link
Contributor

titanism commented May 1, 2024

Will see what we can do!

@titanism
Copy link
Contributor

titanism commented May 1, 2024

Another solution is to just check that the IP resolved that it's coming from resolves to mx1.forwardemail.net or mx2.forwardemail.net in a reverse lookup. You can get the IP's specifically from dig mx1.forwardemail.net a or dig mx2.forwardemail.net a, so you could hard code it's from those specific IP addresses (or hostname in reverse lookup).

@m4rvr
Copy link

m4rvr commented May 1, 2024

Thanks for your fast response. Checking the IP works for me. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants