GitHub webhooks: check signature (#2493)

This commit is contained in:
François de Metz
2017-04-17 18:42:03 +00:00
committed by Daniel Nelson
parent dc5779e2a7
commit 58ee962679
6 changed files with 63 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
You should configure your Organization's Webhooks to point at the `webhooks` service. To do this go to `github.com/{my_organization}` and click `Settings > Webhooks > Add webhook`. In the resulting menu set `Payload URL` to `http://<my_ip>:1619/github`, `Content type` to `application/json` and under the section `Which events would you like to trigger this webhook?` select 'Send me <b>everything</b>'. By default all of the events will write to the `github_webhooks` measurement, this is configurable by setting the `measurement_name` in the config file.
You can also add a secret that will be used by telegraf to verify the authenticity of the requests.
## Events
The titles of the following sections are links to the full payloads and details for each event. The body contains what information from the event is persisted. The format is as follows: