Webhook Proxy Server

by Adnan Hajdarević

Lightweight incoming webhook server to run shell commands in Mattermost

‘webhook’ is a lightweight configurable tool written in Go, that allows you to easily create HTTP endpoints (hooks) on your server, which you can use to execute configured commands. You can also pass data from the HTTP request (such as headers, payload or query variables) to your commands. webhook also allows you to specify rules which have to be satisfied in order for the hook to be triggered.

In Mattermost, you can set up an “Outgoing webhook integration” or “Slash command” to run various commands on your server, which can then report back directly to you or your channels using the “Incoming webhook integrations”, or the appropriate response body.

webhook aims to do nothing more than it should do, and that is:

1. Receive the request,

2. Parse the headers, payload and query variables,

3. Check if the specified rules for the hook are satisfied,

4. And finally, pass the specified arguments to the specified command via command line arguments or via environment variables.

Webhook Proxy Server


Adnan Hajdarević

We use cookies for advertising, social media and analytics purposes. Read about how we use cookies here. By continuing to use this site, you consent to our use of cookies.