Webhook Explained

In web development, a webhook is a method of augmenting or altering the behavior of a web page or web application with custom callbacks. These callbacks may be maintained, modified, and managed by third-party users who need not be affiliated with the originating website or application. In 2007, Jeff Lindsay coined the term webhook from the computer programming term hook.

Function

Webhooks are "user-defined HTTP callbacks".[1] They are usually triggered by some event, such as pushing code to a repository,[2] a comment being posted to a blog[3] and many more use cases.[4] When that event occurs, the source site makes an HTTP request to the URL configured for the webhook. Users can configure them to cause events on one site to invoke behavior on another.

Common uses are to trigger builds with continuous integration systems or to notify bug tracking systems.[5] Because webhooks use HTTP, they can be integrated into web services without adding new infrastructure.[6]

Authenticating the webhook notification

When the client (the originating website or application) makes a webhook call to the third-party user's server, the incoming POST request should be authenticated to avoid a spoofing attack and its timestamp verified to avoid a replay attack.[7] Different techniques to authenticate the client are used:

The sender may choose to keep a constant list of IP addresses from which requests will be sent. This is not a sufficient security measure on its own, but it is useful for when the receiving endpoint is behind a firewall or NAT.

See also

External links

Notes and References

  1. Web site: Webhooks. Atlassian. 2019-09-24.
  2. https://help.github.com/articles/about-webhooks/ About Webhooks - Github Help
  3. http://en.support.wordpress.com/webhooks/ WordPress Webhooks
  4. https://webhook-test.com/use-cases-for-webhooks Use Cases for Webhooks
  5. https://code.google.com/p/support/wiki/PostCommitWebHooks Google Project Hosting - Post-Commit Web Hooks
  6. http://blog.programmableweb.com/2012/01/30/webhooks-realtime-web/ What are WebHooks and How Do They Enable a Real-time Web?
  7. Web site: Why Verify. Svix . Svix Inc. . September 12, 2021 . Another potential security hole is what's called replay attacks. .
  8. Web site: DocuSign Connect Now Includes Basic Authentication Support. DocuSign . 16 November 2017 . DocuSign, Inc.. January 15, 2020 . the Connect notification service has been updated to support the Basic Authentication scheme with customers’ Connect servers (listeners)..
  9. Web site: Securing your webhooks . Github . Github, Inc . September 12, 2021.
  10. Web site: Checking Webhook Signatures . Stripe . Stripe, Inc . 12 May 2019.
  11. Web site: Getting Started - Graph API - Documentation - Facebook for Developers . Facebook . Facebook, Inc. . 12 May 2019.
  12. Web site: Mutual TLS: Stuff you should know. DocuSign . DocuSign, Inc.. January 15, 2020 . Mutual TLS plus Client Access Control enables your listener app to ensure that the Connect notification message was sent by DocuSign and that it wasn’t modified en route..