Skip to content

webhook-fanout-proxy is a service to forward webhook events to given targets

Notifications You must be signed in to change notification settings

utilitywarehouse/webhook-fanout-proxy

Repository files navigation

webhook-fanout-proxy

webhook-fanout-proxy is a service to forward webhook events to given targets.

webhook-fanout-proxy is used to fanout github webhook events to all required pods running git-mirror in kubernetes.

Webhook Config

webhooks:
  # The URL path on which request are received.
  - path: /webhook/example
    # allowed method for the HTTP request.
    method: POST
    # if signature config is specified proxy will verify request before forwarding to targets
    signature:
      # The name of the header caring payload signature
      headerName: X-Signature-SHA256
      # The name of the hash function defaults to sha256
      alg: sha256
      # if any prefix added to signature
      prefix: sha256=
      # The name of the ENV to get webhook secret value
      secretFromEnv: WH_FO_TEST2_SEC
    # Specifies the HTTP response that will be returned on valid requests.
    response:
      code: 200
      headers:
        - name: Access-Control-Allow-Origin
          value: "*"
      message: "ok"
    # list of targets where received payload will be sent
    targets:
      - http://127.0.0.1:8080/webhook

  - path: /github
    method: POST
    response:
      code: 204
    targets:
      - http://prometheus-shared-0.prometheus-git-mirror:9001/github-webhook
      - http://prometheus-shared-1.prometheus-git-mirror:9001/github-webhook
      - http://thanos-shared-0.thanos-git-mirror:9001/github-webhook
      - http://thanos-shared-1.thanos-git-mirror:9001/github-webhook

Note:

  • webhooks will use same port as metrics server

About

webhook-fanout-proxy is a service to forward webhook events to given targets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •