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

Use HMAC verification in hook payloads #2955

Closed
0xmichalis opened this issue Jul 19, 2019 · 5 comments
Closed

Use HMAC verification in hook payloads #2955

0xmichalis opened this issue Jul 19, 2019 · 5 comments

Comments

@0xmichalis
Copy link
Contributor

Nothing guarantees the hook payload's integrity when it is received by a third-party service. Usually, that's fixed by using a HMAC secret that third-party services can verify to ensure the payload was not tampered in transit. TLS is an overkill because we don't really care to encrypt the payload, it's not secret.

@eupn
Copy link
Contributor

eupn commented Jul 27, 2019

How the HMAC secret should be exchanged between parties in this case?

@0xmichalis
Copy link
Contributor Author

0xmichalis commented Jul 27, 2019 via email

@eupn
Copy link
Contributor

eupn commented Jul 27, 2019

Is it enough to specify a shared secret in the node's config file?

@mcdallas
Copy link
Contributor

TLS is already supported for webhooks #2660 I agree it's overkill but there might be some service that only accepts https.

@0xmichalis
Copy link
Contributor Author

@mcdallas I didn't know https was already supported, the TLS mention was in case it was proposed as an alternative. I think this issue can be closed.

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

3 participants