GitHub Webhook Middleware is a middleware plugin for Traefik which validates the signature in the X-Hub-Signature-256 header.
Install with command
command:- "--experimental.plugins.gh-webhook.modulename=github.com/georg-jung/github-webhook-middleware"- "--experimental.plugins.gh-webhook.version=v0.1.2"
Or install inside static config file:
experimental:plugins:gh-webhook:modulename: github.com/georg-jung/github-webhook-middlewareversion: v0.1.2
Activate plugin in your dynamic config file
http:middlewares:my-gh-webhook-middleware:plugin:gh-webhook:secret: SECRETauthHeader: X-Hub-Signature-256headerPrefix: sha256=
Use as docker-compose label
labels:- "traefik.http.routers.my-service.middlewares=my-gh-webhook-middleware@file"
Inspired by 23deg/jwt-middleware