Webhook: Authentication

Created on 19 Mar 2015  路  2Comments  路  Source: adnanh/webhook

Is there or will there be any kind of authentication?

question

Most helpful comment

What exactly do you mean by authentication? The HTTP Basic Auth, or do you just want to verify the source of the request?

Currently the webhook providers such as Github and Slack for example, use tokens and signatures to ensure you the payload and the requests are coming from the trusted source (only you and the webhook source know that secret).

You can use that information in combination with the trigger-rule to verify and authorize only them to trigger your script.

If you want to restrict the sources the requests are coming from, you can use firewall on the machine, and for the basic authentication you can put webhook behind the nginx instance and set up authentication on the nginx. Basically using NGINX Basic Auth and NGINX Proxy Module.

All 2 comments

What exactly do you mean by authentication? The HTTP Basic Auth, or do you just want to verify the source of the request?

Currently the webhook providers such as Github and Slack for example, use tokens and signatures to ensure you the payload and the requests are coming from the trusted source (only you and the webhook source know that secret).

You can use that information in combination with the trigger-rule to verify and authorize only them to trigger your script.

If you want to restrict the sources the requests are coming from, you can use firewall on the machine, and for the basic authentication you can put webhook behind the nginx instance and set up authentication on the nginx. Basically using NGINX Basic Auth and NGINX Proxy Module.

That makes sense. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

macau23 picture macau23  路  6Comments

zoenglinghou picture zoenglinghou  路  4Comments

wranitzky picture wranitzky  路  6Comments

foosinn picture foosinn  路  5Comments

Gareth-3aaa picture Gareth-3aaa  路  4Comments