webhook-interceptor

module
v0.0.0-...-2d04a2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2021 License: Apache-2.0

README

webhook-interceptor

A Go service to act as a webhook interceptor

Building instructions

make build

Testing instructions

Set example WEBHOOK_SECRET and HEADER variable and run the exectuable. The example below uses "my key" and X-Hub-Signature, respectively.

bin/webhook-interceptor

curl -v
-H 'X-Hub-Signature: sha256=eff49d9c699ae04340f1a9a6e1800a7d018864c88ca719e0156ca7a9a55b0f67'
-d '{"test": 123}'
http://localhost:8080/test

Directories

Path Synopsis
cmd
pkg
hmac
Package hmac implements HMAC validation with shared secret
Package hmac implements HMAC validation with shared secret

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL