https://github.com/georg-jung/github-webhook-middleware
https://github.com/georg-jung/github-webhook-middleware
devops github middleware traefik-plugin webhooks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/georg-jung/github-webhook-middleware
- Owner: georg-jung
- License: mit
- Created: 2022-08-25T13:41:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-24T18:36:10.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T21:13:41.999Z (about 1 year ago)
- Topics: devops, github, middleware, traefik-plugin, webhooks
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Webhook Middleware
GitHub Webhook Middleware is a middleware plugin for [Traefik](https://github.com/containous/traefik) which validates the signature in the [`X-Hub-Signature-256` header](https://docs.github.com/en/developers/webhooks-and-events/webhooks/securing-your-webhooks).
## Configuration
Install with command
```yaml
command:
- "--experimental.plugins.gh-webhook.modulename=github.com/georg-jung/github-webhook-middleware"
- "--experimental.plugins.gh-webhook.version=v1.0.0"
```
Or install inside static config file:
```yaml
experimental:
plugins:
gh-webhook:
modulename: github.com/georg-jung/github-webhook-middleware
version: v1.0.0
```
Activate plugin in your dynamic config file
```yaml
http:
middlewares:
my-gh-webhook-middleware:
plugin:
gh-webhook:
secret: SECRET
authHeader: X-Hub-Signature-256
headerPrefix: sha256=
```
Use as docker-compose label
```yaml
labels:
- "traefik.http.routers.my-service.middlewares=my-gh-webhook-middleware@file"
```
> Inspired by [23deg/jwt-middleware](https://github.com/23deg/jwt-middleware)