Skip to content
/ g2k Public

Send github webhook events to kafka and forward them to any endpoint.

License

Notifications You must be signed in to change notification settings

vmelikyan/g2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Webhooks to Kafka

Send github webhook events to kafka and forward them to any endpoint.

g2krelay

A simple server to forward github webhook events to kafka keeping webhook headers and body intact. All webhook events are validated with wbhook secret.

g2krepeater

A kafka consumer that reads from the topic and sends POST requests to specified endpoint with the original webhook payload and headers. This enables apps that use webhooks to be able to use kafka as a message bus without needing a change.

Running the server

For easy setup install tilt and kind

  1. Create a dev kind cluster
kind create cluster --name dev
  1. Run tilt up

The tilt setup uses redpand for running kafka locally. In addition we bootstrap redpand-console so that you can see the messages.

Todo

[ ] Upload images to docker [ ] Add support to g2krepeater for sending requests to multiple endpoints [ ] More documentation

About

Send github webhook events to kafka and forward them to any endpoint.

Resources

License

Stars

Watchers

Forks